DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

[BUG] Network Latency Spikes During Real-Time Applications

Open linuxmobile opened this issue 1 year ago • 20 comments

Compositor

  • [x] niri
  • [ ] Hyprland
  • [ ] Other (specify)

Description

Experiencing periodic network latency spikes (50-200ms) every few seconds that severely impact real-time applications like Xbox Cloud Gaming. These spikes occur consistently and are reproducible when the quickshell is running.

Testing Results:

  • Baseline (no shell): Stable 26-35ms latency, no spikes
  • With shell running: Regular spikes to 50-200ms every few seconds
  • Quickshell terminated: Spikes immediately disappear, latency returns to baseline

Impact:

  • Xbox Cloud Gaming: Periodic lag making games unplayable
  • Video conferencing: Audio/video interruptions
  • Online gaming: Connection instability

Network Environment:

  • NixOS with NetworkManager
  • RTL8822CE WiFi adapter (power save disabled)
  • Stable internet connection (confirmed via router/gateway ping tests)

Test Commands Used:

# Baseline test
ping -c 60 -i 1 8.8.8.8

# With shell running - shows periodic spikes
# Without shell - stable latency

Current Status: The shell appears to be making periodic network requests or triggering system activity that interferes with network timing. Looking for guidance on debugging what specific component might be causing these periodic network disruptions.

Steps to Reproduce

  1. Establish baseline network performance:

    # Test latency without quickshell running
    ping -c 60 -i 1 8.8.8.8
    # Should show stable ~30ms latency with minimal variation
    
  2. Launch DankMaterialShell:

    quickshell -c DankMaterialShell
    
  3. Monitor network latency with shell running:

    # In another terminal, test latency
    ping -c 60 -i 1 8.8.8.8
    # Should show periodic spikes to 50-200ms every few minutes
    
  4. Terminate quickshell and retest:

    # Kill quickshell process
    pkill quickshell
    
    # Test latency again
    ping -c 60 -i 1 8.8.8.8
    # Latency should return to stable baseline
    
  5. Optional: Monitor for longer periods:

    # Run extended test while shell is active
    ping -c 300 -i 1 8.8.8.8 | awk '/time=/ {gsub(/time=/, ""); gsub(/ms/, ""); if($7 > 50) print "Spike at packet " NR ": " $7 "ms"}'
    

Expected Result: Clear correlation between quickshell running and periodic latency spikes appearing/disappearing.

Actual Result: Reproducible latency spikes only when shell is active, affecting real-time applications.

linuxmobile avatar Sep 12 '25 02:09 linuxmobile

Which widgets do you have active on the TopBar ? I get an initial spike on startup when weather is fetching I presume but then none after.

The only thing that's making external requests is weather and location searching for choosing weather locations so you can start trying to disable that (maybe it's failing and retrying?)

Though weather updates once per 5 minutes (which maybe is too frequent), and 30 seconds on retries after failed requests so I don't think it's that frequent.

bbedward avatar Sep 12 '25 02:09 bbedward

oh you said every few minutes (not seconds), then my guess is weather probably yea. I'll check it out

bbedward avatar Sep 12 '25 02:09 bbedward

I reniced the curl commands to 19 and tweaked some other curl params for weather. See if that fixes it

bbedward avatar Sep 12 '25 02:09 bbedward

I reniced the curl commands to 19 and tweaked some other curl params for weather. See if that fixes it

Well, there are some things that don't make much sense. I have the weather widget disabled, and I disabled it from the code as well. Yet the spikes continue.

Let me update and check again, you can check closing ALL browser & network related stuff, do a ping, close the qs, do another ping.

EDIT:

QS running:

╭──╼ aesthetic on NixOS 25.11.0 ❄️
┆ ~
╰─> ❯  ps | where name =~ "quickshell"
┌─#─┬─pid──┬─ppid─┬──────name───────┬──status──┬──cpu──┬───mem────┬─virtual─┐
│ 0 │ 2147 │ 1469 │ .quickshell-wra │ Sleeping │ 11.24 │ 495.6 MB │  1.3 GB │
└───┴──────┴──────┴─────────────────┴──────────┴───────┴──────────┴─────────┘

