rtl8821ce

Tomás Pinho 05aae2ab6e remove calls to mm_segment_t, this type is no longer defined and is not needed 3 年之前
.github 26e3caf940 Revert "make sure we're building for the correct kernel version" 5 年之前
core ca204c6072 include linux version.h so we can check which version we're compiling for 4 年之前
hal 66cda20ea6 Update rtl8821ce_halmac.c 6 年之前
include e614942851 Don't redeclare sha256_state 5 年之前
os_dep 05aae2ab6e remove calls to mm_segment_t, this type is no longer defined and is not needed 3 年之前
platform 06052776f5 Bring in sources from endlessm at 937be30d1142c74a2b82291d63c6b3d1911b7498 - Realtek v5.5.2 6 年之前
.gitignore 5f5e55900b add intermediate build artifacts to gitignore 6 年之前
COPYING 1849b8b46b Rename LICENSE.md to COPYING 5 年之前
Dockerfile 3632b4a615 test against 5.12-rc2 4 年之前
Kconfig f02ca493e0 add sources at da7fa93c9caff5d2bb5b9026e39155672bb05f98 7 年之前
Makefile f61dc4ca82 Remove extra bracket on srctree conditional 6 年之前
PKGBUILD 6ba8930b58 not relying on separate dkms.conf, it's already in-repo 7 年之前
README.md 838a08e0fa Update README.md 4 年之前
clean f02ca493e0 add sources at da7fa93c9caff5d2bb5b9026e39155672bb05f98 7 年之前
dkms-install.sh 9b66ef4b2b Bump up module version 5 年之前
dkms-remove.sh 9b66ef4b2b Bump up module version 5 年之前
dkms.conf d94f215e94 Update dkms.conf 5 年之前
get_sources.sh 9ec8f2ec8a add script to checkout sources from endlessm 7 年之前
halmac.mk c97642f876 fix include paths 6 年之前
ifcfg-wlan0 06052776f5 Bring in sources from endlessm at 937be30d1142c74a2b82291d63c6b3d1911b7498 - Realtek v5.5.2 6 年之前
rtl8821c.mk c97642f876 fix include paths 6 年之前
runwpa f02ca493e0 add sources at da7fa93c9caff5d2bb5b9026e39155672bb05f98 7 年之前
wlan0dhcp f02ca493e0 add sources at da7fa93c9caff5d2bb5b9026e39155672bb05f98 7 年之前

README.md

Realtek RTL8821CE Driver

Intent

This repository hosts the code for the Arch Linux AUR Package. It's targeting Linux > 4.14 and is being developed for Arch Linux and Ubuntu 18.10. No support will be provided for other Linux distributions or Linux Kernel versions outside of that range.

Disclaimer

The maintainers of this repository are not Realtek employees and are maintaining this repository for their own usage. Further feature development (such as proper power saving, etc.) will not be pursued here, but will be gladly integrated if newer driver sources are provided by Realtek. Use at your own risk.

DKMS

This driver can be installed using DKMS. This is a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated. To make use of DKMS, install the dkms package.

Installation of Driver

Make sure you have a proper build environment and dkms installed.

Ubuntu & Debian

The following steps are required prior to building the driver on Ubuntu/Debian:

sudo apt install bc module-assistant build-essential dkms
sudo m-a prepare

Ubuntu users may also install the prebuilt rtl8821ce-dkms package, an older version of the driver maintained by the Ubuntu MOTU Developers group for bionic, eoan and focal. It has been known to work in cases where the newer driver available here does not. Bugs and issues with that package should be reported at Launchpad rather than here.

Arch Linux

Make sure you have the base-devel package group installed before you proceed for the necessary compilation tools.

Installing from AUR

Install rtl8821ce-dkms-git from the AUR.

Dependencies for manual installation on Arch Linux

sudo pacman -Syu linux-headers dkms bc

If you are running a non-vanilla kernel then install the headers to match the kernel package. Proceed to the section below.

Gentoo Linux

An unofficial Gentoo package is available, using this repository as upstream. It is available from the trolltoo overlay. Gentoo does not use or require dkms for packaged drivers.

# layman -a trolltoo
# emerge --ask net-wireless/rtl8821ce-driver

Manual installation of driver

In order to install the driver open a terminal in the directory with the source code and execute the following command:

sudo ./dkms-install.sh

Removal of Driver

Open a terminal window and git clone the repository to your local disk

git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce

Then run the removal script:

sudo ./dkms-remove.sh

Upgrading driver

Remove the driver:

sudo ./dkms-remove.sh

Make sure you have your local copy of this repository fully updated:

git pull

Clean any stale binaries:

make clean

Install again:

sudo ./dkms-install.sh

Reporting issues

When reporting issues, please make sure that debugging is enabled. To enable debugging either set MAKEFLAGS="CONFIG_RTW_DEBUG = y" before compilation or edit Makefile:

CONFIG_RTW_DEBUG = y

This will enable verbose debug logging, helpful to developers.

Possible issues

PCIe Activate State Power Management

Your distribution may come with PCIe Active State Power Management enabled by default. That may conflict with this driver. To disable:

sudo $EDITOR /etc/default/grub

Add pci=noaer at the end of GRUB_CMDLINE_LINUX_DEFAULT. Line should look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer"

Then update your GRUB configuration:

sudo update-grub

Reboot.

Lenovo Yoga laptops

Some new Yoga laptops (like the Yoga 530) come with rtl8821ce as the Wi-Fi/Bluetooth chip. But the ideapad-laptop module, which may come included in your distribution, may conflict with this driver. To disable:

sudo modprobe -r ideapad_laptop

BlueTooth is not working

This may be due to the Kernel loading up the wrong firmware file for this card. Please take a look at @wahsot's tutorial at https://github.com/tomaspinho/rtl8821ce/issues/19#issuecomment-452196840 to see if that helps you out.

Secure Boot

If your system uses Secure Boot, disable it via BIOS settings, otherwise the kernel will not accept user-supplied modules.

Unstable connection - slowdowns or dropouts

The problem may be due to the periodic scanning of access points by the network applet.

This fix worked helpful on Pop! _OS/Ubuntu 20.10 and Fedora 33. Both with GNOME and NetworkManager. #179

Set the BSSID from your network applet. In GNOME this can be done in WiFi Settings > Your profile > Identity > BSSID.

We are going to disable the Connectivity Check option in NetworkManager. This by editing the file in /var/lib/NetworkManager/NetworkManager-intern.conf and adding the following instructions at the end:

[connectivity]
.set.enabled=false

Then, just reboot or restart the NetworkManager unit to fix the problem.

Wi-Fi not working for kernel >= 5.9

The Linux Kernel 5.9 version comes with a broken rtw88 module developed by Realtek that has poor compatibility with most revision of the 8821ce chip.

You must disable it by adding the following to your module blacklists (/etc/modprobe.d/blacklist.conf):

blacklist rtw88_8821ce

Then, make sure you have the rtl8821ce module correctly installed.

Turn off your computer, wait a few seconds (to force firmware reload) and then turn it on again.

Wi-Fi and Bluetooth don't work after suspend

This is a bug that won't be fixed until/if Realtek implements proper power management themselves. Given they are now only working in rtw88, this driver will most likely never be fixed in this regard. Please avoid opening issues about this.

Monitor (promiscuous) mode doesn't work

This driver doesn't support it and never will. Please avoid opening issues about this.