Cannot Connect to Wifi or Wired Ethernet

After installing Manjaro on my laptop, I have been unable to access the Internet through either wired ethernet cable or through a wifi connection. Below is my system info; the formatting is bad because I am typing this on a phone. I hope it will be of relevance to the issue.

System: Kernal: 5.9.11-3-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 root=UUID=6ac59f7e-71fa-4695-b9a5-1c4e81272d2b rw quiet apparmor=1 security=apparmor udev.log_priority=3 Desktop: Xfce 4.14.3 tk: Gtk 3.24.23 info: xfce4-panel wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux Machine: Type: Laptop System: HP product: HP Laptop 15-da0xxx v: Type1ProductConfigId serial: <filter> Chassis: type: 10 serial <filter> Mobo: HP model: 84A6 v: 80.31 serial <filter> UEFI: Insyde v: F.07 date: 11/21/2018 Battery: ID-1: BAT1 charge: 34.4 Wh condition: 34.4/41.0 Wh (84%) volts: 12.9/11.4 model: Hewlett-Packard PABAS0241231 type: Li-ion serial <filter> status: Full Memory: RAM: total: 11.62 GiB used: 525.9 MiB (4.4%) RAM Report: permissions: Unable to run dmide ode. Root privileges required. CPU: Info: Dual Core model: Intel Core i3-8130U bits: 64 type: MT MCP arch: Kaby Lake family: 6 model-id: 8E (142) stepping: A (10) microcode: E0 L2 cache: 4096 KiB bogomips: 17605 Speed: 800 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 801 Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb erms est f16c flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp red_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tsc tsc_adjust tsc_deadline_timer vme x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported Type: l1tf mitigation: PTE Inversion Type: mds mitigation: Clear CPU buffers; SMT vulnerable Type: meltdown mitigation: PTI Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer and sanitization Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling Type: srbds mitigation: Microcode Type: tsx_async_abort status: Not affected Graphics: Device-1: Intel UHD Graphics 620 vendor: Hewlett-Packard driver: i915 v: kernal bus ID: 00:02.0 chip ID: 8086:5917 Device-2: Lite-On HP TrueVision HD Camera type: USB driver: uvcvideo bus ID: 1-5:3 chip ID: 04ca:7092 Display: x11 server: X.Org 1.20.10 driver: intel unloaded: modesetting alternate: fbdev,vesa display ID: :0.0 screens: 1 Screen-1: 0 s-res: 1366x768 hz: 60 dpi: 102 size: 340x190mm (13.4x7.5”) diag: 389mm (15.3”) OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.2.3 direct render: Yes Audio: Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernal alternate: snd_soc_skl bus ID: 00:1f.3 chip ID: 8086:9d71 Sound Server: ALSA v: k5.9.11-2-MANJARO Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169 v: kernal port: 4000 bus ID: 01:00.0 chip ID: 10ec:8168 IF: eno1 state: down mac: <filter> Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: N/A modules: rtw88_8821ce port: 3000 bus ID: 02:00.0 chip ID: 10ec:c821 WAN IP: No WAN IP found. Connected to web? SSL issues? Try enabling dig Drives: Local Storage: total: 931.51 GiB used: 175.99 GiB (18.9%) SMART Message: Required tool smartctl not installed. Check —recommends ID-1: /dev/sda vendor: Toshiba model: MQ04ABF100 size: 931.51 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 5409 rom serial: <filter> rev: 1C scheme: GBT Optical-1: /dev/sr0 vendor: hp model: DVDRW GUE1N rev: UE00 dev-links: cdrom Features: speed: 24 multisession: yes audio: yes dvd: yes re: cd-r,cd-rw,dvd-r,dvd-ram state: running RAID: Hardware-1: Intel 82801 Mobile SATA Controller [RAID Mode] driver: ahci v: 3.0 port: 5060 bus ID: 00:17.0 chip ID: 8086.282a rev: 21 Partition: ID-1: / raw size: 931.22 GiB size: 915.60 GiB (98.32%) used: 175.99 GiB (19.2%) fs: ext4 dev: /dev/sda2 label: N/A uuid: 6ac59f7e-71fa-4695-b9a5-1c4e81272d2b ID-2: /boot/efi raw size: 300.0 MiB size: 299.4 MiB (99.80%) used: 312 KiB (0.1%) fs: vfat dev: /dev/sda1 label: N/A uuid: 678D-B734 Swap: Alert: No Swap data was found. Unmounted: Message: No unmounted partitions found. USB: Hub: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 Device-1: 1-3:2 info: Pixart Imaging Optical Mouse type: Mouse driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s chip ID: 093a:2510 Device-2: 1-5:3 info: Lite-On HP TrueVision HD Camera type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s chip ID: 04ca:7092 Device-3: 1-6:4 info: Realtek Realtek Bluetooth 4.2 Adapter type: Bluetooth driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s chip ID: 0bda:b00a serial: <filter> Device-4: 1-7.5 info: Elan Micro Touchscreen type: HID driver: hid-multitouch,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s chip ID: 04f3:22c3 Hub:2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s chip ID: 1d6b:0003 Sensors: System Temperatures: cpu: 34.5 C mobo: 29.8 C Fan Speeds (RPM): N/A Info: Processes: 165 Uptime: 10m Init: systems v: 246 Compilers: gcc: N/A Packages: pacman: 1111 lib: 349 flatpak: 0 Shell: Bash v: 5.0.18 running in: xfce4-terminal inxi: 3.1.08

Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernal port: 4000 bus ID: 01:00.0
chip ID: 10ec:8168 IF: eno1 state: down mac: <filter>

Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: Hewlett-Packard driver: N/A modules: rtw88_8821ce port: 3000
bus ID: 02:00.0 chip ID: 10ec:c821
WAN IP: No WAN IP found. Connected to web? SSL issues? `

Are you dualbooting windows? If so disable fastboot in windows/uefi

Depending on what you want to get to work first do a web search for the device + driver + majaro / arch

I am not dualbooting with Windows; the machine shouldn’t have Windows installed on it.

Searching for the wifi driver turned up this page:

https://aur.archlinux.org/packages/rtl8821ce-dkms-git/

I am, however, unsure how to download and install it, especially given that I cannot access the Internet on my machine.

It is a dkms package, I’m not sure if that builds on Manjaro. Packages can be installed manually but there are dependencies to keep in mind.
I’ve added the driver / aur tag to the post

I’ve managed to achieve an ethernet connection. I’ve tried to build the dkms package with the following command:

pamac build rtl8821ce-dkms-git

However, I get the following error:

Unable to install module rtl8821ce/1.0.5.r116.g14b536f for kernel 5.9.11-3-MANJARO: Missing kernel headers.

I am not sure what is wrong because I seem to have the headers installed. Is there something I’m missing?

https://i.imgur.com/6xLO5Fy.png

Ah you seem to have 5.9.16-1 installed and pamac builds against 5.9.11-3.

I would update to a LTS or latest kernel (best to have both). Installing a new kernel is easy, use the : Manjaro Settings Manager - Manjaro or the terminal:
example, my installed kernels on a test virtual machine:

$ mhwd-kernel --listinstalled                                      ✔ 
Currently running: 5.10.13-1-MANJARO (linux510)
The following kernels are installed in your system:
   * linux510
   * linux54

The kernels I can install:

$ mhwd-kernel --list                                               ✔ 
available kernels:
   * linux414
   * linux419
   * linux44
   * linux49
   * linux510
   * linux511
   * linux54
   * linux59
   * linux54-rt
   * linux59-rt

Example install of a kernel and headers and the driver below (tried this in the VM and it builds succesfully with kernel 511. In your case I would install 5.10 since that will be the current stable kernel and 5.4 the latest LTS kernel, when both kernels work, remove the 59 version)

First make sure you are in sync:
$ pamac upgrade
install a kernel:
$ sudo mhwd-kernel --install linux510
install the headers:
$ pamac install linux510-headers
install the driver
$ pamac build rtl8821ce-dkms-git
If the last command complains about missing headers find those headers to and install them. In my test the installation of the headers triggerd the install of all the headers of all installed kernels, so your mileage may vary.

Played around a bit during the night after writing my last post. Went through some of the instructions in this thread, specifically I put in the following commands:

sudo pacman-mirrors -f 5 && sudo pacman -Syyu
sudo pacman -S $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')
pamac install bc dkms git base-devel

After that I tried to build it again. It didn’t work that night but after going to sleep and waking up again the wifi inxi -Fazy now gives the following:

Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: rtl8821ce v: N/A modules: rtw88_8821ce,8821ce port: 3000 bus ID: 02:00.0 chip ID: 10ec:c821 IF: wlo1 state: up mac: <filter>

I seem to still be running 5.9.16-1, but the wifi mostly works. The only noticeable issue seems to be that after closing my laptop lid, it will no longer detect wifi networks until a restart is performed.