╭──╼ aesthetic on NixOS 25.11.0 ❄️
┆ ~
╰─> ❯  ping -c 30 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=34.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=27.8 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=116 time=35.4 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=116 time=32.6 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=116 time=29.8 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=116 time=27.1 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=116 time=31.6 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=116 time=33.6 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=116 time=30.8 ms
########
########
#SPIKES#
# START#
########
64 bytes from 8.8.8.8: icmp_seq=10 ttl=116 time=46.2 ms
64 bytes from 8.8.8.8: icmp_seq=11 ttl=116 time=106 ms
64 bytes from 8.8.8.8: icmp_seq=12 ttl=116 time=129 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=116 time=49.9 ms
########
#SPIKES#
# END ##
########
64 bytes from 8.8.8.8: icmp_seq=14 ttl=116 time=27.5 ms
64 bytes from 8.8.8.8: icmp_seq=15 ttl=116 time=31.9 ms
64 bytes from 8.8.8.8: icmp_seq=16 ttl=116 time=32.4 ms
64 bytes from 8.8.8.8: icmp_seq=17 ttl=116 time=28.7 ms
64 bytes from 8.8.8.8: icmp_seq=18 ttl=116 time=33.5 ms
64 bytes from 8.8.8.8: icmp_seq=19 ttl=116 time=28.6 ms
64 bytes from 8.8.8.8: icmp_seq=20 ttl=116 time=29.5 ms
64 bytes from 8.8.8.8: icmp_seq=21 ttl=116 time=33.5 ms
64 bytes from 8.8.8.8: icmp_seq=22 ttl=116 time=29.0 ms
64 bytes from 8.8.8.8: icmp_seq=23 ttl=116 time=30.1 ms
64 bytes from 8.8.8.8: icmp_seq=24 ttl=116 time=33.9 ms
64 bytes from 8.8.8.8: icmp_seq=25 ttl=116 time=32.3 ms
64 bytes from 8.8.8.8: icmp_seq=26 ttl=116 time=29.1 ms
64 bytes from 8.8.8.8: icmp_seq=27 ttl=116 time=36.1 ms
64 bytes from 8.8.8.8: icmp_seq=28 ttl=116 time=29.1 ms
64 bytes from 8.8.8.8: icmp_seq=29 ttl=116 time=33.5 ms
64 bytes from 8.8.8.8: icmp_seq=30 ttl=116 time=28.8 ms

--- 8.8.8.8 ping statistics ---
30 packets transmitted, 30 received, 0% packet loss, time 29053ms
rtt min/avg/max/mdev = 27.131/38.047/129.049/21.943 ms

QS killed:

╭──╼ aesthetic on NixOS 25.11.0 ❄️
┆ ~
╰─> ❯  ps | where name =~ "quickshell"
╭────────────╮
│ empty list │
╰────────────╯

╭──╼ aesthetic on NixOS 25.11.0 ❄️
┆ ~
╰─> ❯  ping -c 30 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=31.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=29.1 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=116 time=29.6 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=116 time=33.7 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=116 time=28.3 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=116 time=28.4 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=116 time=36.5 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=116 time=27.0 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=116 time=28.9 ms
64 bytes from 8.8.8.8: icmp_seq=10 ttl=116 time=30.2 ms
64 bytes from 8.8.8.8: icmp_seq=11 ttl=116 time=31.9 ms
64 bytes from 8.8.8.8: icmp_seq=12 ttl=116 time=30.2 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=116 time=37.6 ms
64 bytes from 8.8.8.8: icmp_seq=14 ttl=116 time=31.0 ms
64 bytes from 8.8.8.8: icmp_seq=15 ttl=116 time=32.6 ms
64 bytes from 8.8.8.8: icmp_seq=16 ttl=116 time=35.4 ms
64 bytes from 8.8.8.8: icmp_seq=17 ttl=116 time=27.9 ms
64 bytes from 8.8.8.8: icmp_seq=18 ttl=116 time=28.9 ms
64 bytes from 8.8.8.8: icmp_seq=19 ttl=116 time=34.1 ms
64 bytes from 8.8.8.8: icmp_seq=20 ttl=116 time=28.2 ms
64 bytes from 8.8.8.8: icmp_seq=21 ttl=116 time=32.6 ms
64 bytes from 8.8.8.8: icmp_seq=22 ttl=116 time=29.8 ms
64 bytes from 8.8.8.8: icmp_seq=23 ttl=116 time=28.1 ms
64 bytes from 8.8.8.8: icmp_seq=24 ttl=116 time=33.1 ms
64 bytes from 8.8.8.8: icmp_seq=25 ttl=116 time=29.4 ms
64 bytes from 8.8.8.8: icmp_seq=26 ttl=116 time=29.9 ms
64 bytes from 8.8.8.8: icmp_seq=27 ttl=116 time=31.7 ms
64 bytes from 8.8.8.8: icmp_seq=28 ttl=116 time=28.4 ms
64 bytes from 8.8.8.8: icmp_seq=29 ttl=116 time=30.8 ms
64 bytes from 8.8.8.8: icmp_seq=30 ttl=116 time=34.8 ms

