Activation of network connection failed some time after launch

Hello, I recently bought a laptop and ran into problems with wifi , I only use manjaro, after installation, I had a “no wifi adapter found” error. I fixed it by running the following commands:

pamac install linux61-headers
pamac build rtw89-dkms-git

Wifi worked, but I ran into a problem that after a while (on average 1-3 hours), the wifi adapter stops finding networks, the error “Activation of network connection failed” pops up, there is no “wifi adapter not found” error, but there are no networks available to connect. This is solved by restarting the computer, but it’s quite annoying to restart the computer every couple of hours

here is some info about system:

$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b852
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller 980
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev c2)
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
03:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
03:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
03:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
03:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
03:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
04:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
04:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
$ mhwd-kernel -li
Currently running: 6.1.44-1-MANJARO (linux61)
The following kernels are installed in your system:
   * linux61
$ inxi -Fza                                                      
System:
  Kernel: 6.1.44-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: hpet available: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=6785e983-18e7-427b-bc0e-dd2b1e734bba rw quiet splash apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: GNOME v: 44.3 tk: GTK v: 3.24.38 wm: gnome-shell dm: GDM v: 44.1
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82SG v: IdeaPad 5 15ABA7
    serial: <superuser required> Chassis: type: 10 v: IdeaPad 5 15ABA7
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
    UEFI: LENOVO v: KACN19WW date: 10/28/2022
Battery:
  ID-1: BAT0 charge: 57.8 Wh (97.0%) condition: 59.6/57.0 Wh (104.6%)
    power: 7.5 W volts: 13.2 min: 11.5 model: SMP L19M3PF6 type: Li-poly
    serial: <filter> status: charging cycles: 6
CPU:
  Info: model: AMD Ryzen 5 5625U 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: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 2397 high: 3612 min/max: 1600/4387 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2843 2: 2193
    3: 3472 4: 1600 5: 3612 6: 2674 7: 2046 8: 1600 9: 3193 10: 1600 11: 2333
    12: 1600 bogomips: 55122
  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 Barcelo vendor: Lenovo 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: eDP-1
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 03:00.0 chip-ID: 1002:15e7
    class-ID: 0300 temp: 46.0 C
  Device-2: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3:2 chip-ID: 04f2:b71f
    class-ID: 0e02 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.2
    compositor: gnome-shell driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: BOE Display 0x08b9 built: 2019 res: 1920x1080
    dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 23.1.5 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.7 DRM 3.49 6.1.44-1-MANJARO) direct-render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo
    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: 03:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo 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: 03:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo 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: 03:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.1.44-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.77 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 vendor: Lenovo driver: rtw89_8852be v: N/A
    modules: rtw_8852be pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000
    bus-ID: 01:00.0 chip-ID: 10ec:b852 class-ID: 0280
  IF: wlp1s0 state: up mac: <filter>
