Need help with wi-fi adapters

I just booted Manjaro Gnome and it only connects to ethernet. Doesn’t connect to wi-fi no matter what I try. Can somebody help me with this? Thanks.

Please post the output of inxi -Fazy and lspci -k.

inxi -Fazy

System:
  Kernel: 5.8.16-2-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=801f1b7c-ea73-42f0-9a80-b2174b26a2ea rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: GNOME 3.36.6 tk: GTK 3.24.23 wm: gnome-shell dm: GDM 3.36.3 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: HP product: HP Laptop 14-dk0xxx v: N/A serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 85E0 v: 84.42 serial: <filter> UEFI: AMI v: F.42 
  date: 07/03/2019 
Battery:
  ID-1: BAT0 charge: 23.4 Wh condition: 42.2/42.2 Wh (100%) volts: 11.2/11.6 
  model: Hewlett-Packard Primary type: Li-ion serial: <filter> 
  status: Discharging 
CPU:
  Topology: Dual Core model: AMD Ryzen 3 3200U with Radeon Vega Mobile Gfx 
  bits: 64 type: MT MCP arch: Zen+ family: 17 (23) model-id: 18 (24) 
  stepping: 1 microcode: 8108102 L2 cache: 1024 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 20770 
  Speed: 1304 MHz min/max: 1400/2600 MHz boost: enabled Core speeds (MHz): 
  1: 1225 2: 1249 3: 1222 4: 1222 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Picasso vendor: Hewlett-Packard driver: amdgpu v: kernel 
  bus ID: 03:00.0 chip ID: 1002:15d8 
  Device-2: Cheng Uei Precision Industry (Foxlink) HP TrueVision HD Camera 
  type: USB driver: uvcvideo bus ID: 1-4:2 chip ID: 05c8:03d2 
  Display: wayland server: X.org 1.20.9 compositor: gnome-shell driver: amdgpu 
  note: display driver n/a - try sudo/root display ID: 0 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: AMD RAVEN2 (DRM 3.38.0 5.8.16-2-MANJARO LLVM 10.0.1) 
  v: 4.6 Mesa 20.1.8 direct render: Yes 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 03:00.1 chip ID: 1002:15de 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel 
  alternate: snd_pci_acp3x bus ID: 03:00.5 chip ID: 1022:15e2 
  Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 03:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.8.16-2-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: f000 bus ID: 01:00.0 
  chip ID: 10ec:8168 
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter> 
  Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter 
  vendor: Hewlett-Packard driver: N/A port: e000 bus ID: 02:00.0 
  chip ID: 10ec:c821 
Drives:
  Local Storage: total: 1.82 TiB used: 7.73 GiB (0.4%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda vendor: Seagate model: ST2000LM007-1R8174 size: 1.82 TiB 
  block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: RDM4 scheme: GPT 
Partition:
  ID-1: / raw size: 1.82 TiB size: 1.79 TiB (98.38%) used: 7.73 GiB (0.4%) 
  fs: ext4 dev: /dev/sda2 
Swap:
  Alert: No Swap data was found. 
Sensors:
  System Temperatures: cpu: 39.2 C mobo: N/A gpu: amdgpu temp: 0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 245 Uptime: 28m Memory: 29.37 GiB used: 1.50 GiB (5.1%) 
  Init: systemd v: 246 Compilers: gcc: 10.1.0 Packages: pacman: 1177 lib: 330 
  flatpak: 0 Shell: Bash v: 5.0.18 default: Zsh v: 5.8 
  running in: gnome-terminal inxi: 3.1.05</pre>



<pre>lspci -k
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
	Subsystem: Hewlett-Packard Company Device 85e0
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
	Subsystem: Hewlett-Packard Company Device 85e0
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Zeppelin Switch Upstream (PCIE SW.US)
	Kernel driver in use: pcieport
00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Zeppelin Switch Upstream (PCIE SW.US)
	Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
	Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B
	Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
	Subsystem: Hewlett-Packard Company Device 85e0
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: Hewlett-Packard Company Device 85e0
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	DeviceName: Realtek PCIe FE Family Controller
	Subsystem: Hewlett-Packard Company Device 85e0
	Kernel driver in use: r8169
	Kernel modules: r8169
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
	Subsystem: Hewlett-Packard Company Device 831a
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c4)
	DeviceName:  Onboard IGD
	Subsystem: Hewlett-Packard Company Device 85e0
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
	Subsystem: Hewlett-Packard Company Device 85e0
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
03:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Subsystem: Hewlett-Packard Company Device 85e0
	Kernel driver in use: ccp
	Kernel modules: ccp
03:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven2 USB 3.1
	Subsystem: Hewlett-Packard Company Device 85e0
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
03:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
	Subsystem: Hewlett-Packard Company Device 85e0
	Kernel driver in use: snd_rn_pci_acp3x
	Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x
03:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
	Subsystem: Hewlett-Packard Company Device 85e0
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
04:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 61)
	Subsystem: Hewlett-Packard Company Device 85e0
	Kernel driver in use: ahci

Install dkms if this isn’t already installed.
The driver is in the AUR, so install rtl8821ce-dkms-git

Reboot.

I’ve tried doing so but it fails to build the file and shows some errors about kernel headers and modules. Do I have to install something before that?

You need to install the kernel headers first. Install the linux58-headers package first and try again.

1 Like

Sorry, thought you might have the headers already installed.

1 Like

After installing linux58-headers it still fails to build and says kernel headers are missing. I installed a and built a package called linux58-headers from “add or remove software” app.

This is the full error when installing the adapter.
==> Unable to remove module rtl8821ce/1.0.5.r109.gfe97b50 for kernel 5.8.16-2-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl8821ce/1.0.5.r109.gfe97b50 for kernel 5.8.0-1-MANJARO: Not found in dkms status output.
Reinstalling rtl8821ce-dkms-git (1.0.5.r109.gfe97b50-1)…
Running post-transaction hooks…
Arming ConditionNeedsUpdate…
Install DKMS modules
==> Unable to install module rtl8821ce/1.0.5.r109.gfe97b50 for kernel 5.8.16-2-MANJARO: Missing kernel headers.
==> Unable to install module rtl8821ce/1.0.5.r109.gfe97b50 for kernel 5.8.0-1-MANJARO: Missing kernel modules tree.
Transaction successfully finished.

You also need to install the dkms package. Please post the output ls /lib/modules/*/build

/lib/modules/5.8.0-1-MANJARO/build:
arch crypto include kernel mm samples sound virt
block drivers init lib Module.symvers scripts tools
certs fs Kconfig Makefile net security usr

/lib/modules/5.8.16-2-MANJARO/build:
vmlinux

What’s the output of mhwd-kernel -li?

The output for ls /lib/modules/*/build just showed the above.

The output for mhwd-kernel -li: 5.8.16-2-MANJARO (linux58)
The following kernels are installed in your system:

  • linux58

You did reboot after installing the headers?

Yes. I did.

Please run

sudo pacman -Fy
pacman -F /usr/lib/modules/5.8.0-1-MANJARO/build/
pacman -F /usr/lib/modules/5.8.16-2-MANJARO/build/

and post the output.

It says failed to synchronize databases. Not sure why.

Well that’s a problem. Does sudo pacman -Syu work?

Nope. Still says the same.

What does it say exactly?

:: Synchronizing package databases…
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to update multilib (unable to lock database)
error: failed to synchronize all databases