Manjaro lose visible WIFI networks

Hello,

I had a problem with Manjaro does not see WIFI Networks but it was solved here. Now, the problem is that when I work with WIFI for ~ 10 min or suspend the system and wake up, Manjaro cannot detect visible WIFI networks. The WIFI stays on but no visible network …

The output of

inxi -Naxz

looks the same, before when the WIFI is connected:

   ~  inxi -Naxz                                                       ✔ 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000
    bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  Device-2: Realtek driver: rtw89_8852be v: N/A modules: wl,rtw_8852be pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 02:00.0
    chip-ID: 10ec:b852 class-ID: 0280

and after suspend, when WIFI cannot detect available networks:

 ~  inxi -Naxz                                                       ✔ 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000
    bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  Device-2: Realtek driver: rtw89_8852be v: N/A modules: wl,rtw_8852be pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: e0

Check if one of these causes might be the reason:

https://wiki.archlinux.org/title/Network_configuration/Wireless#Random_disconnections
https://wiki.archlinux.org/title/Network_configuration/Wireless#Wi-Fi_networks_invisible_because_of_incorrect_regulatory_domain

I also would try to run a fresh kernel, such as linux 6.4 or 6.5 as they could have better wifi hardware support integrated.

P.S.: It would always be better to provide full output of

inxi -Fza

to avoid that someone who wants to help needs to speculate how your environment is specified.

Yes it may be the issue is this : Network configuration/Wireless - ArchWiki

because when I run

 journalctl | grep deauthenticating 

I get

Sep 02 18:32:48 ayoub-defaultstring kernel: wlp2s0: deauthenticating from 3e:c7:3b:95:5a:b1 by local choice (Reason: 3=DEAUTH_LEAVING)

and when I run

journalctl -f 

I get

Sep 02 18:36:35 ayoub-defaultstring kernel: rtw89_8852be 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000a address=0x0 flags=0x0020]

But I could not put the power_save = off, there is no option in the BIOS and no config file in

/etc/modprobe.d/

Here is the output inxi -Fza

  ~  inxi -Fza                                                                                                                                          INT ✘  1m 18s  
System:
  Kernel: 6.4.12-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: hpet available: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.4-x86_64
    root=UUID=eaefa9ba-90a0-43fe-ae00-ddea55f7c69c rw quiet splash
    udev.log_priority=3
  Desktop: GNOME v: 44.4 tk: GTK v: 3.24.38 wm: gnome-shell dm: GDM v: 44.1
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Mini-pc Mobo: N/A model: N/A v: V00 serial: <superuser required>
    UEFI: American Megatrends v: 1.14_P4C4M43_EC_0_0_59_AMI date: 01/06/2023
