Posts Tagged: SIOCSIFFLAGS: Operation not possible due to RF-kill


12
Aug 10

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

[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/64 Scope: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/128 Scope: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

[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/64 Scope: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/128 Scope: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!

[kurei@axcoto ~]$ [kurei@axcoto ~]$ sudo ifconfig wlan0 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 :

[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!

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

And now, wlan up just work fine

[kurei@axcoto ~]$ sudo ifconfig wlan0 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

options ath_pci rfkill=0

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