Rtw89
Linux Driver for Realtek RTL8851BE, RTL8852AE, RTL8852BE and RTL8852CE
Install / Use
/learn @a5a5aa555oo/Rtw89README
rtw89
Supported chips
RTL8851BE, RTL8852AE, RTL8852BE and RTL8852CE
Prerequisites
git, make, gcc, kernel-headers, dkms and mokutil (dkms and mokutil are optional.)
Installation Guide
-
Create a clone of this repo in your local machine
git clone https://github.com/a5a5aa555oo/rtw89 -
Change the working directory to rtw89
cd rtw89 -
Search and remove other out-of-tree rtw89 drivers. If your system has Larry's rtw89 driver installed, you must run this command to remove it, or this driver won't work as expected.
sudo make cleanup_target_system -
Build and install the driver
-
via dkms (Recommended especially Secure Boot is enabled on your system)
sudo dkms install $PWD -
via make
make clean modules && sudo make install
-
-
Install the firmware necessary for the driver
sudo make install_fw -
Copy the configuration file
rtw89.confto /etc/modprobe.d/sudo cp -v rtw89.conf /etc/modprobe.d/ -
Enroll the MOK (Machine Owner Key). This is needed ONLY IF Secure Boot is enabled on your system. Please see this guide for details.
sudo mokutil --import /var/lib/dkms/mok.pubFor Ubuntu-based distro users, run this command instead.
sudo mokutil --import /var/lib/shim-signed/mok/MOK.der
Uninstallation Guide
For users who installed the driver via DKMS,
-
Check the version of the rtw89 driver installed on your system.
sudo dkms status rtw89 -
Remove the rtw89 driver and its source code (Change the driver version accordingly)
sudo dkms remove rtw89/6.6.88 --allsudo rm -rf /usr/src/rtw89-6.6.88 -
Remove the configuration file
sudo rm -f /etc/modprobe.d/rtw89.conf
For users who installed the driver via make, run these commands in the rtw89 source directory
sudo make uninstall
sudo rm -f /etc/modprobe.d/rtw89.conf
Note
ONLY kernel 5.15 ~ 6.5 are supported. For kernel 6.6+ users, use the rtw89 driver maintained by morrownr instead.
Tested with RTL8852BE on Arch Linux (kernel version: 5.15.185-1-lts515 / 6.1.140-1-lts61) and it works.
Q&A
Q1. Bluetooth is still not working after installing this driver, why?
This rtw89 driver is the Wi-Fi driver for Realtek Wi-Fi 6/6E adapters and has nothing to do with Bluetooth.
Q2. How to update the driver installed via DKMS?
-
Check the version of the rtw89 driver installed on your system.
sudo dkms status rtw89 -
Remove the rtw89 driver. (Change the driver version accordingly)
sudo dkms remove rtw89/6.6.88 --allsudo rm -rf /usr/src/rtw89-6.6.88 -
Run this command in the rtw89 source directory to pull the latest code
git pull -
Build, sign and install the rtw89 driver from the latest code.
sudo dkms install $PWD
Q3. How to update the driver installed via make?
-
Run this command in the rtw89 source directory to pull the latest code
git pull -
Rebuild and reinstall the driver from the latest code
make clean modules && sudo make install
Q4. How to update the firmware in my system?
-
Run this command in the rtw89 source directory to pull the latest code and firmware
git pull -
Update the firmware files in your system
sudo make install_fw
Related Skills
node-connect
336.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
336.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.9kCommit, push, and open a PR
