I am currently not able to turn on wifi on my laptop as it stucks to airplane mode. And gnome says I have to use hardware switch to turn off airplane mode.

The hard switch on my laptop (Thinkpad X301) is Fn+F5. If I press these two buttons then a
notification will show says airplane mode is enabled, i.e. I can only use the hardware switch to
enable airplane mode but I can't use it to disable it.
I googled the situation and have tried the following approaches. But none of them works.
(1) . Use the command rfkill
root@x301:~# rfkill list all
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: yes
Hard blocked: yes
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
root@x301:~# rfkill unblock all
root@x301:~# rfkill list all
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: no
Hard blocked: yes
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
(2). The battary trick suggested in the post
https://ubuntuforums.org/showthread.php?t=2249263(3). Reset my bios and restart
Can anyone help me? Any suggestion will be appreciated.
Best,
Qiang
---------------------------------------------------------------------------------------------------------------------
More info about my system
root@x301:~#uname -a
Linux x301 4.7.0-1-amd64 #1 SMP Debian 4.7.8-1 (2016-10-19) x86_64 GNU/Linux
root@x301:~# lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:03.0 Communication controller: Intel Corporation Mobile 4 Series Chipset MEI Controller (rev 07)
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
04:00.0 Memory controller: Intel Corporation Turbo Memory Controller (rev 11)
root@x301:~# lsmod
Module Size Used by
nls_ascii 16384 1
nls_cp437 20480 1
vfat 20480 1
fat 69632 1 vfat
usblp 20480 0
uas 24576 0
usb_storage 69632 2 uas
fuse 98304 4
iptable_nat 16384 0
nf_conntrack_ipv4 20480 1
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
nf_nat_ipv4 16384 1 iptable_nat
nf_nat 24576 1 nf_nat_ipv4
nf_conntrack 114688 3 nf_nat,nf_nat_ipv4,nf_conntrack_ipv4
iptable_filter 16384 0
xt_mark 16384 1
xt_set 16384 1
iptable_mangle 16384 1
ip_set_hash_ip 32768 1
ip_set 45056 2 ip_set_hash_ip,xt_set
nfnetlink 16384 2 ip_set
arc4 16384 2
iwldvm 143360 0
mac80211 643072 1 iwldvm
iwlwifi 147456 1 iwldvm
cfg80211 569344 3 iwlwifi,mac80211,iwldvm
snd_hda_codec_conexant 24576 1
iTCO_wdt 16384 0
iTCO_vendor_support 16384 1 iTCO_wdt
snd_hda_codec_generic 69632 1 snd_hda_codec_conexant
binfmt_misc 20480 1
uvcvideo 90112 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_core 36864 2 uvcvideo,videobuf2_v4l2
videodev 176128 3 uvcvideo,videobuf2_core,videobuf2_v4l2
media 36864 2 uvcvideo,videodev
coretemp 16384 0
pcspkr 16384 0
evdev 24576 24
joydev 20480 0
serio_raw 16384 0
i2c_i801 20480 0
sg 32768 0
lpc_ich 24576 0
mfd_core 16384 1 lpc_ich
snd_hda_intel 36864 6
snd_hda_codec 135168 3 snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel
snd_hda_core 81920 4 snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
shpchp 36864 0
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 110592 3 snd_hda_codec,snd_hda_intel,snd_hda_core
acpi_cpufreq 20480 1
snd_timer 32768 1 snd_pcm
i915 1282048 25
mei_me 32768 0
mei 94208 1 mei_me
drm_kms_helper 147456 1 i915
thinkpad_acpi 86016 0
nvram 16384 1 thinkpad_acpi
wmi 16384 0
snd 81920 20 snd_hwdep,snd_timer,snd_hda_codec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi
soundcore 16384 1 snd
rfkill 24576 3 cfg80211,thinkpad_acpi
ac 16384 0
battery 16384 0
drm 364544 9 i915,drm_kms_helper
i2c_algo_bit 16384 1 i915
video 40960 2 i915,thinkpad_acpi
button 16384 1 i915
tpm_tis 20480 0
tpm 45056 1 tpm_tis
tp_smapi 28672 0
thinkpad_ec 16384 1 tp_smapi
parport_pc 28672 0
sunrpc 331776 1
ppdev 20480 0
lp 20480 0
parport 49152 3 lp,ppdev,parport_pc
ip_tables 24576 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 36864 5 xt_mark,ip_tables,xt_set,iptable_filter,iptable_mangle
autofs4 40960 2
ext4 589824 3
ecb 16384 0
glue_helper 16384 0
lrw 16384 0
gf128mul 16384 1 lrw
ablk_helper 16384 0
cryptd 20480 1 ablk_helper
aes_x86_64 20480 0
crc16 16384 1 ext4
jbd2 106496 1 ext4
crc32c_generic 16384 0
mbcache 16384 4 ext4
sr_mod 24576 0
cdrom 57344 1 sr_mod
sd_mod 45056 7
ahci 36864 4
libahci 32768 1 ahci
libata 245760 2 ahci,libahci
psmouse 126976 0
scsi_mod 225280 6 sg,uas,usb_storage,libata,sd_mod,sr_mod
e1000e 237568 0
ptp 20480 1 e1000e
pps_core 20480 1 ptp
fjes 28672 0
ehci_pci 16384 0
uhci_hcd 45056 0
ehci_hcd 77824 1 ehci_pci
usbcore 241664 7 uas,usblp,uhci_hcd,uvcvideo,usb_storage,ehci_hcd,ehci_pci
thermal 20480 0
usb_common 16384 1 usbcore