我刚刚在一台 hp elitebook 笔记本电脑(新)上安装了 ubuntu 20.04(单独安装,无双启动)。Wifi 工作了几个小时,但随后停止工作(“未找到 wifi 适配器”)。但以太网工作正常。
我尝试了几种方法来解决这个问题(特别是这和这),但都不起作用。安全启动和快速启动选项被禁用。
输出sudo lshw -C network
*-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:01:00.0
nom logique: enp1s0
version: 15
numéro de série: bc:0f:f3:72:ec:bd
taille: 100Mbit/s
capacité: 1Gbit/s
bits: 64 bits
horloge: 33MHz
fonctionnalités: 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-32-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=140.77.152.15 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
ressources : irq:56 portE/S:2000(taille=256) mémoire:fb704000-fb704fff mémoire:fb700000-fb703fff
*-network NON-RÉCLAMÉ
description: Network controller
produit: MEDIATEK Corp.
fabricant: MEDIATEK Corp.
identifiant matériel: 0
information bus: pci@0000:02:00.0
version: 00
bits: 64 bits
horloge: 33MHz
fonctionnalités: pciexpress msi pm cap_list
configuration : latency=0
ressources : mémoire:fb500000-fb5fffff mémoire:fb600000-fb607fff
输出lspci -nn
00:00.0 Host bridge [0600]: 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]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
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]
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]
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0 [1022:166a]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1 [1022:166b]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2 [1022:166c]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3 [1022:166d]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4 [1022:166e]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5 [1022:166f]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6 [1022:1670]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7 [1022:1671]
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
02:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:0616]
03:00.0 Non-Volatile memory controller [0108]: Sandisk Corp Device [15b7:5017] (rev 01)
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] (rev c6)
04:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
04:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
04:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
04:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
04:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor [1022:15e2] (rev 01)
04:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3]
输出lsmod | grep mt7921e
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
输出cat /etc/modprobe.d/mt7921e.conf
alias pci:v000014C3d00000608xsv*sd*bc*sc*i* mt7921e
输出cat /etc/udev/rules.d/99-mt7921e.rules
SUBSYSTEM=="drivers", DEVPATH=="/bus/pci/drivers/mt7921e", ATTR{new_id}="14c3 0608"
我注意到蓝牙也不起作用(我不知道这两个问题是否有关联)。
我远非专家,因此欢迎任何帮助。谢谢 :)
更新
我已更新到 ubuntu 22.04,但问题仍未得到解决(内核版本为 6.2)。
驱动程序的 init 命令似乎失败:输出journalctl -b | grep -iE '02:00.0|mt7921e'
sept. 06 08:39:52 camille-mmi kernel: pci 0000:02:00.0: [14c3:0616] type 00 class 0x028000
sept. 06 08:39:52 camille-mmi kernel: pci 0000:02:00.0: reg 0x10: [mem 0xfb500000-0xfb5fffff 64bit pref]
sept. 06 08:39:52 camille-mmi kernel: pci 0000:02:00.0: reg 0x18: [mem 0xfb600000-0xfb607fff 64bit]
sept. 06 08:39:52 camille-mmi kernel: pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
sept. 06 08:39:52 camille-mmi kernel: pci 0000:02:00.0: Adding to iommu group 10
sept. 06 08:39:52 camille-mmi kernel: mt7921e 0000:02:00.0: ASIC revision: 79220010
sept. 06 08:39:52 camille-mmi systemd-udevd[325]: mt7921e: /etc/udev/rules.d/99-mt7921e.rules:1 Failed to write ATTR{/sys/bus/pci/drivers/mt7921e/new_id}, ignoring: File exists
sept. 06 08:39:55 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 1) timeout
sept. 06 08:39:55 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:39:59 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 2) timeout
sept. 06 08:39:59 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:40:02 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 3) timeout
sept. 06 08:40:02 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:40:05 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 4) timeout
sept. 06 08:40:05 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:40:09 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 5) timeout
sept. 06 08:40:09 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:40:12 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 6) timeout
sept. 06 08:40:12 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:40:15 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 7) timeout
sept. 06 08:40:15 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:40:19 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 8) timeout
sept. 06 08:40:19 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:40:22 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 9) timeout
sept. 06 08:40:22 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:40:25 camille-mmi kernel: mt7921e 0000:02:00.0: Message 00000010 (seq 10) timeout
sept. 06 08:40:25 camille-mmi kernel: mt7921e 0000:02:00.0: Failed to get patch semaphore
sept. 06 08:40:26 camille-mmi kernel: mt7921e 0000:02:00.0: hardware init failed
更新 2 我将内核更新到 6.5.1 版本,仍然出现“未找到 wifi 适配器”错误,但是错误消息发生了变化:
camille@camille-mmi:~$ journalctl -b | grep -iE '02:00.0|mt7921e'
sept. 06 10:32:51 camille-mmi kernel: pci 0000:02:00.0: [14c3:0616] type 00 class 0x028000
sept. 06 10:32:51 camille-mmi kernel: pci 0000:02:00.0: reg 0x10: [mem 0xfb500000-0xfb5fffff 64bit pref]
sept. 06 10:32:51 camille-mmi kernel: pci 0000:02:00.0: reg 0x18: [mem 0xfb600000-0xfb607fff 64bit]
sept. 06 10:32:51 camille-mmi kernel: pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
sept. 06 10:32:51 camille-mmi kernel: pci 0000:02:00.0: Adding to iommu group 10
sept. 06 10:32:53 camille-mmi systemd-udevd[379]: mt7921e: /etc/udev/rules.d/99-mt7921e.rules:1 Failed to write ATTR{/sys/bus/pci/drivers/mt7921e/new_id}, ignoring: File exists
sept. 06 10:32:55 camille-mmi kernel: mt7921e 0000:02:00.0: driver own failed
sept. 06 10:32:55 camille-mmi kernel: mt7921e: probe of 0000:02:00.0 failed with error -5
更新 3 在内核更新并关闭计算机后,它终于起作用了,等待几分钟然后再次打开(而不是重新启动)。
答案1
按照 RA 的建议,我更新了内核版本,然后关闭计算机并等待几分钟再打开(而不是重新启动)。
答案2
我尝试了网络上其他主题中的许多方法。没有一个针对特定帖子的解决方案对我有用。
我正在使用一台新笔记本电脑:
- 华硕 ROG Flow X13 GV302x
- AMD Ryzen 9 7940HS,配备 Radeon 780M 显卡
- RTX 4060
sudo lshw -C network
我得到了与@atik相同的输出
我的网络控制器sudo lspci -nn
是:
06:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:0616]
我只是想办法启用网络 wifi 适配器,现在我已连接到互联网。
首先我决定安装全新 22.04LTS 版本的 Ubuntu用一个双重启动使用 Windows 11。
其次我按照@atik 在他的帖子中所做的那样更新了我的内核版本:
$ uname -rms
Linux 6.5.1-060501-generic x86_64
为了安装此版本,我使用了主线内核
(ps:如果ubuntu还处于之前的版本,请务必通过“Ubuntu的高级选项”运行,然后选择要启动的版本。确保在 PC 的 BIOS 中禁用快速启动和安全启动)
然后,我尝试关闭并启动此版本的内核中的 PC,但仍然显示“未找到 wifi 适配器”。因此,我尝试做什么这个帖子说。
创建并编辑sudo nano /etc/modprobe.d/mt7921e.conf
此行后:
alias pci:v000014C3d00000608xsv*sd*bc*sc*i* mt7921e
并sudo nano /etc/udev/rules.d/99-mt7921e.rules
加上这一行:
SUBSYSTEM=="drivers", DEVPATH=="/bus/pci/drivers/mt7921e", ATTR{new_id}="14c3 0608"
但关机并启动 Ubuntu 后,仍然显示“未找到 wifi 适配器”。然后我在网上做了很多研究,发现这个帖子据说是谁关机,拔下电源线和电池(如果可能),然后按住电源键 30 秒。放回原位并启动
我按下电源按钮 30 秒,电脑自动重启。完成此步骤后,我刚刚启用了 Wifi,然后成功连接到互联网。
当我重新运行此命令时,sudo lswh -C network
我现在有一个新的配置部分:
*-network
description: Wireless interface
product: MEDIATEK Corp.
vendor: MEDIATEK Corp.
physical id: 0
bus info: pci@0000:06:00.0
logical name: wlp6s0
version: 00
serial: 00:41:0e:bd:4b:ad
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=mt7921e driverversion=6.5.1-060501-generic firmware=____000000-20221227123243 ip=192.168.1.92 latency=0 link=yes multicast=yes wireless=IEEE 802.11
我不知道这是否能帮助一些人,但我认为遵循这些步骤是足以解决我的问题,如果您遇到这种情况,请告知我。
答案3
用英特尔 AX210 替换了 mt7902,并且……运行内核 6.7.1 稳定版。
详情: 之前:https://linux-hardware.org/?probe=42b02a9d8e 现在:https://linux-hardware.org/?probe=f9da9c2d2e
wlan/bt 适配器详细信息:AX210.NGWG.NV M.2 2230、BT 5.2、无 vPro
问候 thomi