Linux+Windows双系统下无线开关失效,无法连上wifi

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

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 /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

?
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 /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!

?
1
2
3
[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 :

?
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  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

?
1
options ath_pci rfkill=0

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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值