Can't enable wireless - RF_KILL problem? [Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Can't enable wireless - RF_KILL problem? [Solved]

Postby vaettchen » Thu Apr 07, 2011 15:26

I have tried to solve this myself and read dozens of posts on the Sabayon and Gentoo forums, but just getting more and more confused. It probably has a simple solution that I just don't see. Here the problem:

I have a new Lenovo V560 Laptop (with this <Fn><F5> WLAN switch that doesn't work in Linux), with a brand new Sabayon 5.5 (Kernel 2.6.38) install. Everything works fine, except that I can't get the wireless going.

The card is

Code: Select all
susanne admin # lspci | grep W
04:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000


The hardware switch on the front side of the machine is on, and iwconfig sees the card:

Code: Select all
susanne admin # iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off


The necessary modules seem to be loaded:

Code: Select all
susanne admin # lsmod | grep iwl
iwlagn                157130  0
iwlcore                49628  1 iwlagn
mac80211              163327  2 iwlagn,iwlcore
cfg80211              118575  3 iwlagn,iwlcore,mac80211


and the microcode seems OK:

Code: Select all
susanne admin # eix iwl1000
[I] net-wireless/iwl1000-ucode
     Available versions:  128.50.3.1
     Installed versions:  128.50.3.1(06:34:46 PM 09/27/2010)
     Homepage:            http://intellinuxwireless.org/?p=iwlwifi
     Description:         Intel (R) Wireless WiFi Link 1000BGN ucode


I don't understand the dmesg output

Code: Select all
susanne admin # dmesg | grep iwl
[   11.950359] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
[   11.950365] iwlagn: Copyright(c) 2003-2010 Intel Corporation
[   11.950520] iwlagn 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[   11.950560] iwlagn 0000:04:00.0: setting latency timer to 64
[   11.950686] iwlagn 0000:04:00.0: Detected Intel(R) Centrino(R) Wireless-N 1000 BGN, REV=0x6C
[   11.971392] iwlagn 0000:04:00.0: device EEPROM VER=0x15d, CALIB=0x6
[   11.971398] iwlagn 0000:04:00.0: Device SKU: 0X9
[   11.971402] iwlagn 0000:04:00.0: Valid Tx ant: 0X1, Valid Rx ant: 0X3
[   11.971424] iwlagn 0000:04:00.0: Tunable channels: 13 802.11bg, 0 802.11a channels
[   11.971703] iwlagn 0000:04:00.0: irq 42 for MSI/MSI-X
[   12.114304] iwlagn 0000:04:00.0: loaded firmware version 128.50.3.1 build 13488
[   12.253246] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[26739.629619] iwlagn 0000:04:00.0: RF_KILL bit toggled to enable radio.


- it seems to say that the FR_KILL bit is on?

I have tried

Code: Select all
rfkill unblock all


but that didn't help.

I wanted to rebuild the kernel with the RF_KILL options set to "no" but no success here:

Code: Select all
susanne admin # genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon --disklabel --luks all
* Gentoo Linux Genkernel; Version 3.4.15
* Running with options: --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon --disklabel --luks all

* Linux Kernel 2.6.38-sabayon for x86_64...
* kernel: Using config from /usr/src/config
*         Previous config backed up to .config--2011-04-08--00-13-00.bak
* kernel: >> Running mrproper...
* ERROR: Failed to compile the "mrproper" target...

* -- Grepping log... --

/bin/sh: /usr/src/linux-2.6.38-sabayon/scripts/gcc-goto.sh: No such file or directory
make: *** No rule to make target `/usr/src/linux-2.6.38-sabayon/arch/x86/Makefile'.  Stop.
* Gentoo Linux Genkernel; Version 3.4.15
* Running with options: --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon --disklabel --luks all

* ERROR: Failed to compile the "mrproper" target...

* -- End log... --


So I have tried everything I could find but still stuck. Has anybody some guidance for me?

Thanks,
Rainer

Edit: Here is the log for pressing <Fn><F5>:

Code: Select all
Apr  8 01:10:12 susanne kernel: [31731.662813] atkbd serio0: Unknown key pressed (translated set 2, code 0x8e on isa0060/serio0).
Apr  8 01:10:12 susanne kernel: [31731.662821] atkbd serio0: Use 'setkeycodes e00e <keycode>' to make it known.
Apr  8 01:10:12 susanne kernel: [31731.664668] iwlagn 0000:04:00.0: RF_KILL bit toggled to enable radio.
Apr  8 01:10:12 susanne NetworkManager[7129]: <info> WiFi now enabled by radio killswitch
Apr  8 01:10:12 susanne kernel: [31731.673538] atkbd serio0: Unknown key released (translated set 2, code 0x8e on isa0060/serio0).
Apr  8 01:10:12 susanne kernel: [31731.673543] atkbd serio0: Use 'setkeycodes e00e <keycode>' to make it known.
Apr  8 01:10:12 susanne NetworkManager[7129]: <info> WiFi now disabled by radio killswitch
vaettchen
Simple Hen
 
Posts: 97
Joined: Sun Jan 21, 2007 8:47

Re: Can't enable wireless - RF_KILL problem?

Postby Fitzcarraldo » Thu Apr 07, 2011 16:36

What does the following return?

Code: Select all
rfkill list
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Can't enable wireless - RF_KILL problem?

Postby vaettchen » Thu Apr 07, 2011 16:43

That depends upon how often I have pushed the <Fn><F5> keys. It seems to circle through three different configurations. Output below (I have removed the lines referring to the Bluetooth device):

Code: Select all
susanne / # rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
1: ideapad_wlan: Wireless LAN
        Soft blocked: no
        Hard blocked: no
...
4: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
...
susanne / # rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
1: ideapad_wlan: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
...
4: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: yes
...
susanne / # rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
1: ideapad_wlan: Wireless LAN
        Soft blocked: no
        Hard blocked: no
...
4: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
...


The Soft Blocked: yes for acer-wireless (why Acer?) does not go away.
vaettchen
Simple Hen
 
Posts: 97
Joined: Sun Jan 21, 2007 8:47

Re: Can't enable wireless - RF_KILL problem?

Postby vaettchen » Thu Apr 07, 2011 16:53

Just in case the hwinfo output:

Code: Select all
29: PCI 400.0: 0282 WLAN controller
  [Created at pci.318]
  Unique ID: y9sn.OmvKrQrlkKB
  Parent ID: qTvu.ol2YwXEQdsC
  SysFS ID: /devices/pci0000:00/0000:00:1c.1/0000:04:00.0
  SysFS BusID: 0000:04:00.0
  Hardware Class: network
  Model: "Intel WiFi Link 100 Series"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x0084 "WiFi Link 100 Series"
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x1315
  Driver: "iwlagn"
  Driver Modules: "iwlagn"
  Device File: wlan0
  Features: WLAN
  Memory Range: 0xf2500000-0xf2501fff (rw,non-prefetchable)
  IRQ: 42 (56990 events)
  HW Address: 00:26:c7:50:c7:ac
  Link detected: no
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "pci:v00008086d00000084sv00008086sd00001315bc02sc80i00"
  Driver Info #0:
    Driver Status: iwlagn is active
    Driver Activation Cmd: "modprobe iwlagn"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #20 (PCI bridge)
and
Code: Select all
63: None 00.0: 1070a WLAN
  [Created at net.124]
  Unique ID: AYEt.QXn1l67RSa1
  Parent ID: y9sn.OmvKrQrlkKB
  SysFS ID: /class/net/wlan0
  SysFS Device Link: /devices/pci0000:00/0000:00:1c.1/0000:04:00.0
  Hardware Class: network interface
  Model: "WLAN network interface"
  Driver: "iwlagn"
  Driver Modules: "iwlagn"
  Device File: wlan0
  HW Address: 00:26:c7:50:c7:ac
  Link detected: no
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #29 (WLAN controller)
vaettchen
Simple Hen
 
Posts: 97
Joined: Sun Jan 21, 2007 8:47

Re: Can't enable wireless - RF_KILL problem?

Postby Fitzcarraldo » Thu Apr 07, 2011 17:22

I'm on a dog-slow public WiFi network on the moment. :roll:

Post the complete output of the command lsmod.

Basically, it seems, from what you posted so far, that you have two extra modules loaded: acer_wmi and ideapad_wlan. Use the rmmod command to unload those two and then use the rfkill list command again to find the index of what is left (I'm going to assume it will be '0') and try the command:

Code: Select all
rfkill unblock 0|wlan

Of course make sure that you use <Fn><F5> to show the hard block is zero.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Can't enable wireless - RF_KILL problem?

Postby Fitzcarraldo » Thu Apr 07, 2011 17:27

If your laptop is actually an IdeaPad then also try with that ideapad_wlan module loaded, i.e. with only the acer_wmi module unloaded.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Can't enable wireless - RF_KILL problem?

Postby vaettchen » Thu Apr 07, 2011 17:28

Her the lsmod outpt to start with. Working on the rest and back in 5 min...

Code: Select all
susanne / # lsmod
Module                  Size  Used by
lp                      7656  0
parport_pc             26985  0
ppdev                   4696  0
ipv6                  238960  32
snd_seq_dummy           1096  0
snd_seq_oss            22275  0
snd_seq_midi_event      4159  1 snd_seq_oss
snd_seq                38155  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4173  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            29601  0
snd_mixer_oss          11217  1 snd_pcm_oss
sco                     6672  2
rfcomm                 24592  6
bnep                    8701  2
l2cap                  33515  16 bnep,rfcomm
snd_hda_codec_hdmi     18698  1
snd_hda_codec_realtek   264824  1
snd_hda_intel          18200  2
iwlagn                157130  0
i915                  268705  7
snd_hda_codec          58327  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4398  1 snd_hda_codec
uvcvideo               49732  0
drm_kms_helper         21344  1 i915
snd_pcm                56665  4 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
drm                   148133  3 i915,drm_kms_helper
iwlcore                49628  1 iwlagn
videodev               53532  1 uvcvideo
v4l2_compat_ioctl32     6309  1 videodev
snd_timer              14502  2 snd_seq,snd_pcm
i2c_i801                6760  0
i2c_algo_bit            3978  1 i915
mac80211              163327  2 iwlagn,iwlcore
btusb                   8984  2
snd                    43129  16 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
bluetooth              45701  9 sco,bnep,rfcomm,l2cap,btusb
cfg80211              118575  3 iwlagn,iwlcore,mac80211
snd_page_alloc          5877  2 snd_hda_intel,snd_pcm
tpm_tis                 6520  0
iTCO_wdt                9912  0
intel_ips               7896  0
i2c_core               14071  6 i915,drm_kms_helper,drm,videodev,i2c_i801,i2c_algo_bit
atl1c                  24793  0
joydev                  8224  0
ideapad_laptop          3584  0
intel_agp               9224  1 i915
tpm                     9105  1 tpm_tis
acer_wmi               14376  0
pcspkr                  1488  0
iTCO_vendor_support     1633  1 iTCO_wdt
video                   9966  1 i915
sparse_keymap           2233  2 ideapad_laptop,acer_wmi
intel_gtt              10519  3 i915,intel_agp
tpm_bios                3938  1 tpm
xts                     2245  0
gf128mul                5546  1 xts
iscsi_tcp               7785  0
tg3                   108594  0
e1000                  85089  0
fuse                   56430  2
xfs                   429768  0
exportfs                2946  1 xfs
nfs                   241249  0
auth_rpcgss            35261  1 nfs
nfs_acl                 2015  1 nfs
lockd                  61715  1 nfs
sunrpc                159622  4 nfs,auth_rpcgss,nfs_acl,lockd
jfs                   142606  0
reiserfs              206371  0
ext4                  220676  2
jbd2                   43670  1 ext4
ext3                  107582  0
jbd                    36361  1 ext3
ext2                   54911  1
mbcache                 4754  3 ext4,ext3,ext2
scsi_wait_scan           711  0
sl811_hcd               8863  0
ohci_hcd               18169  0
uhci_hcd               18352  0
ehci_hcd               32795  0
sx8                    11236  0
imm                     8780  0
parport                25351  4 lp,parport_pc,ppdev,imm
pata_pcmcia             9685  0
pcmcia                 29628  1 pata_pcmcia
vaettchen
Simple Hen
 
Posts: 97
Joined: Sun Jan 21, 2007 8:47

Re: Can't enable wireless - RF_KILL problem?

Postby vaettchen » Thu Apr 07, 2011 17:39

Code: Select all
rmmod acer_wmi

did the trick! I write this over my working wireless connection!

Ahem - how do I make sure that acer_wmi gets out of the way for all eternity?

Thanks,
Rainer
vaettchen
Simple Hen
 
Posts: 97
Joined: Sun Jan 21, 2007 8:47

Re: Can't enable wireless - RF_KILL problem?

Postby Fitzcarraldo » Thu Apr 07, 2011 17:45

The more-difficult way is to rebuild the kernel and disable CONFIG_ACER_WMI (i.e. make it =n instead of =m).

The easy userspace way is to blacklist the module. To blacklist a module you add a line per module to the file /etc/modprobe.d/blacklist as follows:

Code: Select all
blacklist acer_wmi

(or whatever the module is called) and then:

Code: Select all
update-modules

Then look in /etc/modprobe.conf to see if the module is blacklisted and, if it is, reboot and use:

Code: Select all
lsmod

to check that the module is not loaded this time.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Can't enable wireless - RF_KILL problem?

Postby Fitzcarraldo » Thu Apr 07, 2011 17:49

For anyone else reading this thread, this is what using rfkill looks like (this example is from my laptop):

Code: Select all
# rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
# rfkill block 0
# rfkill list
0: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
# rfkill unblock 0
# rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
# rfkill block wlan
# rfkill list
0: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
# rfkill unblock wlan
# rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
#
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Next

Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 5 guests

cron