Skip to content

Instantly share code, notes, and snippets.

@AliAlmasi
Created October 29, 2023 21:10
Show Gist options
  • Save AliAlmasi/adafe125520d96b3e23a6aba37413f88 to your computer and use it in GitHub Desktop.
Save AliAlmasi/adafe125520d96b3e23a6aba37413f88 to your computer and use it in GitHub Desktop.

RTL8821CE Wireless card fix on Linux Mint (or any other Debian/Ubuntu based distros)

For some reason, the rtl8821ce WiFi hardware works poorly or not at all on most Linux distros. Apparently, the driver used in the Linux kernel for this hardware is outdated or for other reasons that I don't know about, it doesn't work properly. The solution to this problem is a driver developed by a friend from Portugal and placed on GitHub.

In this guide, we want to build and install this driver.

Warning: Before proceeding, take a Timeshift snapshot for safety.

Open a Terminal and follow along:

  1. Update your APT: sudo apt update
  2. Install the necessary tools: sudo apt install bc module-assistant build-essential dkms git
  3. Remove the rtl8821ce-dkms if it is present: sudo apt remove rtl8821ce-dkms
  4. Clone the driver and get in the directory of cloned driver: git clone https://github.com/tomaspinho/rtl8821ce.git && cd rtl8821ce
  5. Prepare/Build the driver: sudo m-a prepare
  6. If the output has Couldn't create the /usr/src/linux symlink!, try again
  7. Install the driver: sudo ./dkms-install.sh
  8. Open a new terminal and run: sudo nano /etc/modprobe.d/blacklist.conf
  9. Add blacklist rtw88_8821ce to the end and save the file
  10. Restart the system and... Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment