我有 Ubuntu 21.10,并且我设法让它与联发科 MT7921 无线适配器配合使用。但是,最近在重新启动我的机器后,我无法再使用该适配器,它就消失了。我不确定,也许是由某些更新引起的。我已经确认适配器在 Windows 11(双启动)中正常工作,因此问题出在 Linux 系统上。
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
# uname -a
Linux kitcat 5.15.10-051510-generic #202112171031 SMP Fri Dec 17 10:53:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
# 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:04:00.0
logical name: enp4s0
version: 15
serial: 04:42:1a:86:25:37
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=5.15.10-051510-generic firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
resources: irq:24 ioport:f000(size=256) memory:fcf04000-fcf04fff memory:fcf00000-fcf03fff
*-network UNCLAIMED
description: Network controller
product: MEDIATEK Corp.
vendor: MEDIATEK Corp.
physical id: 0
bus info: pci@0000:05:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm cap_list
configuration: latency=0
resources: iomemory:fc0-fbf iomemory:fc0-fbf iomemory:fc0-fbf memory:fc30300000-fc303fffff memory:fc30400000-fc30403fff memory:fc30404000-fc30404fff
*-network:0
description: Ethernet interface
physical id: 1
logical name: vethb9c79ff
serial: 8a:d3:9e:7f:c7:71
size: 10Gbit/s
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
*-network:1
description: Ethernet interface
physical id: 2
logical name: veth4a60e92
serial: 36:27:65:ec:c2:30
size: 10Gbit/s
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
*-network:2
description: Ethernet interface
physical id: 3
bus info: usb@2:2
logical name: usb0
serial: b6:1e:40:df:cb:07
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=rndis_host driverversion=5.15.10-051510-generic duplex=half firmware=RNDIS device ip=192.168.26.197 link=yes multicast=yes port=twisted pair
# dmesg | grep mt7921
[ 15.142556] mt7921e 0000:05:00.0: enabling device (0000 -> 0002)
[ 15.143067] mt7921e 0000:05:00.0: disabling ASPM L1
[ 15.143127] mt7921e 0000:05:00.0: ASIC revision: 79610010
[ 16.226929] mt7921e: probe of 0000:05:00.0 failed with error -110
# lspci -nnk
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
Subsystem: ASUSTeK Computer Inc. Renoir Root Complex [1043:16c2]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
Subsystem: ASUSTeK Computer Inc. Renoir IOMMU [1043:16c2]
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 PCIe GPP Bridge [1022:1633]
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.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
Kernel driver in use: pcieport
00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
Kernel driver in use: pcieport
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:16c2]
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:16c2]
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166a]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166b]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166c]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166d]
Kernel driver in use: k10temp
Kernel modules: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166e]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166f]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1670]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1671]
01:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch [1002:1478] (rev c3)
Kernel driver in use: pcieport
02:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch [1002:1479]
Kernel driver in use: pcieport
03:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT / 6800M] [1002:73df] (rev c3)
Subsystem: ASUSTeK Computer Inc. Navi 22 [Radeon RX 6700/6700 XT / 6800M] [1043:133c]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT] [1002:ab28]
Subsystem: ASUSTeK Computer Inc. Device [1043:133c]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:208f]
Kernel driver in use: r8169
Kernel modules: r8169
05:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:7961]
Subsystem: AzureWave Device [1a3b:4680]
Kernel modules: mt7921e
06:00.0 Non-Volatile memory controller [0108]: Intel Corporation Device [8086:f1aa] (rev 03)
Subsystem: Intel Corporation Device [8086:390f]
Kernel driver in use: nvme
Kernel modules: nvme
07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [1002:1638] (rev c4)
Subsystem: ASUSTeK Computer Inc. Cezanne [1043:133c]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
07:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
Subsystem: ASUSTeK Computer Inc. Device [1043:133c]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
07:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
Subsystem: ASUSTeK Computer Inc. Family 17h (Models 10h-1fh) Platform Security Processor [1043:16c2]
Kernel driver in use: ccp
Kernel modules: ccp
07:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
Subsystem: ASUSTeK Computer Inc. Renoir USB 3.1 [1043:201f]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
07:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
Subsystem: ASUSTeK Computer Inc. Renoir USB 3.1 [1043:201f]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
07: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:103f]
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x
07: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:103f]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
# rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
# apt info linux-firmware -a | grep Version
Version: 1.201.3
Version: 1.201
# lsmod | grep mt7921
mt7921e 90112 0
mt76_connac_lib 49152 1 mt7921e
mt76 86016 2 mt7921e,mt76_connac_lib
mac80211 1228800 3 mt76,mt7921e,mt76_connac_lib
cfg80211 962560 4 mt76,mt7921e,mac80211,mt76_connac_lib
# modinfo mt7921e | grep -i version
srcversion: 3E83D2B2F561C5689CE69C0
vermagic: 5.15.10-051510-generic SMP mod_unload modversions
# dkms status
virtualbox, 6.1.26, 5.12.19-051219-generic, x86_64: installed
virtualbox, 6.1.26, 5.13.0-21-generic, x86_64: installed
virtualbox, 6.1.26, 5.13.0-22-generic, x86_64: installed
virtualbox, 6.1.26, 5.14.21-051421-generic, x86_64: installed
virtualbox, 6.1.26, 5.15.10-051510-generic, x86_64: installed
这是什么原因造成的?我很乐意在第一次请求时提供更多详细信息。
答案1
这适用于我的华硕 zephyrus,希望能够很快成为主流。
答案2
mt7921e 探测失败,错误为 -110
这里可以观察到的错误消息dmesg
是关键:
mt7921e: probe of 0000:05:00.0 failed with error -110
。
一个非常类似的问题是之前曾报告为了iwlwifi
。
看起来与 Windows 的双重启动会导致出现此问题。Windows 可能会将网络适配器置于某种状态,而 Linux 内核驱动程序无法恢复该状态并导致超时错误。
许多人报告说可以通过禁用 Windows 中的快速启动来解决此问题,但就我而言,这没有帮助。
解决方案
我发现让适配器工作的唯一方法是完全关闭电源Windows,而不是使用重启. 当冷启动开始时,适配器能够被Linux内核正确初始化。
如果您知道此问题的更持久的解决方案,也请分享您的想法。