RTL8821CE 802.11ac PCIe Wireless Network Adapter
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
RTL8821CE 802.11ac PCIe Wireless Network Adapter
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?
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- Larry78723
- 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
You can install the driver by following the instructions at https://easylinuxtipsproject.blogspot.c ... altek.html.
Hope this helps,
Larry
Hope this helps,
Larry
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.
-
- Level 4
- Posts: 419
- Joined: Sat Jun 25, 2011 11:57 am
Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter
You can easily install rtl8821ce-dkms driver with following commands. Reboot your PC after installation, You must disable secureboot from BIOS/EFI settings.
This driver package also contains power managemet settings (rtw_power_mgnt=0 rtw_enusbss=0) for 8821ce module.
Code: Select all
sudo add-apt-repository ppa:kelebek333/kablosuz
sudo apt-get update
sudo apt install rtl8821ce-dkms
Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter
Thanks for this tip, kelebek333, I had same problem with HP laptop/rtl8821ce. Now my wifi is fully working!
-
- Level 4
- Posts: 419
- Joined: Sat Jun 25, 2011 11:57 am
Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter
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
As Larry said, the instructions are here:
https://easylinuxtipsproject.blogspot.c ... .html#ID10
https://easylinuxtipsproject.blogspot.c ... .html#ID10
Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter
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.
Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter
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
Result:
cat /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/make.log
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
Reason: added code tags
Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter
Found an issue
Reboot
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
-
- Level 4
- Posts: 419
- Joined: Sat Jun 25, 2011 11:57 am
Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter
The above quote indicates that no installation has been made from the PPA repository. Therefore, following the above recommendation does not change anything.JeremyB wrote: ⤴Sun Nov 17, 2019 9:42 am Found an issueRebootCode: 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
If you want to manually re-install, firstly remove the previously added with the following command.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.
Code: Select all
sudo dkms remove rtl8821ce/v5.5.2_34066.20190614 --all
Last edited by kelebek333 on Sun Nov 17, 2019 11:35 am, edited 1 time in total.
Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter
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
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.
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
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
Your info shows you got the source from github, post results forSepesusi 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.
dkms status
Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter
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
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
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:
git clone https://github.com/tomaspinho/rtl8821ce.git:
sudo ./dkms-install.sh:
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.
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
Code: Select all
cd ~/rtl8821ce
sudo ./dkms-remove.sh
git pull
sudo ./dkms-install