Bluetooth:
  Device-1: 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:2 chip-ID: 0bda:4853
    class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 10.03 GiB (2.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZALQ512HBLU-00BL2 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: 7L2QFXM7 temp: 27.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
    used: 10.02 GiB (2.1%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 6.1 MiB (2.0%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 56.5 C mobo: N/A gpu: amdgpu temp: 47.0 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 325 Uptime: 2m wakeups: 1 Memory: total: 16 GiB note: est.
  available: 13.5 GiB used: 2.17 GiB (16.1%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 1153 libs: 317 tools: gnome-software,pamac
  pm: flatpak pkgs: 0 Shell: Zsh v: 5.9 running-in: gnome-terminal
  inxi: 3.3.29
$ inxi -N
Network:
  Device-1: Realtek driver: rtw89_8852be

Really need your help guys!

In there anything in journalctl or other logs from around the time of disconnection?

Does unloading and reloading the module help?
What about restarting NetworkManager service?

sudo modprobe -r rtw89_8852be
sudo modprobe rtw89_8852be
systemctl restart NetworkManager

And what about the network itself?
Does this happen with other devices or systems on this network?
Does this system behave the same on other networks?

Sorry for the wait. I wasn’t at home. I will do what you said when this error occurs again. As far as i remember, i tried systemctl restart NetworkManager and it didn’t help. When i enter sudo modprobe -r rtw89_8852be it throws an error : modprobe: FATAL: Module rtw89_8852be not found.
The laptop is connected to the home wifi, only the laptop has this error.
I have not tried to connect to other networks, but I think this will not affect the result.
I’m sorry if I’m doing something wrong, I’m very new to Linux.

again this error
here is the logs from journalctl:

Aug 28 21:12:06 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: FW does not process h2c registers
Aug 28 21:12:06 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: read rf busy swsi
Aug 28 21:12:08 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: write rf busy swsi

I tried systemctl restart NetworkManager and logs are:

Aug 28 21:13:36 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: mac init fail, ret:-110
Aug 28 21:13:36 konstantin-82sg wpa_supplicant[649]: WEXT: Could not set interface 'wlp1s0' UP
Aug 28 21:13:36 konstantin-82sg NetworkManager[15021]: <error> [1693246416.8334] device (wlp1s0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn'>
Aug 28 21:13:36 konstantin-82sg wpa_supplicant[649]: wlp1s0: Failed to initialize driver interface

more logs if needed:

Aug 28 21:14:46 konstantin-82sg wpa_supplicant[649]: nl80211: deinit ifname=wlp1s0 disabled_11b_rates=0
Aug 28 21:14:46 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:14:46 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: mac init fail, ret:-110
Aug 28 21:14:46 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:14:46 konstantin-82sg wpa_supplicant[649]: Could not set interface wlp1s0 flags (UP): Connection timed out
Aug 28 21:14:46 konstantin-82sg wpa_supplicant[649]: WEXT: Could not set interface 'wlp1s0' UP
Aug 28 21:14:46 konstantin-82sg wpa_supplicant[649]: wlp1s0: Failed to initialize driver interface
Aug 28 21:14:46 konstantin-82sg wpa_supplicant[649]: wlp1s0: CTRL-EVENT-DSCP-POLICY clear_all
Aug 28 21:14:46 konstantin-82sg NetworkManager[15632]: <error> [1693246486.6610] device (wlp1s0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn'>
Aug 28 21:14:46 konstantin-82sg NetworkManager[15632]: <info>  [1693246486.6611] manager: startup complete
Aug 28 21:14:46 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:14:46 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: mac init fail, ret:-110
Aug 28 21:14:46 konstantin-82sg systemd[1]: Finished Network Manager Wait Online.
Aug 28 21:14:55 konstantin-82sg systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Aug 28 21:14:56 konstantin-82sg NetworkManager[15632]: <warn>  [1693246496.6697] device (wlp1s0): re-acquiring supplicant interface (#1).
Aug 28 21:14:56 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:14:56 konstantin-82sg wpa_supplicant[649]: Could not set interface wlp1s0 flags (UP): Connection timed out
Aug 28 21:14:56 konstantin-82sg wpa_supplicant[649]: nl80211: Could not set interface 'wlp1s0' UP
Aug 28 21:14:56 konstantin-82sg wpa_supplicant[649]: nl80211: deinit ifname=wlp1s0 disabled_11b_rates=0
Aug 28 21:14:56 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:14:56 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: mac init fail, ret:-110
Aug 28 21:14:56 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:14:56 konstantin-82sg wpa_supplicant[649]: Could not set interface wlp1s0 flags (UP): Connection timed out
Aug 28 21:14:56 konstantin-82sg wpa_supplicant[649]: WEXT: Could not set interface 'wlp1s0' UP
Aug 28 21:14:56 konstantin-82sg wpa_supplicant[649]: wlp1s0: Failed to initialize driver interface
Aug 28 21:14:56 konstantin-82sg wpa_supplicant[649]: wlp1s0: CTRL-EVENT-DSCP-POLICY clear_all
Aug 28 21:14:56 konstantin-82sg NetworkManager[15632]: <error> [1693246496.9545] device (wlp1s0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn'>
Aug 28 21:14:56 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:14:56 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: mac init fail, ret:-110
Aug 28 21:15:07 konstantin-82sg NetworkManager[15632]: <warn>  [1693246507.6696] device (wlp1s0): re-acquiring supplicant interface (#2).
Aug 28 21:15:07 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:15:07 konstantin-82sg wpa_supplicant[649]: Could not set interface wlp1s0 flags (UP): Connection timed out
Aug 28 21:15:07 konstantin-82sg wpa_supplicant[649]: nl80211: Could not set interface 'wlp1s0' UP
Aug 28 21:15:07 konstantin-82sg wpa_supplicant[649]: nl80211: deinit ifname=wlp1s0 disabled_11b_rates=0
Aug 28 21:15:07 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:15:07 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: mac init fail, ret:-110
Aug 28 21:15:07 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:15:07 konstantin-82sg wpa_supplicant[649]: Could not set interface wlp1s0 flags (UP): Connection timed out
Aug 28 21:15:07 konstantin-82sg wpa_supplicant[649]: WEXT: Could not set interface 'wlp1s0' UP
Aug 28 21:15:07 konstantin-82sg wpa_supplicant[649]: wlp1s0: Failed to initialize driver interface
Aug 28 21:15:07 konstantin-82sg wpa_supplicant[649]: wlp1s0: CTRL-EVENT-DSCP-POLICY clear_all
Aug 28 21:15:07 konstantin-82sg NetworkManager[15632]: <error> [1693246507.9538] device (wlp1s0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn'>
Aug 28 21:15:07 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10
Aug 28 21:15:07 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: mac init fail, ret:-110
Aug 28 21:15:14 konstantin-82sg systemd[1]: fprintd.service: Deactivated successfully.
Aug 28 21:15:16 konstantin-82sg systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Aug 28 21:15:18 konstantin-82sg NetworkManager[15632]: <warn>  [1693246518.6684] device (wlp1s0): re-acquiring supplicant interface (#3).
Aug 28 21:15:18 konstantin-82sg kernel: rtw89_8852be 0000:01:00.0: xtal si not ready(W): offset=90 val=10 mask=10

sudo modprobe -r rtw89_8852be gives an error. I wrote in the message above.