ubuntu WiFi: operation not possible due to RF-kill《转载》
Some people have been experiencing WiFi problems with Ubuntu 10.10 since an update that happend just before Christmas 2010. The problem seems to be a bug in a kernel module, which prevents the rfkill‘s soft and hard block from syncing correctly.
In practice that means you can press your laptop‘s WiFi button as often as you want, it doesn‘t change anything. Your wireless adapter will always appear as disabled. If you try to start the wireless interface manually you get the following error message:
sk@ubuntu:~# sudo ifconfig wlan0 upIf you do a rfkill list all you should get an output similar to this:
SIOCSIFFLAGS: Operation not possible due to RF-kill
sk@ubuntu:~$ sudo rfkill list allDepending on the state of your WiFi button the Hard blocked will either be yes or no. Press the WiFi button and run rfkill list all again to make sure the value for Hard blocked changes.
0: hp-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
The actual problem is, that the Soft blocked value is always set to yes, because for some reason the syncing between the hardware block and the software block doesn‘t work as supposed. To override this behavior, you can just run rfkill unblock wifi and it should work again. Double check by entering rfkill list all again and make sure it looks like this, with all values set to no:
sk@ubuntu:~$ sudo rfkill list allIf you then run ifconfig wlan0 up (or enable the wireless via your desktop‘s network manager) you should be able to connect to a wireless network again without any further issues.
0: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
The configuration, which I‘ve been using:
- Compaq Presario CQ60
- Atheros AR5001 Wireless Network Adapter
- Ubuntu 10.10
查看 网卡启用状态:
执行ifconfig -a 显示所有网卡信息, 不加-a参数,只能查启用的网卡。
例如:网卡名 eth0
启用网卡命名 ifconfig eth0 up
禁用网卡命名 ifconfig eth0 down
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。