You are not logged in.

#1 2024-01-21 21:23:34

TNilCode
Member
Registered: 2022-12-31
Posts: 5

Wi-Fi Stability Issues on HP Computers with NetworkManager

Hello!
I am experiencing a peculiar issue with Wi-Fi stability on multiple HP computers running Arch Linux. The same issue does not occur on my Windows partition, nor does it manifest on Dell computers under similar configurations. I am running a dual boot of arch and windows.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Symptoms:
- The Wi-Fi connection is unstable, randomly dropping out.
- Wi-Fi jitter is consistently over 40 ms.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Steps Taken:
- I've replicated this issue on multiple HP laptops.
- The issue happens on all Linux distros but I only care about making it work on Arch Linux; it does not occur in Windows on the same machines.
- I've tested the same setup on Dell computers, where the issue is absent.
- I've tried various steps from installing the rtw89 repository to disabling power management but to no avail, this is my 6th reinstall, a fresh

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is my journalctl:
http://0x0.st/H0Cx.bin

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Technical Details:


Running this:

lspci -v | grep -i network

gives me:

0000:3a:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852AE 802.11ax PCIe Wireless Network Adapter
        Subsystem: Hewlett-Packard Company RTL8852AE 802.11ax PCIe Wireless Network Adapter 

Running this:

iwconfig

gives me:

wlan0     IEEE 802.11  ESSID:"Swift"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 94:4E:5B:22:5D:34   
          Bit Rate=131.6 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=65/70  Signal level=-45 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:8   Missed beacon:0

Running this:

sudo dmesg | grep -i network

gives me:

[0.939993] drop_monitor: Initializing network drop monitor service

Running this:

ip link

gives me:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp59s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 6c:02:e0:4b:60:fe brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether ac:50:de:49:36:13 brd ff:ff:ff:ff:ff:ff

Running this:

ip addr

gives me: 

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: enp59s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 6c:02:e0:4b:60:fe brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ac:50:de:49:36:13 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.32/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
       valid_lft 3463sec preferred_lft 3463sec
    inet6 fe80::43eb:ad1d:8c61:411d/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

Running this:

neofetch

gives me:

                   -`                    tnil@i-use-arch-btw 
                  .o+`                   ------------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: HP ENVY Desktop TE02-0xxx 
               `+oooooo:                 Kernel: 6.7.0-arch3-1 
               -+oooooo+:                Uptime: 2 hours, 49 mins 
             `/:-:++oooo+:               Packages: 711 (pacman) 
            `/++++/+++++++:              Shell: bash 5.2.21 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           DE: Plasma 5.27.10 
         ./ooosssso++osssssso+`          WM: kwin 
        .oossssso-````/ossssss+`         Theme: [Plasma], Breeze [GTK2/3] 
       -osssssso.      :ssssssso.        Icons: [Plasma], candy-icons [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: konsole 
     /ossssssss/        +ssssooo/-       CPU: 12th Gen Intel i9-12900 (24) @ 5.000GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: NVIDIA GeForce RTX 3070 Lite Hash Rate 
  `+sso+:-`                 `.-/+oso:    GPU: Intel AlderLake-S GT1 
 `++:.                           `-/+/   Memory: 3949MiB / 15678MiB 
 .`                                 `/

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I would appreciate any help I could get, this issue has been going on for months, and honestly, using windows on my main pc after being spoiled to arch on my dell laptop is painful. Thank again for reading this and helping me out :D

Last edited by TNilCode (2024-01-21 21:34:10)

Offline

#2 2024-01-21 21:50:12

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wi-Fi Stability Issues on HP Computers with NetworkManager

TNilCode wrote:

- I've tried various steps from installing the rtw89 repository to disabling power management but to no avail

How exactly did you disable the power management?

Did you try setting the disable_ps_mode to "Y" for the rtw89_core kernel module?


Jin, Jîyan, Azadî

Offline

#3 2024-01-21 21:57:24

TNilCode
Member
Registered: 2022-12-31
Posts: 5

Re: Wi-Fi Stability Issues on HP Computers with NetworkManager

I created a systemd service, here are the commands I ran:
First I created my own service

sudo nano /etc/systemd/system/wifi-power-management.service

Then I added this to that file:

