Mediatek MT7921 WLAN 卡在连接状态,或无页面显示或页面显示间歇

Mediatek MT7921 WLAN 卡在连接状态,或无页面显示或页面显示间歇

MEDIATEK MT7921 WLAN无法连接,或者连接后不显示页面,或者几分钟后才显示页面。

当我将它连接到我的 Pixel 5A WLAN 热点时,我在家里或任何地方使用它都没有遇到问题,但在这里,在一个大型校园图书馆里,我可以看到几米外有一个白色的思科接入点,连接几乎总是无法连接,图标在旋转,或断断续续,或显示为已连接但没有页面显示,或者需要一分钟才能连接。当标记为已连接时,默认网关的 Ping 回复也会时断时续。本地 WLAN 本身似乎没有问题,我的平板电脑和手机连接没有问题,没有遇到网速慢的情况,而且这层楼有数百人使用它。

我在华硕 Zenbook UX325UAZ 上运行 Ubuntu 22.04.3 LTS,内核为 6.2.0-33-generic。如果相关的话,我在同一台设备上遇到了类似的蓝牙问题,我的鼠标会随机停止工作,蓝牙无法启用,尽管这种情况发生的频率比 WLAN NIC 问题要低得多。在报告的类似问题中,大多数都提到内核 5.21 包含针对此卡的补丁。

当尝试使用华硕 USB-N10 时,它确实出现在我的面板菜单中,但同时板载扫描似乎会造成干扰,而且我还无法正确禁用它,所以我只能尝试使用 USB。

我确实读过一些关于在问题发生时完全关闭电源而不是重新启动的信息,并且确保在关机后启动时电源线已连接,这样我的笔记本电脑就可以暂时连接,但现在我顶部面板上的 WLAN 图标显示已连接,但没有页面显示,然后页面确实显示或加载缓慢。

下面是一些日志和我在连接失败时尝试过的方法,图标反复旋转。对默认网关执行 ping 操作会导致无法到达目的地,每隔 20 次左右就会回复无路由到主机。我没有双启动,而且这台笔记本电脑上从未有过双启动。

问题仍然存在。我读到过一些文章说有必要检查安全启动,和/或快速启动或 BIOS 中的其他内容?从下面的信息中有什么明显的发现吗?或者我还可以尝试其他方法吗?

sudo lshw -class network

*-network                 
       description: Wireless interface
       product: MT7921 802.11ax PCI Express Wireless Network Adapter
       vendor: MEDIATEK Corp.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlp1s0
       version: 00
       serial: 90:e8:68:43:fb:b3
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=mt7921e driverversion=6.2.0-33-generic firmware=____010000-20220209150915 ip=137.43.30.114 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:87 memory:e0300000-e03fffff memory:e0400000-e0403fff memory:e0404000-e0404fff

lspci -nnk

00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
    Kernel driver in use: pcieport
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
    Kernel driver in use: pcieport
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
    Kernel driver in use: pcieport
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
    Kernel driver in use: pcieport
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
    Subsystem: ASUSTeK Computer Inc. FCH SMBus Controller [1043:1c02]
    Kernel driver in use: piix4_smbus
    Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
    Subsystem: ASUSTeK Computer Inc. FCH LPC Bridge [1043:1c02]
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0 [1022:1448]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1 [1022:1449]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2 [1022:144a]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3 [1022:144b]
    Kernel driver in use: k10temp
    Kernel modules: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4 [1022:144c]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5 [1022:144d]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6 [1022:144e]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7 [1022:144f]
01:00.0 Network controller [0280]: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter [14c3:7961]
    Subsystem: AzureWave Device [1a3b:4680]
    Kernel driver in use: mt7921e
    Kernel modules: mt7921e
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
    Subsystem: ASUSTeK Computer Inc. RTS522A PCI Express Card Reader [1043:202f]
    Kernel driver in use: rtsx_pci
    Kernel modules: rtsx_pci
