在 ubuntu 22.04 中使用一段时间后,WiFi 突然消失,重新启动设备后,WiFi 工作正常,连续使用一段时间后,WiFi 突然消失。附上屏幕截图以供参考。我尝试从rtw88存储库仍然无法正常工作,WiFi 突然不显示。以下是lshw -C network
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 15
serial: 6c:24:08:ee:0d:c5
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.2.0-34-generic firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
resources: irq:43 ioport:3000(size=256) memory:fd504000-fd504fff memory:fd500000-fd503fff
*-network
description: Wireless interface
product: Realtek Semiconductor Co., Ltd.
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 00
serial: 9c:2f:9d:90:30:bb
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtw89_8852be driverversion=6.2.0-34-generic firmware=N/A ip=192.168.0.219 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:70 ioport:2000(size=256) memory:fd400000-fd4fffff
Wi-Fi 消失时的输出
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 15
serial: 6c:24:08:ee:0d:c5
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.2.0-34-generic firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair resources: irq:43 ioport:3000(size=256) memory: fd504000-fd504fff memory:fd500000-fd503fff
检查了这些日志,发现网络管理器的一些日志有问题
sudo journalctl -b 0 -u NetworkManager
Oct 18 20:22:16 vamsi NetworkManager[636]: <info> [1697674936.0034] agent-manager: agent[b643854d02c1ffd4,:1.113/org.gnome.Shell.NetworkAgent/1000]: agent registered
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7245] device (wlp3s0): state change: activated -> unmanaged (reason 'removed', sys-iface-state: 'removed')
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7520] dhcp4 (wlp3s0): canceled DHCP transaction
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7520] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7521] dhcp4 (wlp3s0): state changed no lease
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7523] dhcp6 (wlp3s0): canceled DHCP transaction
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7523] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7523] dhcp6 (wlp3s0): state changed no lease
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7542] manager: NetworkManager state is now CONNECTED_LOCAL
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7544] device (p2p-dev-wlp3s0): state change: disconnected -> unmanaged (reason 'removed', sys-iface-state: 'removed')
Oct 18 20:42:54 vamsi NetworkManager[636]: <info> [1697676174.7611] radio killswitch /sys/devices/pci0000:00/0000:00:02.3/0000:03:00.0/ieee80211/phy0/rfkill2 disappeared