CPU:
  Info: model: AMD Ryzen 7 5800U with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
    process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
    microcode: 0xA50000C
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1598 high: 1900 min/max: 1600/4505 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1600 2: 1600
    3: 1600 4: 1600 5: 1600 6: 1515 7: 1387 8: 1900 9: 1342 10: 1432 11: 1600
    12: 1900 13: 1397 14: 1900 15: 1600 16: 1600 bogomips: 60708
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
    built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s ports: active: HDMI-A-1 empty: DP-1,DP-2,DP-3
    bus-ID: 04:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 44.0 C
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.0
    compositor: gnome-shell driver: X: loaded: radeon unloaded: modesetting
    alternate: fbdev,vesa gpu: amdgpu display-ID: 0
  Monitor-1: HDMI-A-1 model: Dell S2419H serial: <filter> built: 2020
    res: 1920x1080 dpi: 93 gamma: 1.2 size: 527x296mm (20.75x11.65")
    diag: 604mm (23.8") ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 23.1.6-2 renderer: AMD Radeon Graphics (renoir
    LLVM 15.0.7 DRM 3.52 6.4.12-1-MANJARO) direct-render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x,
    snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir,
    snd_sof_amd_rembrandt pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max:
    gen: 4 speed: 16 GT/s bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Realtek
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  API: ALSA v: k6.4.12-1-MANJARO status: kernel-api tools: N/A
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.78 status: off tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000
    bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  Device-2: Realtek driver: rtw89_8852be v: kernel modules: wl pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:b852
    class-ID: 0280
  IF: wlp2s0 state: down mac: <filter>
  IF-ID-1: enp4s0f3u2 state: unknown speed: -1 duplex: half mac: <filter>
Bluetooth:
  Device-1: Xiaomi Mi/Redmi series (RNDIS) driver: rndis_host v: kernel
    type: USB rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-2:3
    chip-ID: 2717:ff80 class-ID: 0a00 serial: <filter>
  Report: This feature requires one of these tools: hciconfig/bt-adapter
  Device-2: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-3:3 chip-ID: 0bda:b85b
    class-ID: e001 serial: <filter>
  Report: ID: hci0 rfk-id: 2 state: up address: N/A
Drives:
  Local Storage: total: 476.94 GiB used: 10.66 GiB (2.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 model: NS512GSSD530 size: 476.94 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
    tech: SSD serial: <filter> fw-rev: V0816A0 temp: 49.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 294.65 GiB size: 288.96 GiB (98.07%)
    used: 10.62 GiB (3.7%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 48 MiB (50.0%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 49.9 C mobo: N/A gpu: amdgpu temp: 44.0 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 327 Uptime: 14m wakeups: 8 Memory: total: 16 GiB note: est.
  available: 15.03 GiB used: 1.98 GiB (13.1%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 909 libs: 286 tools: gnome-software,pamac
  Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.29

PS: I am trying a newer version of the kernel 6.14 but the problem persists …

Try to disable the power management of the nic, e.g. using tlpui, may help.

Basically I use this to disable power management on a lot of things. It covers a wide range of power managed hardware.

thank you for the suggestion, I tried Tlp-UI to disable WIFI_PWR_ON , but it does not solve the problem …

Did you restart the system after editing tlpui or alternatively(as root), tlp. conf?

Yes I did restart the system

The device is new, so did you try kernel 6.5? And did you install any driver from the AUR for it?

Yes I tried the kernel 6.5 and i installed the driver from AUR:

pamac build rtw89-dkms-git

update :

if I reload the driver by running

sudo modprobe -r rtw89_8852be 

then

sudo modprobe  rtw89_8852be 

The WiFi back again, but I have to do so every time I lose WiFi

Maybe an udev rule could help in your case.

I tried this one

ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlp2s0", RUN+="/bin/sh -c 'modprobe -r rtw89_8852be && modprobe  rtw89_8852be' "

but without success…

why did you installed the driver from aur? was it not present in kernel?
you can try these options:
sudo nano /etc/modprobe.d/50-rtw89.conf
add these options there:

options rtw89_pci disable_aspm_l1=y disable_aspm_l1ss=y disable_clkreq=y

save the file: ctrl+x, press ‘y’, then enter and run this:
sudo mkinitcpio -P
reboot and test

There is one “space” too much in your udev rule syntax.

I corrected the extra space but still not working …

I installed it from AUR since I was using the kernel 6.1

Now I am using the kernel 6.5 and I am using the driver that comes with this kernel, I have removed the one installed from AUR

I also tried the option you suggested but no change …

The solution (I’m not sure if we can call it so) that I am using now is:

First I created a shell script to reload the driver (called reload_driver.sh)

#!/bin/bash
modprobe -r rtw89_8852be
modprobe  rtw89_8852be

Then I created a Systemd Service to run the script:

sudo vim /etc/systemd/system/reload_driver.service

with this content

[Unit]
Description=Reload Driver after suspend

[Service]
ExecStart=/path/to/the/script/reload_driver.sh

[Install]
WantedBy=suspend.target

Then I enabled the systemd service

sudo systemctl enable reload_driver.service

That’s all! Like that I can get the WiFi working after suspend.
What do you think about this solution?

1 Like

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