--- 8.8.8.8 ping statistics ---
30 packets transmitted, 30 received, 0% packet loss, time 29049ms
rtt min/avg/max/mdev = 27.039/30.982/37.560/2.702 ms

linuxmobile avatar Sep 12 '25 05:09 linuxmobile

So I guess it's not related to any network requests, the only thing I was able to identify that impacted it for me was:

  • weather fetching (which doesn't seem to anymore since re-nicing it and tweaking the curl params)
  • Wifi scanning (which should not happen unless the wifi pane is open)

I thought maybe dgop widgets, though didn't experience that.

I would try to delete all of the topbar widgets, see if it helps - then start re-adding some to see if it comes back.

I'm a little perplexed because nothing makes net requests besides weather - and I'm not sure what else could affect the nic (besides wifi scanning, which does make a noticeable impact but only during the full scan)

bbedward avatar Sep 12 '25 13:09 bbedward

I would try to delete all of the topbar widgets, see if it helps

I tried that, and no, requests are still coming through. The only way to stop requests is to kill the quickshell process. I have no idea why that is.

linuxmobile avatar Sep 12 '25 14:09 linuxmobile

i dont think it's related to a network request, but something else causing the bog down (I just don't know what it is yet, havent been able to reproduce on my machines wifi or ethernet)

you can sort of prove that by watch -n 0.5 'ss -tunapw' and seeing if anything shows up while the shell is running, versus when it's not.

bbedward avatar Sep 12 '25 17:09 bbedward

you can sort of prove

I do a LOT of test killing everything, but here the screenshots:

QS running QS killed
QS Running QS Killed

PS: I don't have any widget running currently.

linuxmobile avatar Sep 12 '25 22:09 linuxmobile

Just to add some data, I ran the ping tests with and without quickshell running. I'm also on NixOS (Unstable) with flakes and running Niri. I haven't experienced any noticeable lags on my end, but I don't game or do zoom calls so I may not have noticed.

