前言:我的电脑出现“未找到 wifi 适配器”问题。我问在 Ubuntu 20.04.3 LTS 上未找到 wifi 适配器,并且 chili555 给出的答案很好。
今天重启后,我遇到了一个新问题。现在,wifi 已启用,但找不到任何 wifi 网络。(尽管 USB-Tethering 可以工作)。内核版本是 5.13.0-27-generic
- 输出
iwconfig
:
lo no wireless extensions.
usb0 no wireless extensions.
wlp1s0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=3 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
docker0 no wireless extensions.
sudo lshw -C network
:
*-network
description: Wireless interface
product: MEDIATEK Corp.
vendor: MEDIATEK Corp.
physical id: 0
bus info: pci@0000:01:00.0
logical name: wlp1s0
version: 00
serial: c8:94:02:c1:7a:7b
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=mt7921e driverversion=5.13.0-27-generic firmware=____010000-20211014150922 latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:88 memory:e0300000-e03fffff memory:e0400000-e0403fff memory:e0404000-e0404fff
*-network
description: Ethernet interface
physical id: 1
bus info: usb@1:2
logical name: usb0
serial: 82:75:76:11:9e:70
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=rndis_host driverversion=5.13.0-27-generic duplex=half firmware=RNDIS device ip=192.168.42.130 link=yes multicast=yes port=twisted pair
rfkill list all
:
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
sudo iwlist scan
:
lo Interface doesn't support scanning.
usb0 Interface doesn't support scanning.
wlp1s0 No scan results
docker0 Interface doesn't support scanning.
lspci -nnk | grep 0280 -A3
:
01:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:0608]
Subsystem: MEDIATEK Corp. Device [14c3:0608]
Kernel driver in use: mt7921e
Kernel modules: mt7921e
sudo dmesg | grep mt7
:
[ 3.629484] mt7921e 0000:01:00.0: enabling device (0000 -> 0002)
[ 3.629700] mt7921e 0000:01:00.0: disabling ASPM L1
[ 3.629746] mt7921e 0000:01:00.0: ASIC revision: 79610010
[ 3.712374] mt7921e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20211014150838a
[ 3.724385] mt7921e 0000:01:00.0: WM Firmware Version: ____010000, Build Time: 20211014150922
[ 3.754924] mt7921e 0000:01:00.0: Firmware init done
[ 5.326846] mt7921e 0000:01:00.0 wlp1s0: renamed from wlan0
我也尝试过sudo apt-get install --reinstall network-manager
、、、 sudo systemctl restart network-manager.service
重启sudo /etc/init.d/network-manager force-reload
多次。但是没有运气!!
答案1
您正在使用相对较新的现代 Wi-Fi 适配器。据我所知,此适配器不适用于低于 的内核版本5.14
。但是,内核5.15.7
+ 无法安装在 Ubuntu 20.04 LTS 上。如果我们查看内核 5.14,它是停产。很遗憾,您无法在 20.04 中使用 Wi-Fi 适配器!您必须全新安装 21.10(或使用 升级sudo do-release-upgrade
)并按照我的这个答案中的步骤并安装内核5.16。
我正在使用与您相同的 Wi-Fi 适配器。
答案2
在终端做
sudo ifconfig wlp1s0 up
sudo iwconfig wlp1s0 power off
sudo iwconfig wlp1s0 txpower 18
这就是我们在聊天中为了让它运行起来所做的事情,https://chat.stackexchange.com/rooms/133648/discussion-between-arnob-saha-and-jeremy31
答案3
运行模块版本健全性检查,它将显示内核中是否存在原始模块。
sudo apt install --reinstall bcmwl-kernel-source
检查原始模块后,如果未找到,它将添加通用模块。