WiFi randomly fails, details inside

I’m running Manjaro with LXQt on an HP laptop, model 14-fq0013dx. At first my WiFi didn’t work at all, but I was able to get it working after installing the package rtl8821ce-dkms-git from AUR through pamac. But now the WiFi will fail seemingly at random. It doesn’t fail so often that I can’t use the laptop, but if I’m streaming over Zoom for a long period of time it tends to interrupt me.

Here is the output of inxi -Fxza --no-host:

System:    Kernel: 5.7.14-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.7-x86_64 root=UUID=b7150d35-3223-47db-8b79-9c021a5d9b10 rw quiet 
           udev.log_priority=3 acpi_backlight=vendor 
           Desktop: LXQt 0.15.1 tk: Qt 5.15.0 info: lxqt-panel wm: Openbox 3.6.1 dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: HP product: HP Laptop 14-fq0xxx v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: HP model: 87B7 v: 28.12 serial: <filter> UEFI: AMI v: F.01 date: 04/23/2020 
Battery:   ID-1: BAT0 charge: 30.3 Wh condition: 41.0/41.0 Wh (100%) volts: 12.0/11.6 model: Hewlett-Packard Primary 
           type: Li-ion serial: N/A status: Discharging cycles: 369 
CPU:       Topology: Dual Core model: AMD Athlon Silver 3050U with Radeon Graphics bits: 64 type: MCP arch: Zen+ 
           family: 17 (23) model-id: 18 (24) stepping: 1 microcode: 8108109 L2 cache: 1024 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 9187 
           Speed: 1222 MHz min/max: 1400/2300 MHz boost: enabled Core speeds (MHz): 1: 1219 2: 1320 
           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: Advanced Micro Devices [AMD/ATI] Picasso vendor: Hewlett-Packard driver: amdgpu v: kernel bus ID: 03:00.0 
           chip ID: 1002:15d8 
           Device-2: Chicony type: USB driver: uvcvideo bus ID: 1-5.2:4 chip ID: 04f2:b62a serial: <filter> 
           Display: x11 server: X.org 1.20.8 compositor: compton driver: amdgpu,ati unloaded: modesetting 
           alternate: fbdev,vesa resolution: <xdpyinfo missing> 
           Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] 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: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Hewlett-Packard 
           driver: N/A alternate: snd_pci_acp3x bus ID: 03:00.5 chip ID: 1022:15e2 
           Device-3: Advanced Micro Devices [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.7.14-1-MANJARO 
Network:   Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: rtl8821ce v: N/A 
           modules: 8821ce port: f000 bus ID: 01:00.0 chip ID: 10ec:c821 
           IF: wlo1 state: up mac: <filter> 
Drives:    Local Storage: total: 119.24 GiB used: 49.78 GiB (41.7%) 
           SMART Message: Required tool smartctl not installed. Check --recommends 
           ID-1: /dev/sda model: SSSTC CV8-8E128-HP size: 119.24 GiB block size: physical: 4096 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: V881 scheme: GPT 
Partition: ID-1: / raw size: 79.32 GiB size: 77.57 GiB (97.80%) used: 49.72 GiB (64.1%) fs: ext4 dev: /dev/sda5 
Swap:      Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda6 
Sensors:   System Temperatures: cpu: 40.9 C mobo: N/A gpu: amdgpu temp: 40 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 175 Uptime: 2h 04m Memory: 3.30 GiB used: 2.03 GiB (61.7%) Init: systemd v: 245 Compilers: gcc: 10.1.0 
           clang: 10.0.1 Packages: pacman: 1277 lib: 318 Shell: Zsh v: 5.8 running in: qterminal inxi: 3.1.05 

Now today I had two issues. The first was at 12:10pm and the second was at 12:42pm. Here is the output of journalctl -b -1 -p err for those times:

12:10pm

Aug 19 12:10:30 wpa_supplicant[577]: ioctl[SIOCGIWMODE]: No such device
Aug 19 12:10:30 wpa_supplicant[577]: ioctl[SIOCSIWAP]: No such device
Aug 19 12:10:30 wpa_supplicant[577]: ioctl[SIOCSIWESSID]: No such device
Aug 19 12:10:30 wpa_supplicant[577]: Could not read interface wlo1 flags: No such device
Aug 19 12:10:31 wpa_supplicant[577]: ioctl[SIOCSIWAP]: Operation not permitted
Aug 19 12:10:31 wpa_supplicant[577]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Aug 19 12:10:31 wpa_supplicant[577]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Aug 19 12:10:46 wpa_supplicant[577]: ioctl[SIOCSIWSCAN]: Operation not permitted
Aug 19 12:11:07 wpa_supplicant[577]: ioctl[SIOCGIWMODE]: No such device
Aug 19 12:11:07 wpa_supplicant[577]: ioctl[SIOCSIWAP]: No such device
Aug 19 12:11:07 wpa_supplicant[577]: ioctl[SIOCSIWESSID]: No such device
Aug 19 12:11:07 wpa_supplicant[577]: Could not read interface wlo1 flags: No such device
Aug 19 12:11:08 wpa_supplicant[577]: ioctl[SIOCSIWAP]: Operation not permitted
Aug 19 12:11:08 wpa_supplicant[577]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Aug 19 12:11:08 wpa_supplicant[577]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Aug 19 12:11:18 wpa_supplicant[577]: ioctl[SIOCSIWSCAN]: Operation not permitted
Aug 19 12:11:29 wpa_supplicant[577]: Failed to add supported operating classes IE
Aug 19 12:11:30 wpa_supplicant[577]: bgscan simple: Failed to enable signal strength monitoring

When this happened I ran a script I prepared based on suggestions I’d seen elsewhere:

#!/bin/zsh
modprobe -r 8821ce; modprobe 8821ce

The problem was quickly solved. I don’t know if the script helped or not.

12:42

Aug 19 12:42:49 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfc8e800 flags=0x0000]
Aug 19 12:42:49 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfc8e900 flags=0x0000]
Aug 19 12:42:49 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfc8e880 flags=0x0000]
Aug 19 12:42:49 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfc8e830 flags=0x0000]
Aug 19 12:44:06 wpa_supplicant[577]: ioctl[SIOCSIWPMKSA]: No such device

