RTL8821CE 802.11ac PCIe Wireless Network Adapter

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
vaporgalaxy

RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by vaporgalaxy »

Hi,

I have the following Wireless Network Adapter:

$ lspci -nn | grep Network
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
$ etwork

I'm unable to find any drivers for Linux Mint for this, could someone point me in the right direction to get connected via Wireless?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Larry78723
Level 14
Level 14
Posts: 5476
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Larry78723 »

You can install the driver by following the instructions at https://easylinuxtipsproject.blogspot.c ... altek.html.

Hope this helps,
Larry
Image
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 »

You can easily install rtl8821ce-dkms driver with following commands. Reboot your PC after installation, You must disable secureboot from BIOS/EFI settings.

Code: Select all

sudo add-apt-repository ppa:kelebek333/kablosuz
sudo apt-get update
sudo apt install rtl8821ce-dkms 
This driver package also contains power managemet settings (rtw_power_mgnt=0 rtw_enusbss=0) for 8821ce module.
Sepesusi

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Thanks for this tip, kelebek333, I had same problem with HP laptop/rtl8821ce. Now my wifi is fully working!
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 »

Sepesusi wrote: Tue Oct 22, 2019 9:46 am Thanks for this tip, kelebek333, I had same problem with HP laptop/rtl8821ce. Now my wifi is fully working!
You're welcome.

May the FOSS be with you. :)
Sepesusi

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Kernel upgrade killed my wifi again yesterday. I repeated the commands of your tip with no help. My system is 19.1 Tessa. The wifi driver disappeared also at the listing of inxi -Fxz. More tips?
sleeper12
Level 21
Level 21
Posts: 14560
Joined: Thu May 25, 2017 3:22 pm

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by sleeper12 »

As Larry said, the instructions are here:
https://easylinuxtipsproject.blogspot.c ... .html#ID10
Sepesusi

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

I tried it already with no help. This was the result:

Code: Select all

