RTL8821CE 802.11ac PCIe Wireless Network Adapter

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Post Reply
vaporgalaxy
Level 1
Level 1
Posts: 1
Joined: Fri Oct 18, 2019 4:47 pm

RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by vaporgalaxy » Fri Oct 18, 2019 5:08 pm

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?

User avatar
Larry78723
Level 7
Level 7
Posts: 1545
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Larry78723 » Fri Oct 18, 2019 5:28 pm

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

Hope this helps,
Larry
Image

User avatar
kelebek333
Level 3
Level 3
Posts: 182
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 » Fri Oct 18, 2019 7:15 pm

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
Level 1
Level 1
Posts: 4
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi » 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!

User avatar
kelebek333
Level 3
Level 3
Posts: 182
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 » Tue Oct 22, 2019 1:24 pm

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
Level 1
Level 1
Posts: 4
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi » Wed Nov 13, 2019 1:55 pm

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 6
Level 6
Posts: 1215
Joined: Thu May 25, 2017 3:22 pm

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by sleeper12 » Fri Nov 15, 2019 9:51 pm

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

Sepesusi
Level 1
Level 1
Posts: 4
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi » Sat Nov 16, 2019 5:58 am

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 20
Level 20
Posts: 11028
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB » Sat Nov 16, 2019 7:43 am

Post results for

Code: Select all

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

Sepesusi
Level 1
Level 1
Posts: 4
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi » Sat Nov 16, 2019 8:27 am

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 20
Level 20
Posts: 11028
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB » 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

User avatar
kelebek333
Level 3
Level 3
Posts: 182
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 » Sun Nov 17, 2019 10:34 am

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 20
Level 20
Posts: 11028
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB » Sun Nov 17, 2019 11:29 am

In that case

Code: Select all

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

Post Reply

Return to “Wireless”