我在使用 Ubuntu 20.04 的 Legion 530 上启用 Wi-Fi 时遇到了困难。
我到目前为止尝试过的事情
sudo tee /etc/modprobe.d/blacklist-ideapad.conf <<< "blacklist ideapad_laptop"
rebooted
我可以看到 Wi-Fi 已启用,但无法检测到任何可用的网络。
然后我尝试:
echo "options r8822be aspm=0" | sudo tee /etc/modprobe.d/r8822be.conf
sudo rmmod r8822be
rmmod: ERROR: Module r8822be is not currently loaded
我将非常感激您的帮助。
详细信息:操作系统:Ubuntu 20.04 Wifi:Realtek r8822be 笔记本电脑:联想 Legion
nitish@Lenovo-Legion-Y530:~/rtlwifi_new$ lspci -knn | grep Net -A3; rfkill list
07:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter [10ec:b822] (rev ff)
Kernel driver in use: rtw_pci
Kernel modules: rtwpci
08:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
nitish@Lenovo-Legion-Y530:~/rtlwifi_new$ dmesg | grep rtw
[ 11.697579] rtw_pci 0000:07:00.0: Firmware version 13.1.0, H2C version 6
[ 11.839161] rtw_pci 0000:07:00.0 wlp7s0f0: renamed from wlan0
[ 31.153772] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 31.153779] rtw_pci 0000:07:00.0: mac power on failed
[ 31.153780] rtw_pci 0000:07:00.0: failed to power on mac
[ 33.597618] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 33.597625] rtw_pci 0000:07:00.0: mac power on failed
[ 33.597627] rtw_pci 0000:07:00.0: failed to power on mac
[ 35.760004] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 35.760012] rtw_pci 0000:07:00.0: mac power on failed
[ 35.760013] rtw_pci 0000:07:00.0: failed to power on mac
[ 48.181900] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 48.181908] rtw_pci 0000:07:00.0: mac power on failed
[ 48.181909] rtw_pci 0000:07:00.0: failed to power on mac
[ 50.349350] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 50.349357] rtw_pci 0000:07:00.0: mac power on failed
[ 50.349359] rtw_pci 0000:07:00.0: failed to power on mac
[ 63.186854] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 63.186861] rtw_pci 0000:07:00.0: mac power on failed
[ 63.186862] rtw_pci 0000:07:00.0: failed to power on mac
[ 65.355119] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 65.355126] rtw_pci 0000:07:00.0: mac power on failed
[ 65.355127] rtw_pci 0000:07:00.0: failed to power on mac
[ 78.161145] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 78.161153] rtw_pci 0000:07:00.0: mac power on failed
[ 78.161154] rtw_pci 0000:07:00.0: failed to power on mac
[ 80.334851] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 80.334858] rtw_pci 0000:07:00.0: mac power on failed
[ 80.334859] rtw_pci 0000:07:00.0: failed to power on mac
[ 93.061333] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 93.061340] rtw_pci 0000:07:00.0: mac power on failed
[ 93.061341] rtw_pci 0000:07:00.0: failed to power on mac
[ 95.231662] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 95.231669] rtw_pci 0000:07:00.0: mac power on failed
[ 95.231669] rtw_pci 0000:07:00.0: failed to power on mac
[ 108.036114] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 108.036122] rtw_pci 0000:07:00.0: mac power on failed
[ 108.036123] rtw_pci 0000:07:00.0: failed to power on mac
[ 110.205476] rtw_pci 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 110.205483] rtw_pci 0000:07:00.0: mac power on failed
[ 110.205484] rtw_pci 0000:07:00.0: failed to power on mac
我甚至尝试过以下步骤,但没有任何效果
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
git checkout extended
make
sudo make install
sudo modprobe -r rtl8822be
sudo modprobe rtl8822be
笔记:Ubuntu 18.04 上一切运行正常
答案1
我有一台联想 Ideapad 530S,从 Ubuntu 18.04 升级到 20.04 后,WI-FI 停止工作了。
这篇文章对我有帮助: https://askubuntu.com/a/1271087/972111
sudo apt install build-essential git
git clone https://github.com/mid-kid/r8822be.git
cd r8822be
./make
# remove the misbehaving rtw88 module
sudo rmmod rtwpci rtw88
# install the r8822be module
sudo ./make install
sudo modprobe r8822be
sudo reboot
答案2
我有一台联想 Ideapad,Ubuntu 20.04.03 LTS,内核为 5.11.0.27,使用 PCI Realtek 8822be Wi-Fi/蓝牙适配器。
我试过Bulat 的驱动程序修复以上,但长期来看并没有效果。最后我找到了一个帖子,建议转向离开使用此命令进行 Wi-Fi 电源控制:
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
这招很管用。