RealTek drivers not working with Ubuntu 20.04 kernel: 5.4

Solution 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