About to run dkms install steps...
Error! DKMS tree already contains: rtl8821ce-v5.5.2_34066.20190614
You cannot add the same module/version combo more than once.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=4.15.0-70-generic..........(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821ce: v5.5.2_34066.20190614 not found
Error! Bad return status for module build on kernel: 4.15.0-70-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=4.15.0-70-generic.........(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821ce: v5.5.2_34066.20190614 not found
Error! Bad return status for module build on kernel: 4.15.0-70-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/make.log for more information.
Finished running dkms install steps.
Last edited by Sepesusi on Sat Nov 16, 2019 10:22 am, edited 1 time in total.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB »

Post results for

Code: Select all

cat  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/make.log
Sepesusi

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Result:

cat /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/make.log

Code: Select all

DKMS make.log for rtl8821ce-v5.5.2_34066.20190614 for kernel 4.15.0-70-generic (x86_64)
la 16.11.2019 11.53.43 +0200
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-70-generic/build M=/var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build  modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-70-generic'
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_chplan.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/mesh/rtw_mesh.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_beamforming.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_rm.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/rtw_rm_fsm.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/os_intfs.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/pci_intf.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/pci_ops_linux.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/mlme_linux.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/recv_linux.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/wifi_regd.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_android.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_proc.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_rhashtable.o
  CC [M]  /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/ioctl_mp.o
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_android.c: In function ‘rtw_android_priv_cmd’:
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_android.c:665:49: error: macro "access_ok" requires 3 arguments, but only 2 given
  if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
                                                 ^
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_android.c:665:7: error: ‘access_ok’ undeclared (first use in this function)
  if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
       ^~~~~~~~~
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_android.c:665:7: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:330: recipe for target '/var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_android.o' failed
make[2]: *** [/var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/os_dep/linux/rtw_android.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:1577: recipe for target '_module_/var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build' failed
make[1]: *** [_module_/var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-70-generic'
Makefile:2237: recipe for target 'modules' failed
make: *** [modules] Error 2
Last edited by JeremyB on Sat Nov 16, 2019 8:28 am, edited 1 time in total.
Reason: added code tags
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB »

Found an issue

Code: Select all

sudo apt remove rtl8821ce-dkms
sudo apt install git
git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce
sudo ./dkms-install.sh
Reboot
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 »

Sepesusi wrote: Sat Nov 16, 2019 5:58 am Error! DKMS tree already contains: rtl8821ce-v5.5.2_34066.20190614
JeremyB wrote: Sun Nov 17, 2019 9:42 am Found an issue

Code: Select all

sudo apt remove rtl8821ce-dkms
sudo apt install git
git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce
sudo ./dkms-install.sh
Reboot
The above quote indicates that no installation has been made from the PPA repository. Therefore, following the above recommendation does not change anything.
dkms status
rtl8821ce, 5.5.2.1~bionic, 5.3.0-23-generic, amd64: installed
dpkg -l | grep rtl8821ce
ii rtl8821ce-dkms 5.5.2.1~bionic all rtl8821ce driver in DKMS format.
If you want to manually re-install, firstly remove the previously added with the following command.

Code: Select all

sudo dkms remove rtl8821ce/v5.5.2_34066.20190614 --all
After this, you can install rtl8821ce driver manually or from PPA.
Last edited by kelebek333 on Sun Nov 17, 2019 11:35 am, edited 1 time in total.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB »

In that case

Code: Select all

cd rtl8821ce
sudo ./dkms-uninstall.sh
git pull
sudo ./dkms-install.sh
Lorin

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Lorin »

This took me three week of trying and failing.Finely found this:

Remove the current driver: sudo dkms remove 8822bu/1.1 --all

sudo apt-get update

sudo apt-get install build-essential git

git clone https://github.com/cilynx/rtl88x2BU_WiF ... 2-5044.git

cd rtl88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044
VER=$(cat ./version)

sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}

sudo dkms add -m rtl88x2bu -v ${VER}

sudo dkms build -m rtl88x2bu -v ${VER}

sudo dkms install -m rtl88x2bu -v ${VER}

sudo modprobe 88x2bu

After I rebooted it worked,but then I logged out and logged in and no Wifi connection.
After much head scratching and trying scripts that didn't fix it.I did this to Network
Manager settings (edit connection)highlight wireless -click gear-go to general-change 0 to a 3 and save.
Sepesusi

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Sorry guys (JeremyB & kelebek333), following your recommendations did not help. Earlier the tip sent by kelebek333 (using ppa repository) fixed the problem and my wireless was fully working for several weeks. But then accepting the kernel update few days ago killed it again... which I regret now.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB »

Sepesusi wrote: Tue Nov 19, 2019 4:16 am Sorry guys (JeremyB & kelebek333), following your recommendations did not help. Earlier the tip sent by kelebek333 (using ppa repository) fixed the problem and my wireless was fully working for several weeks. But then accepting the kernel update few days ago killed it again... which I regret now.
Your info shows you got the source from github, post results for dkms status
Sepesusi

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Result of dkms status:

Code: Select all

8812au, 4.2.3, 4.15.0-64-generic, x86_64: built
8812au, 4.2.3, 4.15.0-66-generic, x86_64: installed
8812au, 4.2.3, 4.15.0-70-generic, x86_64: installed
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB »

You might want to download again and install as I had no problems installing from github with 4.15.0-70 kernel
Sepesusi

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

I now followed the instsructions that Larry recommended first in this chain. And here are the restults:

sudo apt-get install git dkms build-essential:

Code: Select all

build-essential is already the newest version (12.4ubuntu1).
dkms is already the newest version (2.3-3ubuntu9.7).
git is already the newest version (1:2.17.1-1ubuntu0.4).

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

Code: Select all

fatal: destination path 'rtl8821ce' already exists and is not an empty directory.
sudo ./dkms-install.sh:

Code: Select all

About to run dkms install steps...

Creating symlink /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/source ->
                 /usr/src/rtl8821ce-v5.5.2_34066.20190614

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=4.15.0-70-generic..........(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821ce: v5.5.2_34066.20190614 not found
Error! Bad return status for module build on kernel: 4.15.0-70-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=4.15.0-70-generic.........(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821ce: v5.5.2_34066.20190614 not found
Error! Bad return status for module build on kernel: 4.15.0-70-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/make.log for more information.
Finished running dkms install steps.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB »

Code: Select all

cd ~/rtl8821ce
sudo ./dkms-remove.sh
git pull
sudo ./dkms-install
Locked

Return to “Networking”