我正在使用 Ubuntu 20.10:
dsm@dsm ~> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy
dsm@dsm ~> uname -a
Linux dsm 5.8.0-45-generic #51-Ubuntu SMP Fri Feb 19 13:24:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
当我关闭并打开笔记本电脑时,我的 wifi 可以工作,但当我挂起并启动笔记本电脑时,它就停止工作。
这是有关我的 wifi 及其驱动程序的一些信息。
dsm@dsm ~> sudo lshw -C network
*-network
description: Wireless interface
product: MT7630e 802.11bgn Wireless Network Adapter
vendor: MEDIATEK Corp.
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlo1
version: 00
serial: fc:4d:d4:53:4c:14
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=mt76x0e driverversion=5.8.0-45-generic firmware=1.0.07-b370 ip=192.168.1.41 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:18 memory:b0600000-b06fffff
现在,暂停并重新启动后,我可以在中看到我的 wlo1 ifconfig
,Enable Wifi
我的 xfce 桌面中的复选框被勾选,但我找不到任何可用的 wifi,它不会自动连接到我的家庭 wifi 路由器。
我搜索了一下并找到了两个解决方案:
这个 (https://askubuntu.com/a/1180966/828610) 不起作用。我仍然找不到任何可用的 wifi。
这个 (https://askubuntu.com/a/949644/828610) 不起作用。
dsm@dsm ~> sudo /sbin/modprobe -v -r mt76x0e
rmmod mt76x0e
rmmod mt76x0_common
rmmod mt76x02_lib
rmmod mt76
rmmod mac80211
rmmod libarc4
dsm@dsm ~> sudo /sbin/modprobe -v mt76x0e
insmod /lib/modules/5.8.0-45-generic/kernel/lib/crypto/libarc4.ko
insmod /lib/modules/5.8.0-45-generic/kernel/net/mac80211/mac80211.ko
insmod /lib/modules/5.8.0-45-generic/kernel/drivers/net/wireless/mediatek/mt76/mt76.ko
insmod /lib/modules/5.8.0-45-generic/kernel/drivers/net/wireless/mediatek/mt76/mt76x02-lib.ko
insmod /lib/modules/5.8.0-45-generic/kernel/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0-common.ko
insmod /lib/modules/5.8.0-45-generic/kernel/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0e.ko
dsm@dsm ~> sudo systemctl restart NetworkManager
执行上述三条命令后, 中不再存在 wlo1 ifconfig
:
enp3s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether a0:1d:48:a8:b0:68 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1819 bytes 172422 (172.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1819 bytes 172422 (172.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.42.198 netmask 255.255.255.0 broadcast 192.168.42.255
inet6 fe80::c2d4:4c06:2ae8:542c prefixlen 64 scopeid 0x20<link>
ether 92:b4:41:b7:5e:91 txqueuelen 1000 (Ethernet)
RX packets 3712 bytes 1759030 (1.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3845 bytes 685418 (685.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
细节configuration
已经消失sudo lshw -C network
!
*-network UNCLAIMED
description: Network controller
product: MT7630e 802.11bgn Wireless Network Adapter
vendor: MEDIATEK Corp.
physical id: 0
bus info: pci@0000:04:00.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list
configuration: latency=0
resources: memory:b0600000-b06fffff
而且 wifi 不能用。
当我重新启动笔记本电脑时,一切都恢复正常!
我应该怎么办?