我有一台定制的 PC,我选择在上面安装 Ubuntu 22.04 LTS。直到几天前,它一直运行良好。我的主板内置了 Wi-Fi,我注意到它会随机掉线。重置了我的路由器和所有东西,但问题仍然存在,但我买了一个 USB Wi-Fi 适配器,因为我以为是主板本身的卡,但问题也开始出现在 USB 适配器上。我想继续采取软件更新错误方法,而不是假设这是硬件故障。
sudo lshw -C network
*-network
description: Ethernet interface
product: RTL8125 2.5GbE Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:0c:00.0
logical name: enp12s0
version: 05
serial: 04:7c:16:d9:30:69
capacity: 1Gbit/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 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.5.0-14-generic firmware=rtl8125b-2_0.0.2 07/13/20 latency=0 link=no multicast=yes port=twisted pair
resources: irq:39 ioport:e000(size=256) memory:fc500000-fc50ffff memory:fc510000-fc513fff
*-network
description: Wireless interface
product: MEDIATEK Corp.
vendor: MEDIATEK Corp.
physical id: 0
bus info: pci@0000:0d:00.0
logical name: wlp13s0
version: 00
serial: 00:41:0e:e4:84:23
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=mt7921e driverversion=6.5.0-14-generic firmware=____000000-20221227123243 latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: iomemory:fc0-fbf irq:104 memory:fc20300000-fc203fffff memory:fc400000-fc407fff
*-network
description: Wireless interface
physical id: 7
bus info: usb@2:5.4
logical name: wlx9418655dc484
serial: 94:18:65:5d:c4:84
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=mt7921u driverversion=6.5.0-14-generic firmware=____010000-20220209150915 ip=192.168.2.164 link=yes multicast=yes wireless=IEEE 802.11
当我做任何事时我都没有立即看到任何东西journalctl -b 0 -u NetworkManager
。
编辑:我忘了执行 sudo,现在由于某种原因,网络已停止随机掉线。非常奇怪。
编辑2:运行后sudo journalctl -b 0 -u NetworkManager
,我收到一个带有警告的输出。
Jan 17 15:51:34 trey-MS-7D78 NetworkManager[1626]: <info> [1705528294.1320] audit: op="connection-add-activate" uuid="c35dc574-7111-4322-8651-550e452d176f" name="RAGtrey 1" pid=4087 uid=1000 result="success"
Jan 17 15:51:34 trey-MS-7D78 NetworkManager[1626]: <info> [1705528294.1321] device (wlp13s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jan 17 15:51:34 trey-MS-7D78 NetworkManager[1626]: <info> [1705528294.1322] device (wlp13s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jan 17 15:51:34 trey-MS-7D78 NetworkManager[1626]: <info> [1705528294.1323] device (wlp13s0): Activation: (wifi) access point 'RAGtrey 1' has security, but secrets are required.
Jan 17 15:51:34 trey-MS-7D78 NetworkManager[1626]: <info> [1705528294.1323] device (wlp13s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Jan 17 15:51:39 trey-MS-7D78 NetworkManager[1626]: <warn> [1705528299.6840] device (wlp13s0): no secrets: User canceled the secrets request.
Jan 17 15:51:39 trey-MS-7D78 NetworkManager[1626]: <info> [1705528299.6841] device (wlp13s0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed')
Jan 17 15:51:39 trey-MS-7D78 NetworkManager[1626]: <warn> [1705528299.6843] device (wlp13s0): Activation: failed for connection 'RAGtrey 1'
Jan 17 15:51:39 trey-MS-7D78 NetworkManager[1626]: <info> [1705528299.6844] device (wlp13s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
~
答案1
因此,我找到了另一个答案页面(Ubuntu 22.04.3 LTS wifi 无法使用) 与另一个在切换到 6.2 内核后无法使用 Wi-Fi 的人讨论过这个问题。到目前为止,它似乎可以正常工作。令人失望的是,Ubuntu 6.5 内核彻底破坏了我的 Wi-Fi 卡。