❯ ping -c 60 -i 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=26.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=52.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=117 time=74.3 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=117 time=24.7 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=117 time=19.7 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=117 time=19.6 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=117 time=26.4 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=117 time=18.5 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=117 time=19.0 ms
64 bytes from 8.8.8.8: icmp_seq=10 ttl=117 time=20.1 ms
64 bytes from 8.8.8.8: icmp_seq=11 ttl=117 time=25.1 ms
64 bytes from 8.8.8.8: icmp_seq=12 ttl=117 time=18.2 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=117 time=20.8 ms
64 bytes from 8.8.8.8: icmp_seq=14 ttl=117 time=25.3 ms
64 bytes from 8.8.8.8: icmp_seq=15 ttl=117 time=21.8 ms
64 bytes from 8.8.8.8: icmp_seq=16 ttl=117 time=28.6 ms
64 bytes from 8.8.8.8: icmp_seq=17 ttl=117 time=21.1 ms
64 bytes from 8.8.8.8: icmp_seq=18 ttl=117 time=32.7 ms
64 bytes from 8.8.8.8: icmp_seq=19 ttl=117 time=50.4 ms
64 bytes from 8.8.8.8: icmp_seq=20 ttl=117 time=20.6 ms
64 bytes from 8.8.8.8: icmp_seq=21 ttl=117 time=16.2 ms
64 bytes from 8.8.8.8: icmp_seq=22 ttl=117 time=18.6 ms
64 bytes from 8.8.8.8: icmp_seq=23 ttl=117 time=30.4 ms
64 bytes from 8.8.8.8: icmp_seq=24 ttl=117 time=19.6 ms
64 bytes from 8.8.8.8: icmp_seq=25 ttl=117 time=23.6 ms
64 bytes from 8.8.8.8: icmp_seq=26 ttl=117 time=19.9 ms
64 bytes from 8.8.8.8: icmp_seq=27 ttl=117 time=26.2 ms
64 bytes from 8.8.8.8: icmp_seq=28 ttl=117 time=18.2 ms
64 bytes from 8.8.8.8: icmp_seq=29 ttl=117 time=18.9 ms
64 bytes from 8.8.8.8: icmp_seq=30 ttl=117 time=14.4 ms
64 bytes from 8.8.8.8: icmp_seq=31 ttl=117 time=18.8 ms
64 bytes from 8.8.8.8: icmp_seq=32 ttl=117 time=19.8 ms
64 bytes from 8.8.8.8: icmp_seq=33 ttl=117 time=20.5 ms
64 bytes from 8.8.8.8: icmp_seq=34 ttl=117 time=29.2 ms
64 bytes from 8.8.8.8: icmp_seq=35 ttl=117 time=19.7 ms
64 bytes from 8.8.8.8: icmp_seq=36 ttl=117 time=24.2 ms
64 bytes from 8.8.8.8: icmp_seq=37 ttl=117 time=23.6 ms
64 bytes from 8.8.8.8: icmp_seq=38 ttl=117 time=20.4 ms
64 bytes from 8.8.8.8: icmp_seq=39 ttl=117 time=21.0 ms
64 bytes from 8.8.8.8: icmp_seq=40 ttl=117 time=16.3 ms
64 bytes from 8.8.8.8: icmp_seq=41 ttl=117 time=19.4 ms
64 bytes from 8.8.8.8: icmp_seq=42 ttl=117 time=30.0 ms
64 bytes from 8.8.8.8: icmp_seq=43 ttl=117 time=20.6 ms
64 bytes from 8.8.8.8: icmp_seq=44 ttl=117 time=20.6 ms
64 bytes from 8.8.8.8: icmp_seq=45 ttl=117 time=21.5 ms
64 bytes from 8.8.8.8: icmp_seq=46 ttl=117 time=17.0 ms
64 bytes from 8.8.8.8: icmp_seq=47 ttl=117 time=24.9 ms
64 bytes from 8.8.8.8: icmp_seq=48 ttl=117 time=19.8 ms
64 bytes from 8.8.8.8: icmp_seq=49 ttl=117 time=38.8 ms
64 bytes from 8.8.8.8: icmp_seq=50 ttl=117 time=25.8 ms
64 bytes from 8.8.8.8: icmp_seq=51 ttl=117 time=21.0 ms
64 bytes from 8.8.8.8: icmp_seq=52 ttl=117 time=11.1 ms
64 bytes from 8.8.8.8: icmp_seq=53 ttl=117 time=18.3 ms
64 bytes from 8.8.8.8: icmp_seq=54 ttl=117 time=41.8 ms
64 bytes from 8.8.8.8: icmp_seq=55 ttl=117 time=21.6 ms
64 bytes from 8.8.8.8: icmp_seq=56 ttl=117 time=73.2 ms
64 bytes from 8.8.8.8: icmp_seq=57 ttl=117 time=28.8 ms
64 bytes from 8.8.8.8: icmp_seq=58 ttl=117 time=46.0 ms
64 bytes from 8.8.8.8: icmp_seq=59 ttl=117 time=18.9 ms
64 bytes from 8.8.8.8: icmp_seq=60 ttl=117 time=19.5 ms

--- 8.8.8.8 ping statistics ---
60 packets transmitted, 60 received, 0% packet loss, time 59092ms
rtt min/avg/max/mdev = 11.141/25.404/74.330/11.989 ms

~ 59s
❯ pkill quickshell