03:00.0 Non-Volatile memory controller [0108]: SK hynix Gold P31 SSD [1c5c:174a]
    Subsystem: SK hynix Gold P31 SSD [1c5c:174a]
    Kernel driver in use: nvme
    Kernel modules: nvme
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne [1002:164c] (rev c2)
    Subsystem: ASUSTeK Computer Inc. Lucienne [1043:1c02]
    Kernel driver in use: amdgpu
    Kernel modules: amdgpu
04:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
    Subsystem: ASUSTeK Computer Inc. Renoir Radeon High Definition Audio Controller [1043:1c02]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
04:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
    Kernel driver in use: ccp
    Kernel modules: ccp
04:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
    Subsystem: ASUSTeK Computer Inc. Renoir/Cezanne USB 3.1 [1043:1c02]
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
04:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
    Subsystem: ASUSTeK Computer Inc. Renoir/Cezanne USB 3.1 [1043:1c02]
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
04:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor [1022:15e2] (rev 01)
    Subsystem: ASUSTeK Computer Inc. Raven/Raven2/FireFlight/Renoir Audio Processor [1043:1c02]
    Kernel driver in use: snd_rn_pci_acp3x
    Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt
04:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3]
    DeviceName: HD Audio Controller
    Subsystem: ASUSTeK Computer Inc. Family 17h (Models 10h-1fh) HD Audio Controller [1043:1c02]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

lspci -vvnn | grep -A 9 Network

01:00.0 Network controller [0280]: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter [14c3:7961]
    Subsystem: AzureWave Device [1a3b:4680]
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 87
    IOMMU group: 8
    Region 0: Memory at e0300000 (64-bit, prefetchable) [size=1M]
    Region 2: Memory at e0400000 (64-bit, prefetchable) [size=16K]
    Region 4: Memory at e0404000 (64-bit, prefetchable) [size=4K]

rfkill list

0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

apt info linux-firmware -a | grep Version

Version: 20220329.git681281e4-0ubuntu3.18
Version: 20220329.git681281e4-0ubuntu3.14
Version: 20220329.git681281e4-0ubuntu1

modinfo mt7921e | grep alias

alias:          pci:v000014C3d00000616sv*sd*bc*sc*i*
alias:          pci:v000014C3d00000608sv*sd*bc*sc*i*
alias:          pci:v000014C3d00007922sv*sd*bc*sc*i*
alias:          pci:v000014C3d00007961sv*sd*bc*sc*i*

lsmod | grep mt7921

mt7921e                28672  0
mt7921_common         114688  1 mt7921e
mt76_connac_lib        90112  2 mt7921e,mt7921_common
mt76                  122880  3 mt7921e,mt7921_common,mt76_connac_lib
mac80211             1617920  3 mt76,mt7921_common,mt76_connac_lib
cfg80211             1241088  4 mt76,mac80211,mt7921_common,mt76_connac_lib
modinfo mt7921e | grep -i version
srcversion:     E328FAB2A274BDA6C4B7CAB
vermagic:       6.2.0-33-generic SMP preempt mod_unload modversions 

没有输出dkms status

dmesg -w | grep wlan

[   16.031268] mt7921e 0000:01:00.0 wlp1s0: renamed from wlan0

sudo journalctl -fu NetworkManager

