rtl8822be wifi driver ubuntu 20.04 hp 15-da1009ne

I have installed Ubuntu 20.04 via upgrading from 19.10. Everything was OK but Bluetooth. I was trying to solve the Bluetooth issue(No Bluetooth driver found even on 19.10). But happened to lose the wifi driver :(

Here is the log

sudo lshw -C network

*-network DISABLED
   description: Wireless interface
   product: RTL8822BE 802.11a/b/g/n/ac WiFi adapter
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: pci@0000:03:00.0
   logical name: wlo1
   version: 00
   width: 64 bits
   clock: 33MHz

I was trying to install with the instruction on https://github.com/lwfinger/rtw88 but no success. Any help would be appreciated. (I wonder how can I reinstall the original ubuntu drivers? That was working for wifi)


A guy called mid-kid has a GitHub repository with the RTL8822BE driver that works flawlessly in Ubuntu 20.04 for me.

Here's how to setup the driver:

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

The WiFi card should be active now.