我无法使用网络设置打开无线适配器,它说无线已被无线开关禁用。在我的计算机上,硬件开关是Fn+ F5。当我按下它时什么也没发生。有人知道如何解决这个问题吗?
我发现我的硬件虽然不能正常工作。当我这样做
# rfkill list
我明白了
0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: yes
1: ideapad_wlan: Wireless LAN
Soft blocked: yes
Hard blocked: no
2: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
然后我按了Fn+F5并做了
# rfkill list
并得到以下结果
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
2: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
这证明组合键有效。我检查了我的 BIOS,发现 wlan 已启用。
并# sudo lshw -class network
给了我
*-network
description: Ethernet interface
product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: 05
serial: 04:7d:7b:f2:b6:4d
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8105e-1.fw ip=192.168.0.7 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:42 ioport:2000(size=256) memory:f0404000-f0404fff memory:f0400000-f0403fff
*-network DISABLED
description: Wireless interface
product: AR9285 Wireless Network Adapter (PCI-Express)
vendor: Atheros Communications Inc.
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
version: 01
serial: 74:e5:43:0f:2f:47
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=3.5.0-25-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:18 memory:f0500000-f050ffff
命令 :lspci -nnk | grep -iA2 net
结果 :
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
Subsystem: Lenovo Device [17aa:3975]
Kernel driver in use: r8169
--
03:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
Subsystem: Lenovo Device [17aa:31a1]
Kernel driver in use: ath9k
命令:lsmod
结果 :
Module Size Used by
ipheth 13449 0
snd_hda_codec_hdmi 32049 1
snd_hda_codec_realtek 78147 1
parport_pc 32689 0
ppdev 17074 0
bnep 18141 2
rfcomm 46620 0
coretemp 13401 0
kvm 414071 0
ghash_clmulni_intel 13221 0
aesni_intel 51038 0
cryptd 20404 2 ghash_clmulni_intel,aesni_intel
aes_x86_64 17256 1 aesni_intel
microcode 22804 0
ideapad_laptop 18087 0
sparse_keymap 13891 1 ideapad_laptop
arc4 12530 2
snd_hda_intel 33492 3
snd_hda_codec 134213 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 17699 1 snd_hda_codec
snd_pcm 96668 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq_midi 13325 0
snd_rawmidi 30513 1 snd_seq_midi
snd_seq_midi_event 14900 1 snd_seq_midi
snd_seq 61555 2 snd_seq_midi,snd_seq_midi_event
snd_timer 29426 2 snd_pcm,snd_seq
snd_seq_device 14498 3 snd_seq_midi,snd_rawmidi,snd_seq
wmi 19071 0
joydev 17458 0
mac_hid 13206 0
snd 78921 16 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
ath9k 131355 0
mac80211 540032 1 ath9k
psmouse 95595 0
serio_raw 13216 0
ath9k_common 14056 1 ath9k
ath9k_hw 395307 2 ath9k,ath9k_common
ath 23828 3 ath9k,ath9k_common,ath9k_hw
rts5139 356200 0
uvcvideo 76750 0
videobuf2_core 32852 1 uvcvideo
videodev 120310 2 uvcvideo,videobuf2_core
videobuf2_vmalloc 12861 1 uvcvideo
videobuf2_memops 13405 1 videobuf2_vmalloc
i915 520615 3
ath3k 12919 0
btusb 22475 0
bluetooth 209249 13 bnep,rfcomm,ath3k,btusb
drm_kms_helper 49113 1 i915
drm 288721 4 i915,drm_kms_helper
i2c_algo_bit 13414 1 i915
mei 40691 0
cfg80211 206797 3 ath9k,mac80211,ath
video 19391 1 i915
lpc_ich 17062 0
soundcore 15048 1 snd
snd_page_alloc 18485 2 snd_hda_intel,snd_pcm
lp 17760 0
parport 46346 3 parport_pc,ppdev,lp
hid_generic 12541 0
usbhid 46987 0
hid 100411 2 hid_generic,usbhid
r8169 61651 0
命令 :lsb_release -rcd
结果 :
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
答案1
首先,您可以在系统设置中检查 Fn + F5 组合键是否正确分配。根据您的计算机规格,某些组合键可能未分配。
您可以进入系统设置、键盘(在硬件部分)、快捷方式,然后从那里分配它(如果需要)。
其他方式,你可以安装 xdotool
sudo apt-get install xdotool
并从那里进行配置。
xbindkeys 是第三种选择。
答案2
尝试这些命令
sudo modprobe -rvf ideapad-laptop
sudo modprobe -rvf ath3k
sudo modprobe -rvf ath9k
然后
sudo modprobe ath9k
等待 10 秒钟然后...
...再次检查+rfkill list all
之前和之后的结果FnF5
看看你的无线网络现在是否已启动并运行。在我看来,ideapad-laptop 模块有点乱,请参阅modinfo ideapad-laptop
更多内容。
另外由于某种原因,加载了 2 个 atheros 模块。ath3k
和ath9k
。您只需要ath9k
。
上述命令将卸载模块并仅重新加载ath9k
。
如果这有效,也许您需要在每次启动 PC 时卸载该模块。 中的条目/etc/rc.local
也许有帮助。
答案3
我在联想 B570 上通过重置 BIOS 解决了这个问题(经过多次尝试)。打开电脑,用F2钥匙进入 BIOS,然后用钥匙重置F9。
希望能帮助到你!