Sep 20 18:34:55 mechanism NetworkManager[851]: <info>  [1695231295.8722] device (wlp1s0): disconnecting for new activation request.
Sep 20 18:34:55 mechanism NetworkManager[851]: <info>  [1695231295.8723] device (wlp1s0): state change: activated -> deactivating (reason 'new-activation', sys-iface-state: 'managed')
Sep 20 18:34:55 mechanism NetworkManager[851]: <info>  [1695231295.8740] manager: NetworkManager state is now CONNECTED_LOCAL
Sep 20 18:34:55 mechanism NetworkManager[851]: <info>  [1695231295.8744] audit: op="connection-activate" uuid="c169499c-3671-442a-9c68-abc394f0f4f3" name="Campus Wireless" pid=2896 uid=1000 result="success"
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.2603] device (wlp1s0): state change: deactivating -> disconnected (reason 'new-activation', sys-iface-state: 'managed')
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.2913] dhcp4 (wlp1s0): canceled DHCP transaction
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.2913] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.2913] dhcp4 (wlp1s0): state changed no lease
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3322] device (wlp1s0): Activation: starting connection 'Campus Wireless' (c169499c-3671-442a-9c68-abc394f0f4f3)
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3325] device (wlp1s0): supplicant interface state: completed -> disconnected
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3333] device (wlp1s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3336] manager: NetworkManager state is now CONNECTING
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3341] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3344] device (wlp1s0): Activation: (wifi) connection 'Campus Wireless' requires no security.  No secrets needed.
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3345] Config: added 'ssid' value 'Campus Wireless'
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3345] Config: added 'scan_ssid' value '1'
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3345] Config: added 'bgscan' value 'simple:30:-70:86400'
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3345] Config: added 'key_mgmt' value 'NONE'
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3900] device (wlp1s0): supplicant interface state: disconnected -> authenticating
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.3952] device (wlp1s0): supplicant interface state: authenticating -> associating
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.6165] device (wlp1s0): supplicant interface state: associating -> completed
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.6166] device (wlp1s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "Campus Wireless"
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.6168] device (wlp1s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Sep 20 18:34:56 mechanism NetworkManager[851]: <info>  [1695231296.6174] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Sep 20 18:35:05 mechanism NetworkManager[851]: <info>  [1695231305.9680] dhcp4 (wlp1s0): state changed new lease, address=137.43.30.114
Sep 20 18:35:05 mechanism NetworkManager[851]: <info>  [1695231305.9748] device (wlp1s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Sep 20 18:35:05 mechanism NetworkManager[851]: <info>  [1695231305.9769] device (wlp1s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Sep 20 18:35:05 mechanism NetworkManager[851]: <info>  [1695231305.9770] device (wlp1s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Sep 20 18:35:05 mechanism NetworkManager[851]: <info>  [1695231305.9773] manager: NetworkManager state is now CONNECTED_LOCAL
Sep 20 18:35:05 mechanism NetworkManager[851]: <info>  [1695231305.9777] manager: NetworkManager state is now CONNECTED_SITE
Sep 20 18:35:05 mechanism NetworkManager[851]: <info>  [1695231305.9778] policy: set 'Campus Wireless' (wlp1s0) as default for IPv4 routing and DNS
Sep 20 18:35:05 mechanism NetworkManager[851]: <info>  [1695231305.9783] device (wlp1s0): Activation: successful, device activated.
Sep 20 18:35:05 mechanism NetworkManager[851]: <info>  [1695231305.9786] manager: NetworkManager state is now CONNECTED_GLOBAL         --              

sudo systemctl restart NetworkManager

再次sudo journalctl -fu NetworkManager

Sep 20 18:51:05 mechanism NetworkManager[851]: <info>  [1695232265.1441] device (wlp1s0): supplicant interface state: completed -> authenticating
Sep 20 18:51:05 mechanism NetworkManager[851]: <info>  [1695232265.1442] device (wlp1s0): ip:dhcp4: restarting
Sep 20 18:51:05 mechanism NetworkManager[851]: <info>  [1695232265.1442] dhcp4 (wlp1s0): canceled DHCP transaction
Sep 20 18:51:05 mechanism NetworkManager[851]: <info>  [1695232265.1442] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Sep 20 18:51:05 mechanism NetworkManager[851]: <info>  [1695232265.1542] device (wlp1s0): supplicant interface state: authenticating -> associating
Sep 20 18:51:05 mechanism NetworkManager[851]: <info>  [1695232265.3874] device (wlp1s0): supplicant interface state: associating -> completed
Sep 20 18:51:43 mechanism NetworkManager[851]: <info>  [1695232303.7352] device (wlp1s0): supplicant interface state: completed -> authenticating
Sep 20 18:51:43 mechanism NetworkManager[851]: <info>  [1695232303.7353] device (wlp1s0): ip:dhcp4: restarting
Sep 20 18:51:43 mechanism NetworkManager[851]: <info>  [1695232303.7355] dhcp4 (wlp1s0): canceled DHCP transaction
Sep 20 18:51:43 mechanism NetworkManager[851]: <info>  [1695232303.7357] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Sep 20 18:51:43 mechanism NetworkManager[851]: <info>  [1695232303.7412] device (wlp1s0): supplicant interface state: authenticating -> associating
Sep 20 18:51:43 mechanism NetworkManager[851]: <info>  [1695232303.8399] device (wlp1s0): supplicant interface state: associating -> completed
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.0491] device (wlp1s0): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.0495] manager: NetworkManager state is now CONNECTED_LOCAL
Sep 20 18:52:29 mechanism NetworkManager[851]: <warn>  [1695232349.0500] device (wlp1s0): Activation: failed for connection 'Campus Wireless'
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.0503] device (wlp1s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.0519] dhcp4 (wlp1s0): canceled DHCP transaction
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.2106] device (wlp1s0): supplicant interface state: completed -> disconnected
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5627] policy: auto-activating connection 'Campus Wireless' (c169499c-3671-442a-9c68-abc394f0f4f3)
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5634] device (wlp1s0): Activation: starting connection 'Campus Wireless' (c169499c-3671-442a-9c68-abc394f0f4f3)
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5636] device (wlp1s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5642] manager: NetworkManager state is now CONNECTING
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5647] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5651] device (wlp1s0): Activation: (wifi) connection 'Campus Wireless' requires no security.  No secrets needed.
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5652] Config: added 'ssid' value 'Campus Wireless'
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5652] Config: added 'scan_ssid' value '1'
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5652] Config: added 'bgscan' value 'simple:30:-70:86400'
Sep 20 18:52:29 mechanism NetworkManager[851]: <info>  [1695232349.5652] Config: added 'key_mgmt' value 'NONE'
Sep 20 18:52:33 mechanism NetworkManager[851]: <info>  [1695232353.5974] device (wlp1s0): supplicant interface state: disconnected -> scanning
Sep 20 18:52:37 mechanism NetworkManager[851]: <info>  [1695232357.3487] device (wlp1s0): supplicant interface state: scanning -> authenticating
Sep 20 18:52:37 mechanism NetworkManager[851]: <info>  [1695232357.3617] device (wlp1s0): supplicant interface state: authenticating -> associating
Sep 20 18:52:37 mechanism NetworkManager[851]: <info>  [1695232357.5640] device (wlp1s0): supplicant interface state: associating -> completed
Sep 20 18:52:37 mechanism NetworkManager[851]: <info>  [1695232357.5641] device (wlp1s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "Campus Wireless"
Sep 20 18:52:37 mechanism NetworkManager[851]: <info>  [1695232357.5644] device (wlp1s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Sep 20 18:52:37 mechanism NetworkManager[851]: <info>  [1695232357.5650] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Sep 20 18:53:16 mechanism NetworkManager[851]: <info>  [1695232396.0168] device (wlp1s0): supplicant interface state: completed -> authenticating
Sep 20 18:53:16 mechanism NetworkManager[851]: <info>  [1695232396.0168] device (wlp1s0): ip:dhcp4: restarting
Sep 20 18:53:16 mechanism NetworkManager[851]: <info>  [1695232396.0169] dhcp4 (wlp1s0): canceled DHCP transaction
Sep 20 18:53:16 mechanism NetworkManager[851]: <info>  [1695232396.0170] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Sep 20 18:53:16 mechanism NetworkManager[851]: <info>  [1695232396.0268] device (wlp1s0): supplicant interface state: authenticating -> associating
Sep 20 18:53:16 mechanism NetworkManager[851]: <info>  [1695232396.1233] device (wlp1s0): supplicant interface state: associating -> completed
Sep 20 18:53:54 mechanism NetworkManager[851]: <info>  [1695232434.4677] device (wlp1s0): supplicant interface state: completed -> authenticating
Sep 20 18:53:54 mechanism NetworkManager[851]: <info>  [1695232434.4678] device (wlp1s0): ip:dhcp4: restarting
Sep 20 18:53:54 mechanism NetworkManager[851]: <info>  [1695232434.5075] dhcp4 (wlp1s0): canceled DHCP transaction
Sep 20 18:53:54 mechanism NetworkManager[851]: <info>  [1695232434.5076] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Sep 20 18:53:54 mechanism NetworkManager[851]: <info>  [1695232434.5094] device (wlp1s0): supplicant interface state: authenticating -> associating
Sep 20 18:53:54 mechanism NetworkManager[851]: <info>  [1695232434.5585] device (wlp1s0): supplicant interface state: associating -> completed
Sep 20 18:54:40 mechanism NetworkManager[851]: <info>  [1695232480.0521] device (wlp1s0): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
Sep 20 18:54:40 mechanism NetworkManager[851]: <info>  [1695232480.0526] manager: NetworkManager state is now CONNECTED_LOCAL
Sep 20 18:54:40 mechanism NetworkManager[851]: <warn>  [1695232480.0529] device (wlp1s0): Activation: failed for connection 'Campus Wireless'
Sep 20 18:54:40 mechanism NetworkManager[851]: <info>  [1695232480.0533] device (wlp1s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Sep 20 18:54:40 mechanism NetworkManager[851]: <info>  [1695232480.0952] dhcp4 (wlp1s0): canceled DHCP transaction
Sep 20 18:54:40 mechanism NetworkManager[851]: <info>  [1695232480.2460] device (wlp1s0): supplicant interface state: completed -> disconnected

mcli general logging level TRACE domains ALL

Sep 20 19:03:00 mechanism NetworkManager[9547]: <trace> [1695232980.9937] auth: call[116]: CheckAuthorization(org.freedesktop.NetworkManager.wifi.scan), subject=unix-process[pid=2896, uid=1000, start=6234]
Sep 20 19:03:00 mechanism NetworkManager[9547]: <trace> [1695232980.9977] auth: call[116]: completed: authorized=1, challenge=0
Sep 20 19:03:00 mechanism NetworkManager[9547]: <debug> [1695232980.9978] device[e65947e8dd6924f9] (wlp1s0): wifi-scan: start explicit scan (0 SSIDs to probe scan)
Sep 20 19:03:00 mechanism NetworkManager[9547]: <trace> [1695232980.9978] device[e65947e8dd6924f9] (wlp1s0): wifi-scan: kickoff: explicit scan starting
Sep 20 19:03:00 mechanism NetworkManager[9547]: <trace> [1695232980.9979] sup-iface[c0ee356e21f5cf39,2,wlp1s0]: request-scan: request scanning (0 ssids)...
Sep 20 19:03:00 mechanism NetworkManager[9547]: <debug> [1695232980.9980] device[e65947e8dd6924f9] (wlp1s0): wifi-scan: scanning-state: scanning
Sep 20 19:03:00 mechanism NetworkManager[9547]: <trace> [1695232980.9980] device[e65947e8dd6924f9] (wlp1s0): wifi-scan: kickoff: don't scan (has scan_request_cancellable)
Sep 20 19:03:00 mechanism NetworkManager[9547]: <trace> [1695232980.9988] sup-iface[c0ee356e21f5cf39,2,wlp1s0]: request-scan: request scanning success
Sep 20 19:03:00 mechanism NetworkManager[9547]: <trace> [1695232980.9988] device[e65947e8dd6924f9] (wlp1s0): wifi-scan: scan request completed (D-Bus request)
Sep 20 19:03:01 mechanism NetworkManager[9547]: <trace> [1695232981.0227] sup-iface[c0ee356e21f5cf39,2,wlp1s0]: scanning: yes (plain property)
Sep 20 19:03:01 mechanism NetworkManager[9547]: <trace> [1695232981.0228] sup-iface[c0ee356e21f5cf39,2,wlp1s0]: scanning: yes
Sep 20 19:03:01 mechanism NetworkManager[9547]: <trace> [1695232981.2353] ndisc[0x560700838570,"wlp1s0"]: solicit: router solicitation sent
Sep 20 19:03:01 mechanism NetworkManager[9547]: <debug> [1695232981.2353] ndisc[0x560700838570,"wlp1s0"]: solicit: schedule sending next solicitation in 29.471 seconds
Sep 20 19:03:01 mechanism NetworkManager[9547]: <trace> [1695232981.4998] device[e65947e8dd6924f9] (wlp1s0): wifi-scan: scan request completed (after extra delay)
Sep 20 19:03:05 mechanism NetworkManager[9547]: <debug> [1695232985.2632] device[e65947e8dd6924f9] (wlp1s0): ip:ac6: timeout for autoconf (IPv6 router advertisement) reached
Sep 20 19:03:05 mechanism NetworkManager[9547]: <debug> [1695232985.2633] device[e65947e8dd6924f9] (wlp1s0): ip:ac6: set state: fail (was pending)
Sep 20 19:03:05 mechanism NetworkManager[9547]: <trace> [1695232985.2633] device[e65947e8dd6924f9] (wlp1s0): ip6: check-state: state pending => fail, is_failed=1, is_pending=0, is_started=1 temp_na=0, may-fail-4=1, may-fail-6=1;; manualip4=done dhcp4=done; manualip6=done ll6=done ac6=fail
Sep 20 19:03:05 mechanism NetworkManager[9547]: <debug> [1695232985.2633] device[e65947e8dd6924f9] (wlp1s0): ip6: set state fail (was pending, reason: check-ip-state)
Sep 20 19:03:05 mechanism NetworkManager[9547]: <trace> [1695232985.2634] device[e65947e8dd6924f9] (wlp1s0): ip: check-state: (combined) state done => done
Sep 20 19:03:07 mechanism NetworkManager[9547]: <trace> [1695232987.0493] settings-connection[88e074969b3dbd31,7b4e26d6-23fc-4361-9c70-b7b8f3d57c46]: timestamp: set timestamp 1695232987
Sep 20 19:03:07 mechanism NetworkManager[9547]: <trace> [1695232987.0494] settings: [timestamps-keyfile]: updated entry for timestamps.7b4e26d6-23fc-4361-9c70-b7b8f3d57c46
Sep 20 19:03:07 mechanism NetworkManager[9547]: <trace> [1695232987.0494] settings: [timestamps-keyfile]: schedule flushing changes to disk
Sep 20 19:03:07 mechanism NetworkManager[9547]: <trace> [1695232987.0494] settings-connection[0e2087238bafb010,941b8d85-55e3-4cfa-a212-d1a9cf290bc3]: timestamp: set timestamp 1695232987
Sep 20 19:03:07 mechanism NetworkManager[9547]: <trace> [1695232987.0494] settings-connection[a8a44ac0d5147b05,014dadad-ca3a-4f47-a5ff-df3f916c6c48]: timestamp: set timestamp 1695232987

编辑后cat /etc/NetworkManager/NetworkManager.conf

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

[device]
wifi.scan-rand-mac-address=no
match-device=interface-name:wlp1s0
dhcp=dhclient

sudo systemctl restart NetworkManager

重新安装网络管理器并重新启动。

如何在 Ubuntu 22.04 中安装 Realtek WLAN 驱动程序 mt7921?

https://devicetests.com/install-mediatek-mt7921-driver-wifi-bluetooth-ubuntu

Ubuntu 22.04 Mediatek mt7921e 永久 wifi 连接(配置)

Wifi 无法使用(不可用) 22.10 Mediatek MT7921

Ubuntu 21.10 重启后无线适配器(联发科 MT7921)无法工作(探测失败,错误 -110)

https://ubuntu.com/certified/component/920

答案1

我在新安装的 Ubuntu 22.04.3 LTS 以及之前的版本上使用 MEDIATEK MT7921 时遇到了同样的问题。它很少连接到我所在大学的大型网络,无论是公共网络还是 Eduroam 网络。它在运行相同硬件的 Windows 上运行良好。

今天,升级到 Ubuntu 23.10 似乎解决了这个问题。

您可能必须通过软件和更新(“更新”/“通知我新的 Ubuntu 版本:对于任何新版本”)或通过将相应的行从 更改/etc/update-manager/release-upgrades为 来激活非 LTS 升级。Prompt=ltsPrompt=normal

然后您可以使用软件更新程序或进行升级sudo do-release-upgrade

但请注意,

建议用户运行 LTS 版本,因为它提供 5 年的标准支持和安全更新。–https://ubuntu.com/server/docs/upgrade-introduction

相关内容