The last line was repeated many times. This time I tried my script again but it apparently didn’t work, and I ended up rebooting.

This all happened while I was on my university’s WiFi. I’m now back at my apartment and I’ve had no WiFi issues yet. I have had issues here in the past though. Finally, here is the entire output of journalctl -b -p err:

-- Logs begin at Sun 2020-08-09 13:27:53 CDT, end at Wed 2020-08-19 15:18:11 CDT. --
Aug 19 12:45:54 kernel: pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter.
Aug 19 12:45:55 kernel: sp5100-tco sp5100-tco: Watchdog hardware is disabled
Aug 19 12:45:56 kernel: kvm: disabled by bios
Aug 19 12:45:56 kernel: kvm: disabled by bios
Aug 19 12:45:56 kernel: snd_pci_acp3x 0000:03:00.5: Invalid ACP audio mode : 1
Aug 19 12:46:05 lightdm[991]: gkr-pam: unable to locate daemon control file
Aug 19 12:46:24 wpa_supplicant[565]: bgscan simple: Failed to enable signal strength monitoring
Aug 19 12:46:25 ntpd[1718]: bind(21) AF_INET6 fe80::e797:c001:bafe:1c12%2#123 flags 0x11 failed: Cannot assign requested address
Aug 19 12:46:25 ntpd[1718]: unable to create socket on wlo1 (5) for fe80::e797:c001:bafe:1c12%2#123
Aug 19 14:30:22 wpa_supplicant[565]: bgscan simple: Failed to enable signal strength monitoring
Aug 19 14:30:22 ntpd[3576]: bind(21) AF_INET6 fe80::f24f:2cd9:3fea:bbe6%2#123 flags 0x11 failed: Cannot assign requested address
Aug 19 14:30:22 ntpd[3576]: unable to create socket on wlo1 (5) for fe80::f24f:2cd9:3fea:bbe6%2#123

I have the same wifi nic, I’m just curious now, does your wifi also fail to connect when waking the laptop from sleep?

You can try doing a sleep hook if that happens too

And regarding these random disconnects, it might be your power management, is this happening when on battery mode?

I haven’t had issues when waking from sleep. The two times this happened today were well after I woke up my laptop. And I woke up my laptop just now and see no signs of trouble.

I don’t know if it’s related to power. I usually have my laptop on battery anyway, whether I’m at home or not. I guess I can keep it plugged in as much as possible and note if it happens again.

Try to plug it in and see if this happens, if so, then it’s a power management issue

It happened again today. Everything was very similar to before. I was in the same place, on the same network, doing the same thing (Zoom).

Aug 21 12:27:44 wpa_supplicant[565]: bgscan simple: Failed to enable signal strength monitoring
Aug 21 12:27:44 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfd90000 flags=0x0000]
Aug 21 12:27:44 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfd90200 flags=0x0000]
Aug 21 12:27:44 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfd90180 flags=0x0000]
Aug 21 12:27:44 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfd90100 flags=0x0000]
Aug 21 12:27:44 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfd90030 flags=0x0000]
Aug 21 12:27:44 kernel: rtl8821ce 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0009 address=0xdfd90080 flags=0x0000]

Before, my laptop was unplugged running on battery power. This time I had been keeping it plugged in all the time (except to transport it in sleep mode), and it was plugged in when the problem arose. So I don’t think it’s a power issue.

I’m going to start testing Zoom to see if it’s related. I notice that I’ve lost my WiFi roughly 30 minutes after starting the Zoom call each time.

Still having this issue. Now I doubt it’s related to Zoom. I recently lost my WiFi again and I’m going to try keeping it like this in case anyone wants me to try something. I don’t know how to fix it without rebooting, so in the meantime I have to share my phone’s Internet connection via USB.
My kernel right now is 5.7.17-2-MANJARO.