7

I am getting a hard time to enable wifi on legion 530 with Ubuntu 20.04.

Things I tried so far,

sudo tee /etc/modprobe.d/blacklist-ideapad.conf <<< "blacklist ideapad_laptop"
rebooted

I could see wifi enabled but it was not able to detect any available networks.

Then I tried:

echo "options r8822be aspm=0" | sudo tee /etc/modprobe.d/r8822be.conf
sudo rmmod r8822be
rmmod: ERROR: Module r8822be is not currently loaded

I would really appreciate any help.

Details: OS: Ubuntu 20.04 Wifi: Realtek r8822be Laptop: Lenovo 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

I have even tried following steps but that didn't made any difference

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

NOTE: Things worked perfectly over Ubuntu 18.04

16
  • Please edit your question and add output of lspci -knn | grep Net -A3; rfkill list terminal command.
    – Pilot6
    May 6, 2020 at 12:09
  • Updated the question May 6, 2020 at 12:42
  • Did you install drivers on 18.04? It looks that the new rtw_pci is not perfect.
    – Pilot6
    May 6, 2020 at 12:45
  • Please edit the question and add output of dmesg | grep rtw
    – Pilot6
    May 6, 2020 at 12:49
  • I don't remember it now. But, I actually did a fresh installation of 20.04. Deleted 18.04 completely May 6, 2020 at 13:04

2 Answers 2

1

I have Lenovo Ideapad 530S, after upgrading to Ubuntu 20.04 from 18.04 WI-FI stopped working.

This post helped me: 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
  • Is there anyway to install it in such a way that after kernel updates, you won't have to do this steps everytime since this way you're only building the driver for a particular kernel? Nov 21, 2020 at 17:47
  • After trying out different things for days, I decided to switch to a different OS. I am using Solus. Its an individual distro and has good community support. Plus it's not based on any other OS like elementaryOS is based on Ubuntu. First OS which is focused to make developers life easier. I am not facing any wifi issues with it. I would really recommend checking that out. I have been using it for a year and haven't faced a single issue. Jun 3, 2021 at 10:25
1

I have a Lenovo Ideapad, Ubuntu 20.04.03 LTS with 5.11.0.27 kernel using a PCI Realtek 8822be Wi-Fi/Bluetooth adapter.

I tried Bulat's driver fix above, but it did not work long term. Finally I found a post that suggested turning off Wi-Fi power control using this command:

sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

and that did the trick.

2
  • That's nice!!! So did you reverted the steps you tried earlier with Bulat's Driver Fix? Sep 7, 2021 at 5:53
  • @Max were there any other steps to be taken with your solution? I have tried the same command to no success.
    – p.luck
    Sep 21, 2021 at 20:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .