RTL8821CE 802.11ac PCIe Wireless Network Adapter

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

The last command gave as result:

~/rtl8821ce$ sudo ./dkms-install
sudo: ./dkms-install: command not found
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

And here are results for first commands:

~/rtl8821ce$ sudo ./dkms-remove.sh

Code: Select all

About to run dkms removal steps...

------------------------------
Deleting module version: v5.5.2_34066.20190614
completely from the DKMS tree.
------------------------------
Done.
Finished running dkms removal steps.
~/rtl8821ce$ git pull

Code: Select all

remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
From https://github.com/tomaspinho/rtl8821ce
   9d8699f..0a6b9a3  master     -> origin/master
Updating 9d8699f..0a6b9a3
Fast-forward
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
JeremyB
Level 20
Level 20
Posts: 11968
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB »

Now run the last command and reboot
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

I already ran all those commands in the same order as you advised and rebooted, but no help. I posted first back the result of last command because there seems to be a problem: ’command not found’.
JeremyB
Level 20
Level 20
Posts: 11968
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB »

I posted the commands from my phone and forgot about the .sh, the command should have been

Code: Select all

sudo ./dkms-install.sh
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Same result:

Code: Select all

~$ sudo ./dkms-install.sh
         
sudo: ./dkms-install.sh: command not found
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

I just noticed a new update of rtl8821ce-dkms-driver in the Update Manager. And running it solved the problem, yippeee!
Now I'm wondering, should I skip all the kernel updates in the future?
User avatar
OveS
Level 3
Level 3
Posts: 193
Joined: Fri Jan 01, 2016 3:26 pm
Location: France

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by OveS »

DKMS should automatically update the driver when you do a kernel update
--
Ideapad 530S-14ARR - Linux Mint 20.1 Cinnamon
MacBook Air M1 - macOS 11.3
User avatar
kelebek333
Level 4
Level 4
Posts: 278
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 »

Sepesusi wrote:
Wed Nov 20, 2019 6:54 am
I just noticed a new update of rtl8821ce-dkms-driver in the Update Manager. And running it solved the problem, yippeee!
Now I'm wondering, should I skip all the kernel updates in the future?
Be sure to use only one method for driver installation. 3rd. party drives can be installed in different ways.

1. Compile and install from source with "make+make install". This way of driver installation is only for the current kernel. Driver can not added to new kernel with a kernel update. It is necessary to reinstall the driver in the same way for new current kernel.

2. Compile and install from with dkms. This way of driver's installation is for the current kernel and also automatically added to new kernels. Updates in the same kernel series generally do not have a problem. For example, update from 5.0.x1 to 5.0.x2. But if you upgade to new kernel series, you may get a issue. For example, update from 5.0.x to 5.3.x. It's just a technical possibility. In this case, remove the driver installed with dkms and you must install updated version of driver for new kernel series from the github page of 3rd. party driver.

3. Installation from default repository or PPA repository. Driver support is just like dkms installation. The most important difference that; If package maintainer add updated version of the driver to repository, old driver is automatically deleted and updated driver install with update.
JeremyB
Level 20
Level 20
Posts: 11968
Joined: Fri Feb 21, 2014 8:17 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by JeremyB »

Sepesusi wrote:
Wed Nov 20, 2019 6:54 am
I just noticed a new update of rtl8821ce-dkms-driver in the Update Manager. And running it solved the problem, yippeee!
Now I'm wondering, should I skip all the kernel updates in the future?
Do not skip kernel updates as many of those fix security issues. I would tell you to replace the RTL8821CE wifi card with an Intel 7260 rather than to skip kernel updates. I have no idea why it failed on this kernel as I have 3 different wifi modules installed using dkms and none of them failed to build on kernel 4.15.0-70
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

I just noticed a new kernel update to version 4.15.0-72 in Update Manager. After some hesitation (bad experience earlier) I decided to run it. And now I'm happy to tell that my wifi is still working fine!
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Nice notice again: kernel update to version 4.15.0-74 successful and wifi still working fine! No hesitation anymore with kernel updates in the future!
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Final (hopefully) comment concerning my earlier wifi problems with Realtek RTL8821CE driver: latest update to kernel version 4.15.0-76 was again successful and my Wifi is still working fine!
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Latest update to linux-firmware 1.173.15 and rtl8821ce-dkms-driver killed the 5G connection of my wifi. The 2,4 GHz connection is still working. I can live with that, but I lost more than 50% of my earlier connection speed :(
Similar problems? Correction hints?
User avatar
kelebek333
Level 4
Level 4
Posts: 278
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 »

Sepesusi wrote:
Fri Feb 28, 2020 8:10 am
Latest update to linux-firmware 1.173.15 and rtl8821ce-dkms-driver killed the 5G connection of my wifi. The 2,4 GHz connection is still working. I can live with that, but I lost more than 50% of my earlier connection speed :(
Similar problems? Correction hints?
Can you post outputs of following commands.

Code: Select all

dkms status
apt policy rtl8821ce-dkms 
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Output 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-76-generic, x86_64: installed
8812au, 4.2.3, 4.15.0-88-generic, x86_64: installed
rtl8821ce, 5.5.2.1, 4.15.0-88-generic, x86_64: installed

Output of 'apt policy rtl8821ce-dkms'

Code: Select all

rtl8821ce-dkms:
  Asennettu: 5.5.2.1-0ubuntu3~18.04.1
  Ehdokas:   5.5.2.1-0ubuntu3~18.04.1
  Versiotaulukko:
 *** 5.5.2.1-0ubuntu3~18.04.1 500
        500 http://mirrors.nic.funet.fi/ubuntu bionic-updates/universe amd64 Packages
        500 http://mirrors.nic.funet.fi/ubuntu bionic-updates/universe i386 Packages
        100 /var/lib/dpkg/status
     5.5.2.1~bionic3 500
        500 http://ppa.launchpad.net/kelebek333/kablosuz/ubuntu bionic/main amd64 Packages
        500 http://ppa.launchpad.net/kelebek333/kablosuz/ubuntu bionic/main i386 Packages
User avatar
kelebek333
Level 4
Level 4
Posts: 278
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 »

Can you try to install rtl8821ce-dkms package with following command. Reboot your PC after installation.

Code: Select all

sudo apt install rtl8821ce-dkms=5.5.2.1~bionic3
If the problem is solved this way, I can update the version priority of the package in the ppa repository.
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Thanks, Kelebek! My 5 GHz wifi is working again with full speed with your advice.
After installing the package from your ppa repository I noticed a new update recommendation in the Update Manager: "rtl8821ce to version 5.5.2.1. 0ubuntu-18.04.1 - Dkms source for the realtek 8821c pcie wifi driver".
Should I run it also or not? Or is it again the update that ruined my 5G wifi earlier today?
And how about the future updates from ppa repository in practice?
User avatar
kelebek333
Level 4
Level 4
Posts: 278
Joined: Sat Jun 25, 2011 11:57 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by kelebek333 »

Hi Sepesusi,

I changed rtl8821ce-dkms package's priority on PPA. Now, rtl8821ce-dkms package will be installed only from PPA repository.

I follow the changes in the rtl8821ce's github repository and update the package in the PPA repository only for important changes.
Sepesusi
Level 1
Level 1
Posts: 19
Joined: Tue Oct 22, 2019 9:38 am

Re: RTL8821CE 802.11ac PCIe Wireless Network Adapter

Post by Sepesusi »

Ok, thank you so much. I hope this will end all the wifi problems I've met since moving from Win7 to Linux Mint.
Post Reply

Return to “Wireless”