Linux driver for RTW8852BE PCIe card
The Bluetooth and Wifi devices are separate interfaces on the same chip. more information is available here.
for WiFi: https://github.com/lwfinger/rtw8852be
for Bluetooth: https://github.com/lwfinger/rtw89-BT
build-essential
linux-headers
bc
gcc
make
git
If any of the packets above are not found check if your distro installs them like that.
For all distros:
git clone https://github.com/lwfinger/rtw8852be.git
cd rtw8852be
make
sudo make install
For all distros:
git clone git://github.com/lwfinger/rtw8852be.git
cd rtw8852be
make
sudo make sign-install
You will be promted a password, please keep it in mind and use it in next steps. Reboot to activate the new installed module. In the MOK managerment screen:
- Select "Enroll key" and enroll the key created by above sign-install step
- When promted, enter the password you entered when create sign key.
- If you enter wrong password, your computer won't not bebootable. In this case, use the BOOT menu from your BIOS, to boot into your OS then do below steps:
sudo mokutil --reset
Restart your computer Use BOOT menu from BIOS to boot into your OS In the MOK managerment screen, select reset MOK list Reboot then retry from the step make sign-install
sudo modprobe -rv 8852be #This unloads the module
sudo modprobe -v 8852be #This loads the module
Some distros provide RTL8723DE
drivers. To use this driver, that one MUST be
blacklisted. How to do that is left as an exercise as learning that will be very beneficial.
If your system has ANY conflicting drivers installed, you must blacklist them as well. For kernels 5.6 and newer, this will include drivers such as rtw88_xxxx. Here is a useful link on how to blacklist a module
Once you have reached this point, then reboot. Use the command lsmod | grep rtw
and check if there are any
conflicting drivers. The correct ones are:
rtw_8723de rtw_8723d rtw_8822be rtw_8822b rtw_8822ce rtw_8822c rtw_core and rtw_pci
If you have other modules installed, see if you blacklisted them correctly.
If it turns out that your system needs one of the configuration options, then do the following:
sudo nano /etc/modprobe.d/<dev_name>.conf
There, enter the line below:
options <device_name> <<driver_option_name>>=<value>
The available options for rtw_pci are disable_msi and disable_aspm. The available options for rtw_core are lps_deep_mode, support_bf, and debug_mask.
When your kernel changes, then you need to do the following:
cd ~/rtw8852be
git pull
make
sudo make install
Remember, this MUST be done whenever you get a new kernel - no exceptions.
These drivers will not build for kernels older than 4.14. If you must use an older kernel, submit a GitHub issue with a listing of the build errors. Without the errors, the issue will be ignored. I am not a mind reader.