我在一台全新的电脑(Lenovo Thinkbook 13s,大约两个月前,ubuntu 22.10)上遇到了一些 wifi 问题,我认为它附带的无线适配器有缺陷,因为它偶尔会停止被识别,甚至不会显示在 lspci 上(通常是在 ubuntu 从睡眠状态唤醒时发生一次严重崩溃之后,这种情况在这台机器上很常见)。它是双启动,有时甚至不会显示在 Windows 中,所以我认为这一定是硬件问题。
我的解决方案是购买一个便宜的 USB 无线适配器 (Ralink MT7601U),据说它与 Linux 兼容。我之前看到的所有关于此适配器的帖子都很旧了,而且看来驱动程序已经成为内核的一部分很长时间了。它开箱即用(出现在 lsusb 上并可以显示网络,但无法连接),但经过一番摆弄后,它终于开始工作了,虽然我不确定到底是什么修复了它。现在它偶尔可以工作,但有时会回到显示网络而无法连接的状态。
飞行模式已关闭,网络密码正确,已尝试将其关闭并重新打开。其他人有这个问题或有什么想法吗?
lsusb:
Bus 003 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
uname -r:
6.1.6-060106-generic
配置:
lo no wireless extensions.
enx000000000489 no wireless extensions.
enx46ee92570c28 no wireless extensions.
编辑:我应该补充一点,我可以毫无问题地通过 USB 网络共享到我的手机。
编辑:dmesg -w:
[ 475.127875] usb 3-2: new high-speed USB device number 12 using xhci_hcd
[ 475.292237] usb 3-2: New USB device found, idVendor=148f, idProduct=7601, bcdDevice= 0.00
[ 475.292246] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 475.292250] usb 3-2: Product: 802.11 n WLAN
[ 475.292254] usb 3-2: Manufacturer: MediaTek
[ 475.292256] usb 3-2: SerialNumber: 1.0
[ 475.419901] usb 3-3: new full-speed USB device number 13 using xhci_hcd
[ 475.555959] usb 3-3: device descriptor read/64, error -71
[ 475.799605] usb 3-3: device descriptor read/64, error -71
[ 476.035893] usb 3-3: new full-speed USB device number 14 using xhci_hcd
[ 476.171983] usb 3-3: device descriptor read/64, error -71
[ 476.415875] usb 3-3: device descriptor read/64, error -71
[ 476.524052] usb usb3-port3: attempt power cycle
[ 476.935885] usb 3-3: new full-speed USB device number 15 using xhci_hcd
[ 476.936095] usb 3-3: Device not responding to setup address.
[ 477.144026] usb 3-3: Device not responding to setup address.
[ 477.351837] usb 3-3: device not accepting address 15, error -71
[ 477.479902] usb 3-3: new full-speed USB device number 16 using xhci_hcd
[ 477.480078] usb 3-3: Device not responding to setup address.
[ 477.687956] usb 3-3: Device not responding to setup address.
[ 477.895838] usb 3-3: device not accepting address 16, error -71
[ 477.896046] usb usb3-port3: unable to enumerate USB device
[ 477.949460] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 477.949684] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 478.128229] usb 3-2: reset high-speed USB device number 12 using xhci_hcd
[ 478.281523] mt7601u 3-2:1.0: ASIC revision: 76010001 MAC revision: 76010500
[ 478.287190] mt7601u 3-2:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[ 478.740702] mt7601u 3-2:1.0: EEPROM ver:0d fae:00
[ 479.044556] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 479.045227] usbcore: registered new interface driver mt7601u
[ 479.053632] mt7601u 3-2:1.0 wlx90de807d09d2: renamed from wlan0
然后当我断开连接时:
[ 510.708549] usb 3-2: USB disconnect, device number 12
[ 510.759917] mt7601u 3-2:1.0: Warning: TX DMA did not stop!