[SOLVED] (No WiFi) First Time Mint Installation vs. Realtek RTL8821CE Driver

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
warm_chicken
Level 1
Level 1
Posts: 7
Joined: Tue Dec 17, 2019 5:15 pm

[SOLVED] (No WiFi) First Time Mint Installation vs. Realtek RTL8821CE Driver

Post by warm_chicken »

Quick preface, I have never used Linux before. I am perfectly ready and willing to learn whatever I need to, but to say I'm naive would be an understatement. That being said, I have no idea if what I've discovers is correct. This is all just my best guess.

I've been trying to install Tina 19.2 Cinnamon for 3 days now on my laptop. After much crying, several existential crises, and one montage later, I found that the primary issue is my WI-FI card (RTL8821CE) and the lack of any associated driver in the default instillation. I found this guy that built a custom driver for this card https://github.com/tomaspinho/rtl8821ce, and it works with the out of the box kernel version (4.15 I believe). However it fails to work with anything near the latest version of the kernel (5.4.5 currently). This is a problem for me as the default kernel fails to work right with several of my devices (touchpad, graphics driver, dual monitors, etc), but the new kernels works just fine, save for that pesky driver. My question is, is there anything I can do? It is possible to make this custom driver work with the new kernel? Can I get the perks of the the new kernel on an older kernel? Should I some how try to get a new WI-FI Card and if so, what would that entail?

These are the Command that I've been using to install the custom driver, courtesy of https://askubuntu.com/questions/1071299 ... untu-18-04

Code: Select all

sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r)
git clone https://github.com/tomaspinho/rtl8821ce
cd rtl8821ce
chmod +x dkms-install.sh
chmod +x dkms-remove.sh
sudo ./dkms-install.sh
Here is the output I get on the last command that indicates my error (see 3rd line from the bottom).

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=5.4.5-050405-generic...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.4.5-050405-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=5.4.5-050405-generic...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.4.5-050405-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/make.log for more information.
Finished running dkms install steps.
And here is the inevitable system view thingy that everyone seems to ask for.

Code: Select all

:~$ inxi -Fxz
System:
  Host: MintBox Kernel: 5.4.5-050405-generic x86_64 bits: 64 compiler: gcc 
  v: 9.2.1 Desktop: Cinnamon 4.2.3 Distro: Linux Mint 19.2 Tina 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: HP product: HP Laptop 15-dy1xxx v: N/A 
  serial: <filter> 
  Mobo: HP model: 86C9 v: 56.21 serial: <filter> UEFI: AMI v: F.07 
  date: 10/18/2019 
Battery:
  ID-1: BAT0 charge: 24.4 Wh condition: 40.9/40.9 Wh (100%) 
  model: HP Primary status: Discharging 
CPU:
  Topology: Quad Core model: Intel Core i7-1065G7 bits: 64 type: MT MCP 
  arch: Ice Lake rev: 5 L2 cache: 8192 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 23961 
  Speed: 581 MHz min/max: 400/3900 MHz Core speeds (MHz): 1: 618 2: 712 
  3: 680 4: 1021 5: 622 6: 707 7: 864 8: 1047 
Graphics:
  Device-1: Intel vendor: Hewlett-Packard driver: i915 v: kernel 
  bus ID: 00:02.0 
  Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics (Ice Lake 8x8 GT2) 
  v: 4.5 Mesa 19.0.2 direct render: Yes 
Audio:
  Device-1: Intel vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
  bus ID: 00:1f.3 
  Sound Server: ALSA v: k5.4.5-050405-generic 
Network:
  Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter 
  vendor: Hewlett-Packard driver: N/A port: 3000 bus ID: 01:00.0 
  IF-ID-1: bnep0 state: unknown speed: N/A duplex: N/A mac: <filter> 
Drives:
  Local Storage: total: 931.51 GiB used: 15.97 GiB (1.7%) 
  ID-1: /dev/nvme0n1 vendor: Crucial model: CT1000P1SSD8 size: 931.51 GiB 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 bus ID: 00:17.0 