[Unit]
Description=Disable power management for wifi

[Service]
Type=oneshot
ExecStart=/sbin/iwconfig wlan0 power off

[Install]
WantedBy=multi-user.target

Then I just enabled it by running these and rebooting my computer:

sudo systemctl enable wifi-power-management.service
sudo systemctl start wifi-power-management.service

Offline

#4 2024-01-22 06:49:11

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wi-Fi Stability Issues on HP Computers with NetworkManager

Try setting the disable_ps_mode option for the rtw89_core module to "Y".

https://wiki.archlinux.org/title/Kernel … le_options


Jin, Jîyan, Azadî

Offline

#5 2024-01-22 08:45:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,037

Re: Wi-Fi Stability Issues on HP Computers with NetworkManager

I am running a dual boot of arch and windows.

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Disable https://wiki.archlinux.org/title/Networ … domization

Jan 21 14:35:51 i-use-arch-btw NetworkManager[697]: <warn>  [1705869351.7734] device (wlan0): no secrets: No agents were available for this request.
Jan 21 14:35:51 i-use-arch-btw NetworkManager[697]: <info>  [1705869351.7734] device (wlan0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed')
Jan 21 14:35:51 i-use-arch-btw NetworkManager[697]: <info>  [1705869351.7735] manager: NetworkManager state is now DISCONNECTED
…
Jan 21 14:36:01 i-use-arch-btw systemd[1]: Stopped User Runtime Directory /run/user/969.
Jan 21 14:36:02 i-use-arch-btw systemd[1]: Removed slice User Slice of UID 969.
Jan 21 14:36:02 i-use-arch-btw systemd[1]: user-969.slice: Consumed 17.884s CPU time.
Jan 21 14:36:02 i-use-arch-btw NetworkManager[697]: <info>  [1705869362.8669] audit: op="statistics" interface="wlan0" ifindex=3 args="2000" pid=1183 uid=1000 result="success"
Jan 21 14:36:02 i-use-arch-btw plasmashell[1183]: trying to show an empty dialog
…
Jan 21 14:36:10 i-use-arch-btw kernel: rtw89_8852ae 0000:3a:00.0: timed out to flush queues
Jan 21 14:36:10 i-use-arch-btw kernel: rtw89_8852ae 0000:3a:00.0: timed out to flush queues
Jan 21 14:36:11 i-use-arch-btw wpa_supplicant[779]: wlan0: CTRL-EVENT-DISCONNECTED bssid=94:4e:5b:22:5d:35 reason=4 locally_generated=1

These look login related, in doubt see https://wiki.archlinux.org/title/Networ … et_on_boot

Jan 21 14:37:37 i-use-arch-btw kernel: wlan0: deauthenticated from 94:4e:5b:22:5d:34 (Reason: 1=UNSPECIFIED)
Jan 21 14:37:37 i-use-arch-btw wpa_supplicant[779]: wlan0: CTRL-EVENT-DISCONNECTED bssid=94:4e:5b:22:5d:34 reason=1
…
Jan 21 14:58:27 i-use-arch-btw kernel: wlan0: deauthenticated from 94:4e:5b:22:5d:35 (Reason: 4=DISASSOC_DUE_TO_INACTIVITY)
Jan 21 14:58:27 i-use-arch-btw kernel: rtw89_8852ae 0000:3a:00.0: timed out to flush queues
Jan 21 14:58:27 i-use-arch-btw kernel: rtw89_8852ae 0000:3a:00.0: timed out to flush queues
Jan 21 14:58:28 i-use-arch-btw wpa_supplicant[779]: wlan0: CTRL-EVENT-DISCONNECTED bssid=94:4e:5b:22:5d:35 reason=4
Jan 21 14:58:28 i-use-arch-btw wpa_supplicant[779]: BSSID 94:4e:5b:22:5d:35 ignore list count incremented to 2, ignoring for 10 seconds
Jan 21 14:58:28 i-use-arch-btw wpa_supplicant[779]: MBO: Disable MBO/OCE due to misbehaving AP not having enabled PMF

Those are the suspicious ones.

If it's neither ps_mode nor windows, try to throw a life-line and see whether the connection drops or if you keep a "ping google.com" process running

Offline

Board footer

Powered by FluxBB