Page 1 of 3

RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Fri Oct 18, 2019 5:08 pm
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?

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Fri Oct 18, 2019 5:28 pm
by Larry78723
You can install the driver by following the instructions at https://easylinuxtipsproject.blogspot.c ... altek.html.

Hope this helps,
Larry

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Fri Oct 18, 2019 7:15 pm
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.

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

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

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Tue Oct 22, 2019 1:24 pm
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. :)

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Wed Nov 13, 2019 1:55 pm
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?

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Fri Nov 15, 2019 9:51 pm
by sleeper12
As Larry said, the instructions are here:
https://easylinuxtipsproject.blogspot.c ... .html#ID10

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Sat Nov 16, 2019 5:58 am
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.

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Sat Nov 16, 2019 7:43 am
by JeremyB
Post results for

Code: Select all

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

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Sat Nov 16, 2019 8:27 am
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

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Sun Nov 17, 2019 9:42 am
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

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Sun Nov 17, 2019 10:34 am
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.

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Sun Nov 17, 2019 11:29 am
by JeremyB
In that case

Code: Select all

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

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Mon Nov 18, 2019 11:53 am
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.

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Tue Nov 19, 2019 4:16 am
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.

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Tue Nov 19, 2019 7:11 am
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

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Tue Nov 19, 2019 7:15 am
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

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Tue Nov 19, 2019 7:25 am
by JeremyB
You might want to download again and install as I had no problems installing from github with 4.15.0-70 kernel

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Tue Nov 19, 2019 7:49 am
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.

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Posted: Tue Nov 19, 2019 8:33 am
by JeremyB

Code: Select all

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