我刚刚在一台旧电脑上全新安装了 Ubuntu 20.04,每次我将电脑从睡眠状态唤醒时,WiFi 都会断开,并且无法重新连接(当设备未进入睡眠状态时也很少随机发生这种情况)。
无线网卡是 Atheros AR9485(内置),正在运行ath9k
且一切都是最新的
我尝试插入 Belkin USB WiFi 加密狗,但每次它都会使用 PCI 卡自行禁用。
详细资料:
当它不工作时, PCI 卡rfkill list
会显示phy0
为“硬阻止”,我发现除了重新启动计算机外,没有其他方法可以再次启用它。(加密狗未显示为阻止,但仍处于禁用状态)
如果我使用软块phy0
关闭rfkill
加密狗的话。
我也尝试移除 Atheros 卡network-management
,但没有任何变化。
一切运行顺利时的调试信息(无加密狗):
ifconfig
:
enp3s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 18:67:b0:40:f4:f2 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Boucle locale)
RX packets 870 bytes 90566 (90.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 870 bytes 90566 (90.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2a01:cb11:403:2100:d0d8:a6ca:c7b:9b10 prefixlen 64 scopeid 0x0<global>
inet6 2a01:cb11:403:2100:8edf:fd97:4e60:42a4 prefixlen 64 scopeid 0x0<global>
inet6 fe80::6091:8aac:3e3:b613 prefixlen 64 scopeid 0x20<link>
ether 24:fd:52:99:40:2d txqueuelen 1000 (Ethernet)
RX packets 37519 bytes 46147156 (46.1 MB)
RX errors 0 dropped 89 overruns 0 frame 0
TX packets 16308 bytes 2312226 (2.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lshw -C network
:
*-network
description: Interface réseau sans fil
produit: AR9485 Wireless Network Adapter
fabricant: Qualcomm Atheros
identifiant matériel: 0
information bus: pci@0000:02:00.0
nom logique: wlp2s0
version: 01
numéro de série: 24:fd:52:99:40:2d
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration : broadcast=yes driver=ath9k driverversion=5.4.0-40-generic firmware=N/A ip=192.168.1.13 latency=0 link=yes multicast=yes wireless=IEEE 802.11
ressources : irq:16 mémoire:f7900000-f797ffff mémoire:f7980000-f798ffff
*-network
description: Ethernet interface
produit: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
fabricant: Realtek Semiconductor Co., Ltd.
identifiant matériel: 0
information bus: pci@0000:03:00.0
nom logique: enp3s0
version: 06
numéro de série: 18:67:b0:40:f4:f2
capacité: 1Gbit/s
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration : autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=no multicast=yes port=MII
ressources : irq:19 portE/S:d000(taille=256) mémoire:f7800000-f7800fff mémoire:f2100000-f2103fff
lspci | grep -i wireless
:
02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
当没有任何工作(无加密狗)时的调试信息:
ifconfig
:
enp3s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 18:67:b0:40:f4:f2 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Boucle locale)
RX packets 10373 bytes 880405 (880.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10373 bytes 880405 (880.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lshw -C network
:
*-network DÉSACTIVÉ
description: Interface réseau sans fil
produit: AR9485 Wireless Network Adapter
fabricant: Qualcomm Atheros
identifiant matériel: 0
information bus: pci@0000:02:00.0
nom logique: wlp2s0
version: 01
numéro de série: 24:fd:52:99:40:2d
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration : broadcast=yes driver=ath9k driverversion=5.4.0-40-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
ressources : irq:16 mémoire:f7900000-f797ffff mémoire:f7980000-f798ffff
*-network
description: Ethernet interface
produit: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
fabricant: Realtek Semiconductor Co., Ltd.
identifiant matériel: 0
information bus: pci@0000:03:00.0
nom logique: enp3s0
version: 06
numéro de série: 18:67:b0:40:f4:f2
capacité: 1Gbit/s
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration : autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=no multicast=yes port=MII
ressources : irq:19 portE/S:d000(taille=256) mémoire:f7800000-f7800fff mémoire:f2100000-f2103fff
lspci | grep -i wireless
:
02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
cat /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
:
[Connection]
wifi.powersave = 3