安装ubuntu后,HP电脑无线网卡开关无效

来源:互联网 发布:宁波淘宝摄影 编辑:程序博客网 时间:2024/06/08 10:46

 特别特别特别感谢 默默忆 解决了困扰我很长时间的问题:谢谢您

http://momoyi.info/wordpress/2011/05/12/%E5%AE%89%E8%A3%85ubuntu%E5%90%8E%EF%BC%8Chp%E7%94%B5%E8%84%91%E6%97%A0%E7%BA%BF%E7%BD%91%E5%8D%A1/

 

 

转自国外网站,赶紧收藏了

Wifi stops to work on Arch Linux

Today, my wifi stops work! Wicd is no longer detect any wifi network!
The first thing, i check ifconfig

?
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
[kurei@axcoto ~]$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1F:16:5D:A5:01
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:16ff:fe5d:a501/64Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3743 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4386 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2778914 (2.6 Mb)  TX bytes:699729 (683.3 Kb)
          Interrupt:27 Base address:0xe000 
  
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:7529 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7529 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:293591 (286.7 Kb)  TX bytes:293591 (286.7 Kb)

Okay, no wireless card is up, check ifconfig -a

?
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[kurei@axcoto ~]$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1F:16:5D:A5:01
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:16ff:fe5d:a501/64Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3771 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4421 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2785823 (2.6 Mb)  TX bytes:711472 (694.7 Kb)
          Interrupt:27 Base address:0xe000 
  
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:7529 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7529 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:293591 (286.7 Kb)  TX bytes:293591 (286.7 Kb)
  
vboxnet0  Link encap:Ethernet  HWaddr 0A:00:27:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  
wlan0     Link encap:Ethernet  HWaddr 00:24:2B:17:2E:2F
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

So, everything’s good!
I tried to make it up!

?
1
2
3
[kurei@axcoto ~]$ [kurei@axcoto ~]$sudo ifconfigwlan0 up
Password:
SIOCSIFFLAGS: Operation not possible due to RF-kill

Shame on me, i even don’t know what RF-kill is!
Okay, i do a google and found rfkill! Install it

Then check :

?
1
2
3
4
5
6
7
[kurei@axcoto ~]$ rfkill list
0: hp-wifi: Wireless LAN
    Soft blocked:yes
    Hard blocked:yes
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked:yes

i found that Hard blocked is when you turn off wifi button on laptop!
Soft blocked seems come from something like driver/module…I don’t know!
Any way, unblock it!

?
1
2
[kurei@axcoto ~]$ sudo rfkill unblock 0
[kurei@axcoto ~]$ sudo rfkill unblock 1

And now, wlan up just work fine

?
1
[kurei@axcoto ~]$ sudo ifconfigwlan0 up

Next, i restart system! Ooops, it get soft blocked again after reboot!
So, i guess need some flag in booting process to let system know that don’t block it!
Google is friend, i found need to add

?
1
options ath_pci rfkill=0

to /etc/modprobe.d/modprobe.conf
Okay, reboot, work!
WiCD can’t detect wireless network now!

 

 

原创粉丝点击