Can't install RTL8821CE wireless adapter drivers

Hi everyone.
I just installed Manjaro on my laptop, it's a Lenovo Yoga 530.
I already use Manjaro on my PC since the start of the year but I wanted to use it on my laptop too.

The installation went fine, no problems at all. I used an ethernet cable to download everything and after I had everything set I unplugged it just to realize that I had no WIFI.

I searched on Archwiki (this link and Manjaro Wiki but I didn't managed to find a solution.

I found this github with the driver that I need but it didn't work, I might have done something wrong but has been 3 hours and I can manage to fix my wifi.
This is the inxi:

inxi --full --verbosity=7 --filter --no-host
System:    Kernel: 5.4.52-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: KDE Plasma 5.19.3 tk: Qt 5.15.0 
           wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Convertible System: LENOVO product: 81H9 v: Lenovo YOGA 530-14ARR serial: <filter> Chassis: type: 31 
           v: Lenovo YOGA 530-14ARR serial: <filter> 
           Mobo: LENOVO model: LNVNB161216 v: SDK0J40700 WIN serial: <filter> UEFI: LENOVO v: 8MCN57WW date: 10/10/2019 
Battery:   ID-1: BAT0 charge: 41.2 Wh condition: 41.9/45.0 Wh (93%) volts: 8.6/7.7 model: SMP L17M4PB0 type: Li-poly 
           serial: <filter> status: Unknown 
Memory:    RAM: total: 7.39 GiB used: 1.77 GiB (23.9%) 
           RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:       Topology: Dual Core model: AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen 
           L2 cache: 1024 KiB bogomips: 19969 
           Speed: 1370 MHz min/max: 1600/2500 MHz boost: enabled Core speeds (MHz): 1: 1490 2: 1428 3: 1375 4: 1520 
           Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 bmi2 bpext clflush clflushopt clzero cmov 
           cmp_legacy constant_tsc cpb cpuid cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid fma fpu 
           fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_lm lbrv lm mca mce misalignsse mmx mmxext monitor movbe msr 
           mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb 
           perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 rdrand rdseed rdtscp rep_good sep sev 
           sha_ni skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock syscall tce topoext 
           tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves 
Graphics:  Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] vendor: Lenovo driver: amdgpu v: kernel 
           bus ID: 03:00.0 chip ID: 1002:15dd 
           Display: x11 server: X.Org 1.20.8 driver: amdgpu FAILED: ati unloaded: modesetting alternate: fbdev,vesa 
           compositor: kwin_x11 resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RAVEN (DRM 3.35.0 5.4.52-1-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.1.3 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Lenovo 
           driver: snd_hda_intel v: kernel bus ID: 03:00.1 chip ID: 1002:15de 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 03:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.4.52-1-MANJARO 
Network:   Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Lenovo driver: N/A port: 2000 
           bus ID: 01:00.0 chip ID: 10ec:c821 
           Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus ID: 2-3.2:3 chip ID: 0bda:8153 
           serial: <filter> 
           IF: enp3s0f3u3u2 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IP v4: <filter> type: dynamic noprefixroute scope: global broadcast: <filter> 
           IP v6: <filter> type: noprefixroute scope: link 
           WAN IP: <filter> 
Drives:    Local Storage: total: 238.47 GiB used: 10.70 GiB (4.5%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN520 SDAPMUW-256G-1101 size: 238.47 GiB speed: 15.8 Gb/s 
           lanes: 2 serial: <filter> rev: 20210001 scheme: GPT 
           Message: No Optical or Floppy data was found. 
RAID:      Message: No RAID data was found. 
Partition: ID-1: / size: 224.77 GiB used: 10.70 GiB (4.8%) fs: ext4 dev: /dev/nvme0n1p2 label: N/A 
           uuid: dadbc80d-9764-401e-8423-4d5cf3b82801 
           ID-2: /boot/efi size: 299.4 MiB used: 280 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 label: N/A uuid: C030-68D8 
           ID-3: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 label: N/A 
           uuid: cc348dc0-2ff1-4c97-8c4f-b260aeb21565 
Unmounted: Message: No unmounted partitions found. 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Device-1: 1-2:2 info: Logitech G402 Gaming Mouse type: Mouse,HID driver: hid-generic,usbhid interfaces: 2 rev: 2.0 
           speed: 12 Mb/s chip ID: 046d:c07e serial: <filter> 
           Hub: 1-3:3 info: VIA Labs USB2.0 Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip ID: 2109:2813 
           Device-2: 1-4:4 info: Realtek Bluetooth Radio type: Bluetooth driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s 
           chip ID: 0bda:c024 serial: <filter> 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip ID: 1d6b:0003 
           Hub: 2-3:2 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.0 speed: 5 Gb/s chip ID: 2109:0813 
           Device-3: 2-3.2:3 info: Realtek RTL8153 Gigabit Ethernet Adapter type: Network driver: r8152 interfaces: 1 rev: 3.0 
           speed: 5 Gb/s chip ID: 0bda:8153 serial: <filter> 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Hub: 3-2:2 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip ID: 05e3:0608 
           Device-4: 3-2.1:3 info: Chicony type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s 
           chip ID: 04f2:b61e serial: <filter> 
           Device-5: 3-2.2:4 info: Synaptics USB2.0 Hub type: <vendor specific> driver: N/A interfaces: 1 rev: 2.0 
           speed: 12 Mb/s chip ID: 06cb:0081 serial: <filter> 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 1 rev: 3.1 speed: 10 Gb/s chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 47.2 C mobo: N/A gpu: amdgpu temp: 47 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 198 Uptime: 9m Init: systemd v: 245 Compilers: gcc: 10.1.0 Shell: bash v: 5.0.18 running in: yakuake 
           inxi: 3.0.37

That driver is in the AUR as rtl8821ce-dkms-git.

thanks for replying so quickly!

sudo pacman -Syu rtl8821ce-dkms-git
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
error: target not found: rtl8821ce-dkms-git

I tried but it gives me this error

error: target not found: rtl8821ce-dkms-git

It's not in the Manjaro repos, it's in the AUR (Arch User Repository). :wink:

I was following this guide and he used thos comands. I tried with:

pamac build  rtl8821ce-dkms-git 

but it gives me thsi error:

Building rtl8821ce-dkms-git...
==> Making package: rtl8821ce-dkms-git 1.0.5.r100.g18c1f60-1 (Fri 24 Jul 2020 00:44:41 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating rtl8821ce git repo...
Fetching origin
==> Validating source files with sha256sums...
    rtl8821ce ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of rtl8821ce git repo...
Cloning into 'rtl8821ce'...
done.
==> Starting pkgver()...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "rtl8821ce-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl8821ce-dkms-git 1.0.5.r100.g18c1f60-1 (Fri 24 Jul 2020 00:44:52 CEST)
==> Cleaning up...

Checking keyring...                                                                                                                                                                    [1/1]
Checking integrity...                                                                                                                                                                  [1/1]
Loading package files...                                                                                                                                                               [1/1]
Checking file conflicts...                                                                                                                                                             [1/1]
Checking available disc space...                                                                                                                                                       [1/1]
Installing rtl8821ce-dkms-git (1.0.5.r100.g18c1f60-1)...                                                                                                                               [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                                                         [1/2]
Install DKMS modules                                                                                                                                                                   [2/2]
==> Unable to install module rtl8821ce/1.0.5.r100.g18c1f60 for kernel 5.4.47-rt28-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8821ce/1.0.5.r100.g18c1f60 for kernel 5.4.52-1-MANJARO: Missing kernel headers.
Transaction successfully finished.

==> Unable to install module rtl8821ce/1.0.5.r100.g18c1f60 for kernel 5.4.47-rt28-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8821ce/1.0.5.r100.g18c1f60 for kernel 5.4.52-1-MANJARO: Missing kernel headers.

Any idea on how to solve those?

linux-headers is an optional dependency of dkms, which you've discovered you require.

This will install the headers for any kernel installed as a dependency:

sudo pacman -Syu --asdeps linux-headers

I still had the same problem, I searched a bit more and found this conversation about the same problem.
Reading throw it I found this:

sudo pacman -S linux$(uname -r| grep -o -E '[0-9]+' | head -n 2 | sed 'N;s/\n//')-headers

I runnet it, rebooted and runned:

pamac build  rtl8821ce-dkms-git

and now my wifi it's working just fine.

Thank you for your time! Really appreciated. :smile:

Ah, looks like the wizardry of @tbg! :star_struck:

You're welcome, glad it wasn't too painful.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by