我有一个运行 Ubuntu 20.04 的系统,我安装了 Ubuntu 提供的更新。似乎它将 Linux 内核从 更新5.4.0-33
到了5.4.0-37
。安装更新后,我的 wifi 停止工作,我在 Wifi 面板中看不到任何条目。
我尝试重新安装 lwfinger 的驱动程序
git clone https://github.com/lwfinger/rtlwifi_new.git -b rtw88
cd rtlwifi_new/
make
sudo make install
但构建失败并出现以下错误:
make -C /lib/modules/5.4.0-37-generic/build M=/home/xyz/script/rtl_kernel5/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-37-generic'
Building modules, stage 2.
MODPOST 10 modules
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-37-generic'
Making backups
modprobe: FATAL: Module rtwpci not found.
make: *** [Makefile:84: install] Error 1
我看到有人在问题跟踪器上提出了一个问题https://github.com/lwfinger/rtlwifi_new/issues/479
我这里遗漏了什么吗?
如果您运行的是 5.0 以上的内核,请使用内核内置的驱动程序。这样可以减少很多工作量。
我尝试将驱动程序安装到内核模块:
sudo apt install git dkms
git clone -b rtw88 https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6
安装已成功完成,但 wifi 面板仍未显示任何条目。我该如何修复此问题?
[编辑] 添加评论中建议的更多信息”
govi@falcon:~$ dkms status
rtlwifi-new, 0.6, 5.4.0-37-generic, x86_64: installed
virtualbox, 6.1.6, 5.4.0-33-generic, x86_64: installed
virtualbox, 6.1.6, 5.4.0-37-generic, x86_64: installed
govi@falcon:~$ lspci -knn | grep Net -A3; rfkill list
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]
DeviceName: Sanji2
Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:81c1]
Kernel driver in use: rtl8723be
Kernel modules: rtl8723be
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
dmseg 输出:
govi@jarvis:~$ dmesg | grep rtl
[ 19.219998] rtl8723be: Using firmware rtlwifi/rtl8723befw_36.bin
[ 19.222073] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[ 19.222395] rtlwifi: rtlwifi: wireless switch is on
[ 19.255565] rtl8723be 0000:03:00.0 wlo1: renamed from wlan0
[ 24.711501] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723b_fw.bin
[ 24.820548] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723b_config.bin
[ 24.820567] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2
答案1
在终端中运行
sudo tee /etc/modprobe.d/rtl8723be.conf <<< "options rtl8723be ant_sel=1"
然后重启。这样应该可以解决信号问题。