~
❯ ping -c 60 -i 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=33.2 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=23.0 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=117 time=68.8 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=117 time=19.0 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=117 time=20.1 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=117 time=22.4 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=117 time=19.4 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=117 time=20.8 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=117 time=20.0 ms
64 bytes from 8.8.8.8: icmp_seq=10 ttl=117 time=17.6 ms
64 bytes from 8.8.8.8: icmp_seq=11 ttl=117 time=25.9 ms
64 bytes from 8.8.8.8: icmp_seq=12 ttl=117 time=17.6 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=117 time=30.1 ms
64 bytes from 8.8.8.8: icmp_seq=14 ttl=117 time=20.1 ms
64 bytes from 8.8.8.8: icmp_seq=15 ttl=117 time=20.4 ms
64 bytes from 8.8.8.8: icmp_seq=16 ttl=117 time=21.5 ms
64 bytes from 8.8.8.8: icmp_seq=17 ttl=117 time=28.1 ms
64 bytes from 8.8.8.8: icmp_seq=18 ttl=117 time=19.2 ms
64 bytes from 8.8.8.8: icmp_seq=19 ttl=117 time=16.9 ms
64 bytes from 8.8.8.8: icmp_seq=20 ttl=117 time=52.4 ms
64 bytes from 8.8.8.8: icmp_seq=21 ttl=117 time=24.6 ms
64 bytes from 8.8.8.8: icmp_seq=22 ttl=117 time=18.8 ms
64 bytes from 8.8.8.8: icmp_seq=23 ttl=117 time=16.2 ms
64 bytes from 8.8.8.8: icmp_seq=24 ttl=117 time=18.5 ms
64 bytes from 8.8.8.8: icmp_seq=25 ttl=117 time=21.3 ms
64 bytes from 8.8.8.8: icmp_seq=26 ttl=117 time=19.8 ms
64 bytes from 8.8.8.8: icmp_seq=27 ttl=117 time=19.7 ms
64 bytes from 8.8.8.8: icmp_seq=28 ttl=117 time=19.7 ms
64 bytes from 8.8.8.8: icmp_seq=29 ttl=117 time=19.8 ms
64 bytes from 8.8.8.8: icmp_seq=30 ttl=117 time=15.1 ms
64 bytes from 8.8.8.8: icmp_seq=31 ttl=117 time=23.5 ms
64 bytes from 8.8.8.8: icmp_seq=32 ttl=117 time=19.6 ms
64 bytes from 8.8.8.8: icmp_seq=33 ttl=117 time=20.4 ms
64 bytes from 8.8.8.8: icmp_seq=34 ttl=117 time=18.9 ms
64 bytes from 8.8.8.8: icmp_seq=35 ttl=117 time=19.6 ms
64 bytes from 8.8.8.8: icmp_seq=36 ttl=117 time=23.4 ms
64 bytes from 8.8.8.8: icmp_seq=37 ttl=117 time=32.4 ms
64 bytes from 8.8.8.8: icmp_seq=38 ttl=117 time=27.8 ms
64 bytes from 8.8.8.8: icmp_seq=39 ttl=117 time=19.2 ms
64 bytes from 8.8.8.8: icmp_seq=40 ttl=117 time=46.0 ms
64 bytes from 8.8.8.8: icmp_seq=41 ttl=117 time=26.5 ms
64 bytes from 8.8.8.8: icmp_seq=42 ttl=117 time=20.1 ms
64 bytes from 8.8.8.8: icmp_seq=43 ttl=117 time=16.7 ms
64 bytes from 8.8.8.8: icmp_seq=44 ttl=117 time=25.5 ms
64 bytes from 8.8.8.8: icmp_seq=45 ttl=117 time=19.8 ms
64 bytes from 8.8.8.8: icmp_seq=46 ttl=117 time=20.5 ms
64 bytes from 8.8.8.8: icmp_seq=47 ttl=117 time=19.1 ms
64 bytes from 8.8.8.8: icmp_seq=48 ttl=117 time=22.1 ms
64 bytes from 8.8.8.8: icmp_seq=49 ttl=117 time=19.5 ms
64 bytes from 8.8.8.8: icmp_seq=50 ttl=117 time=21.4 ms
64 bytes from 8.8.8.8: icmp_seq=51 ttl=117 time=21.9 ms
64 bytes from 8.8.8.8: icmp_seq=52 ttl=117 time=10.3 ms
64 bytes from 8.8.8.8: icmp_seq=53 ttl=117 time=28.2 ms
64 bytes from 8.8.8.8: icmp_seq=54 ttl=117 time=15.6 ms
64 bytes from 8.8.8.8: icmp_seq=55 ttl=117 time=16.4 ms
64 bytes from 8.8.8.8: icmp_seq=56 ttl=117 time=54.0 ms
64 bytes from 8.8.8.8: icmp_seq=57 ttl=117 time=18.9 ms
64 bytes from 8.8.8.8: icmp_seq=58 ttl=117 time=16.6 ms
64 bytes from 8.8.8.8: icmp_seq=59 ttl=117 time=20.7 ms
64 bytes from 8.8.8.8: icmp_seq=60 ttl=117 time=20.7 ms

