I spent a full hour trying this solution.
I tried installing the older driver (rtw8852be), but it didn’t work. Now we’ll try the newer and better driver that works with the latest version of the Linux kernel, which is rtw89.
To succeed, you must follow these steps carefully and in order:
Step 1: Clean the system of any previous attempts (very important)
Open Terminal and enter these commands one by one. This will remove any leftover files from previous attempts that might cause conflicts.
bash
sudo apt purge rtw88* rtw89* rtl8852* -y
sudo rm -rf ~/rtw89 ~/rtw8852be ~/rtl8852be
sudo modprobe -r rtw89_8852be
Note: You may see errors stating that the “package does not exist” or the “module does not exist.” This is normal and okay; it means there is nothing to remove.
Step 2: Install essential build tools
You need an internet connection for this step. Use an Ethernet cable or a USB connection from your phone.
bash
sudo apt update
sudo apt install build-essential git dkms linux-headers-$(uname -r) -y
Step 3: Install the Correct Driver
We will now download and automatically install the latest driver using DKMS, which means it will remain installed even after future system updates.
bash
Download the code from the internet
git clone GitHub - lwfinger/rtw89: Driver for Realtek 8852AE, an 802.11ax device · GitHub
Navigate to the directory
cd rtw89
Run the automatic installation script
sudo make -j$(nproc)
sudo make install
Step 4: Activate the driver and reboot
bash
Load the module directly
sudo modprobe rtw89_8852be
Reboot
sudo reboot
After rebooting