我在笔记本上安装了 ubuntu Os 22.04 LST。我没有 wifi 驱动程序。我看到一个错误:
未找到 Wi-Fi 适配器
我正在阅读类似的问题并尝试命令
lspci -knn | grep -iA3 net
Network Controller [0280] Device [0b48:7922]
...
Unassigned class [ff00]: Realtek Semiconducter Co., LTD RTS525A PCI Express Card Reader ...
我应该安装什么驱动程序?
我的笔记本电脑型号 RedmiBook Pro 15 Ryzen Edition 笔记本电脑:AMD Ryzen 7 7840HS
更新
尝试命令(借助 USB 将二进制文件移动到我的电脑)
wget -N -t 5 -T 10https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info&& chmod +x 无线信息 && ./无线信息
结果
########## wireless info START ##########
Report from: 29 Apr 2024 21:56 MSK +0300
Booted last: 29 Apr 2024 00:00 MSK +0300
Script from: 25 Jan 2020 03:34 UTC +0000
##### release ###########################
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
##### kernel ############################
Linux 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Parameters: ro, quiet, splash, vt.handoff=7
##### desktop ###########################
sed: can't read /root/.dmrc: No such file or directory
Could not be determined.
##### lspci #############################
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
01:00.0 Network controller [0280]: Device [0b48:7922]
Subsystem: Device [0b48:7922]
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader [10ec:525a] (rev 01)
##### lsusb #############################
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 005: ID 2109:8817 VIA Labs, Inc. USB Billboard Device
Bus 005 Device 003: ID 8564:1000 Transcend Information, Inc. JetFlash
Bus 005 Device 002: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 2b7e:c687 SunplusIT Inc XiaoMi USB 2.0 Webcam
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 35f5:7922 MediaTek Inc. Wireless_Device
Bus 001 Device 002: ID 10a5:9201 FPC FPC Sensor Controller L:0001 FW:021.26.2.045
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
##### PCMCIA card info ##################
##### rfkill ############################
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
##### secure boot #######################
SecureBoot enabled
##### lsmod #############################
wmi_bmof 16384 0
wmi 40960 2 video,wmi_bmof
##### interfaces ########################
##### ifconfig ##########################
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback <MAC address> brd <MAC address>
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
##### iwconfig ##########################
lo no wireless extensions.
##### route #############################
##### resolv.conf #######################
[777 root '/etc/resolv.conf' -> '../run/systemd/resolve/stub-resolv.conf']
nameserver 127.0.0.53
options edns0 trust-ad
search .
##### network managers ##################
Installed:
NetworkManager
Running:
root 629 1 0 21:46 ? 00:00:00 /usr/sbin/NetworkManager --no-daemon
##### NetworkManager info ###############
##### NetworkManager.state ##############
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
##### NetworkManager config #############
[[/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf]]
[connection]
wifi.powersave = 3
[[/etc/NetworkManager/NetworkManager.conf]]
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
[[/usr/lib/NetworkManager/conf.d/10-dns-resolved.conf]]
[main]
dns=systemd-resolved
[[/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf]]
[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:gsm,except:type:cdma
[[/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf]]
[connectivity]
uri=http://connectivity-check.ubuntu.com./
[[/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf]]
[device-31-mac-addr-change]
match-device=driver:eagle_sdio,driver:wl
wifi.scan-rand-mac-address=no
##### NetworkManager profiles ###########
##### Netplan config ####################
[/etc/netplan/01-network-manager-all.yaml]
network:
version: 2
renderer: NetworkManager
##### iw reg get ########################
'iw' is not installed (package "iw").
##### iwlist channels ###################
lo no frequency information.
##### iwlist scan #######################
lo Interface doesn't support scanning.
##### module infos ######################
##### module parameters #################
##### /etc/modules ######################
##### modprobe options ##################
[/etc/modprobe.d/amd64-microcode-blacklist.conf]
blacklist microcode
[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci
[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac
[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off
[/etc/modprobe.d/intel-microcode-blacklist.conf]
blacklist microcode
[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
##### rc.local ##########################
grep: /etc/rc.local: No such file or directory
##### pm-utils ##########################
##### udev rules ########################
##### dmesg #############################
########## wireless info END ############
更新 2:正在尝试从这个答案中命令 -Ubuntu 22.10 MT7622 无线设备无法工作
但这没有帮助
答案1
创建一个名为的新文件/etc/modprobe.d/mt7921e.conf
并将其用作其内容
alias pci:v00000b48d00007922xsv*sd*bc*sc*i* mt7921e
然后创建文件/etc/udev/rules.d/99-mt7921e.rules
并添加
SUBSYSTEM=="drivers", DEVPATH=="/bus/pci/drivers/mt7921e", ATTR{new_id}="0b48 7922"
保存并退出然后运行sudo depmod -a
Reboot 看看是否有效