Partition:
  ID-1: / size: 457.03 GiB used: 15.89 GiB (3.5%) fs: ext4 
  dev: /dev/nvme0n1p5 
Sensors:
  System Temperatures: cpu: 52.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 238 Uptime: 15m Memory: 19.31 GiB used: 1.16 GiB (6.0%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.19 
  inxi: 3.0.32 
Any advice would be appreciated. Thank you!
Last edited by warm_chicken on Thu Dec 19, 2019 3:32 pm, edited 2 times in total.


warm_chicken
Level 1
Level 1
Posts: 7
Joined: Tue Dec 17, 2019 5:15 pm

Re: (No WiFi) First Time Mint Instilation vs. Realtek RTL8821CE Driver

Post by warm_chicken »

Thanks, but those are, as best as I can tell, the same commands I've already tried, which give me the same output error.

sleeper12
Level 7
Level 7
Posts: 1680
Joined: Thu May 25, 2017 3:22 pm

Re: (No WiFi) First Time Mint Instilation vs. Realtek RTL8821CE Driver

Post by sleeper12 »

They look a bit different, so try them from there and see how it goes.

warm_chicken
Level 1
Level 1
Posts: 7
Joined: Tue Dec 17, 2019 5:15 pm

Re: (No WiFi) First Time Mint Instilation vs. Realtek RTL8821CE Driver

Post by warm_chicken »

Sorry, I should have been more clear, I did and got the same output.

(granted the chmod stuff is gone, but I have no idea if that did anything functional anyway)

Code: Select all

chill@MintBox:~$ sudo apt-get install git dkms build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
chill@MintBox:~$ git clone https://github.com/tomaspinho/rtl8821ce.git
Cloning into 'rtl8821ce'...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 1495 (delta 5), reused 12 (delta 2), pack-reused 1473
Receiving objects: 100% (1495/1495), 5.72 MiB | 523.00 KiB/s, done.
Resolving deltas: 100% (812/812), done.
chill@MintBox:~$ cd rtl8821ce/
chill@MintBox:~/rtl8821ce$ sudo ./dkms-install.sh
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=5.4.5-050405-generic...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.4.5-050405-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=5.4.5-050405-generic...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.4.5-050405-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/v5.5.2_34066.20190614/build/make.log for more information.
Finished running dkms install steps.

sleeper12
Level 7
Level 7
Posts: 1680
Joined: Thu May 25, 2017 3:22 pm

Re: (No WiFi) First Time Mint Instilation vs. Realtek RTL8821CE Driver

Post by sleeper12 »

Ok, maybe someone else can figure what needs to be done with this.

warm_chicken
Level 1
Level 1
Posts: 7
Joined: Tue Dec 17, 2019 5:15 pm

Re: (No WiFi) First Time Mint Instilation vs. Realtek RTL8821CE Driver

Post by warm_chicken »

O well, thank you for tying and finding that resource. It explained a lot more about the problem than I already knew. Really cleared things up, thanks!

HAWR
Level 6
Level 6
Posts: 1007
Joined: Thu Jun 06, 2019 1:15 pm

Re: (No WiFi) First Time Mint Instilation vs. Realtek RTL8821CE Driver

Post by HAWR »

Hello warm_chicken,

you should try it with the 5.0 or 5.3 kernel series from the update manager. The 5.4 kernels are not offered by LM via the update manager, so how did you install it? Is it really necessary for you to run the 5.4 kernel and if yes, why? On the github website in the issue tab you can find, that it doesn't work with 5.4 kernel but with 5.2:

https://github.com/tomaspinho/rtl8821ce/issues/95

JoeBingo
Level 4
Level 4
Posts: 265
Joined: Fri Jun 24, 2011 4:18 pm

Re: (No WiFi) First Time Mint Instilation vs. Realtek RTL8821CE Driver

Post by JoeBingo »

Well, Mint 19.3 is out now. Might give that a try.
Sometimes when trying to resolve software issues and trying so many different things, files get so corrupted and convoluted that even a fix that would otherwise sort things out, isn't effective. Wish I knew the command that would wipe all the realtek drivers and past fix efforts from your installation and let you try from scratch with each new fix effort.
EDIT: I guess Timeshift would put software back to original condition if a snapshot is taken before modifying files.

warm_chicken
Level 1
Level 1
Posts: 7
Joined: Tue Dec 17, 2019 5:15 pm

Re: (No WiFi) First Time Mint Instilation vs. Realtek RTL8821CE Driver

Post by warm_chicken »

HAWR:

Ok, so... I know this is going to sound really stupid, but I tried doing all that yesterday using a Binary Search strategy to test the different kernels looking for one that let my wifi driver work, as well as all the other craps. That failed, but I tried again today after seeing your advice, and um... well...
It seems the 5.3 series is working perfectly. :oops:

JoeBingo:

Yah, I think I'll give that a try. it's obvious to me I've been screwing with way too many things and I've likely touched something I really shouldn't have. I though 9.3 was still unstable so I didn't even consider it, but I'll for sure give it a try and post the results here.


Thanks a million to everyone who took the time to help! You're amazing and I'd still be lost with out you!

JoeBingo
Level 4
Level 4
Posts: 265
Joined: Fri Jun 24, 2011 4:18 pm

Re: [SOLVED] (No WiFi) First Time Mint Instilation vs. Realtek RTL8821CE Driver

Post by JoeBingo »

Marked [Solved] ... just wondering what you did to fix it, warm_chicken?

jack476
Level 1
Level 1
Posts: 10
Joined: Wed Aug 06, 2014 10:18 pm

Re: [SOLVED] (No WiFi) First Time Mint Installation vs. Realtek RTL8821CE Driver

Post by jack476 »

I just wanted to comment that I had almost the exact problem on a Macbook Air 2011 with a Broadcom 43224 wifi card, with the exact same error message of being unable to build the drivers, and the solution for me was also to downgrade from 5.4 to 5.3 or earlier.

I wanted to experiment with the 5.4 kernel in the off chance it might bring a performance increase, but apparently it is not compatible with Mint's wifi drivers. Downgrading to 5.3 or to the long-term-supported 4.15 resolved the issue completely.

warm_chicken
Level 1
Level 1
Posts: 7
Joined: Tue Dec 17, 2019 5:15 pm

Re: [SOLVED] (No WiFi) First Time Mint Installation vs. Realtek RTL8821CE Driver

Post by warm_chicken »

JoeBingo, I have no idea what change. Literally I did nothing different. All I did was read y'alls posts, boot into linux, and start testing kernels.
As best I can figure, I either helped a little old lady cross the street, rescued a cat stuck in a tree, or made enough sacrifices to please the Linux Gods or boots up my karma. As silly as that sounds, I'm kinda at the point where I don't want to question it too much just incase I accidently anger the Gods and they revoked my blessing.

Upgrading to 19.3 doesn't seem to have any effect by the way. I haven't tested everything, but it seems like any kernel in the 5.3 range works with this driver.

sleeper12
Level 7
Level 7
Posts: 1680
Joined: Thu May 25, 2017 3:22 pm

Re: [SOLVED] (No WiFi) First Time Mint Installation vs. Realtek RTL8821CE Driver

Post by sleeper12 »

Whether it was the 5.3 kernel alone or in combination with the commands from easylinuxtipsproject......it worked for you. :D :)

JoeBingo
Level 4
Level 4
Posts: 265
Joined: Fri Jun 24, 2011 4:18 pm

Re: [SOLVED] (No WiFi) First Time Mint Installation vs. Realtek RTL8821CE Driver

Post by JoeBingo »

Well at least you found a way to get it to work and didn't give up until you did. Awesome !!! Enjoy wireless Mint !!! :)

Post Reply

Return to “Newbie Questions”