--- 8.8.8.8 ping statistics ---
60 packets transmitted, 60 received, 0% packet loss, time 59097ms
rtt min/avg/max/mdev = 10.287/23.249/68.823/9.703 ms

~ 59s

kevb1973 avatar Sep 16 '25 01:09 kevb1973

64 bytes from 8.8.8.8: icmp_seq=56 ttl=117 time=73.2 ms

I think you have a spike but it's just less than my. If you're average ping is ~30ms/~25ms, 70ms is an spike.

PS: thx to add another test to corroborate!

linuxmobile avatar Sep 16 '25 04:09 linuxmobile

I don't think his is showing any spikes, seems fairly consistent on both of them since there's also a 68ms without.

bbedward avatar Sep 16 '25 04:09 bbedward

I don't think his is showing any spikes, seems fairly consistent on both of them since there's also a 68ms without.

I was finally able to pinpoint the exact moment when the spikes occur, even though you still think it's unrelated (I'm 100% sure it is, because it only happens when I'm running Quickshell and with your configuration).

The exact moment of the Spike occurs because this process runs frequently.

nmcli -t -f IN-USE,SIGNAL,SSID device wifi list ifname wlp2s0

Image

I can rest in peace now!

linuxmobile avatar Sep 18 '25 21:09 linuxmobile

nmcli -t -f IN-USE,SIGNAL,SSID device wifi list ifname wlp2s0

I believe you, i just meant kevb's was showing 68ms without quickshell, 70ms with so it didnt seem like he had any spikes.

That command only should run when theres a dbus network state change, and I'm guessing its getting hit too much on your system, maybe a different irrelevant interface is making noise causing the refreshes.

Can you run this one for awhile: gdbus monitor --system --dest org.freedesktop.NetworkManager and dump the output (it will run continuously until killed)

bbedward avatar Sep 18 '25 21:09 bbedward

See if this helps actually: d8e2a73e0b69dc3ba1b894d0d38fd31dddc8be86

bbedward avatar Sep 18 '25 21:09 bbedward

See if this helps actually: d8e2a73

The issue persists and it's caused by the spawning of nmcli command:

Image Image

PS: In the screenshot, I'm showing the ping!

I think you should replace nmcli with a less “expensive” alternative.

linuxmobile avatar Sep 18 '25 22:09 linuxmobile

Try the latest again, I made the gdbus monitor filter events more aggressively and also changed that particular command to always --rescan no which is probably the root of the problem (its default is auto it seems, so sometimes it triggered rescan)

bbedward avatar Sep 18 '25 22:09 bbedward

Try the latest again, I made the gdbus monitor filter events more aggressively and also changed that particular command to always --rescan no which is probably the root of the problem (its default is auto it seems, so sometimes it triggered rescan)

It seems that the problem no longer exists. Thank you very much for your patience, bbedward. Can I make a small request, or should I open a new issue?

linuxmobile avatar Sep 19 '25 00:09 linuxmobile

Go ahead, or you can just ping in discord

bbedward avatar Sep 19 '25 01:09 bbedward

Go ahead, or you can just ping in discord

I don't want to open a new issue for this, but here's my request!

  • For the theme toggle (in niri), you can use do-screen-transition to better transition in the theme changing.
  • The “health” in the battery widget is showing an incorrect value (43% on my laptop).
Widget Upower
  • Could an option be added to the battery widget for Asus and Lenovo laptops for conservation mode? Usually, the way to do this is by adding a path (from the qs settings) and using sudo tee. Ex:

Lenovo Ideapad path

echo "1" | sudo tee /sys/devices/pci0000:00/0000:00:14.3/PNP0C09:00/VPC2004:00/conservation_mode

This is for my old astal:

Image

linuxmobile avatar Sep 19 '25 14:09 linuxmobile

Did the screen transition

The battery health I'll look into, think qs isn't exposing all the data points at first glance.

Other one, can't do sudo from the shell unless there was a sudoers rule and since it's device specific idk, I set it on my laptop with just the rog control app now

bbedward avatar Sep 19 '25 14:09 bbedward