net: disable WiFi power save by default#224
Conversation
How bad is it? Do you have some results? |
|
Yes, it's quite noticeable. With power save enabled, my ping to the local router ( After applying This is especially relevant for gaming and any low-latency workload, which aligns well with CachyOS's performance focus. |
|
I'm asking for the numbers here. |
|
Yes! Here are some quick numbers from my local router ping test ( Power Save ON Power Save OFF Difference |
So
It is still bad, you should fix your network. Here is mine:
|
|
Yes, you're right — the latency is still bad in that state, and my network setup clearly needs further tuning. I found that the following command fixes the issue completely on my side: sudo iw dev wlan0 set txpower fixed 2000After applying it, my average ping drops to around 5–7 ms, making the connection stable again. So in my case: Power save OFF already reduces latency significantly. However, this commit is only about disabling power save, since that is a much safer and more universal default. Changing TX power may involve regulatory restrictions depending on the country, device, or driver support, so I still need to research it properly before recommending it as a system default. Once I finish testing and studying it further, I may open another PR with a possible complete solution. |
|
Anyway, for now, temporarily setting Power Save OFF by default would likely help many users. |
|
I had similar power saving issues with Qualcomm NCM865 (numbers in the name are just a coincidence) last year. Wi-Fi would struggle to achieve 100 Mb/s and the latency was jittery. Eventually it got fixed in the kernel/firmware and works fine now: This is over 5 GHz at -64 dBm signal level with power save on. I recommend monitoring how your adapter behaves during normal desktop usage and during stress scenarios like speedtest.net with |
|
I would prefer if it possible to go away from NetworkManager configuration and use udev rule for that. |
I agree, it should enable powersaving (or whatever the default is) when running on battery. |
Adds a NetworkManager configuration to disable WiFi power saving by default.
Power save mode introduces latency spikes and inconsistent throughput,
which conflicts with CachyOS's focus on responsiveness. This is a common
tweak recommended for gaming and low-latency workloads.
The setting uses NetworkManager's native configuration instead of iw
commands, so it works regardless of the interface name (wlan0, wlp3s0, etc.)
and is applied automatically on reconnect.
wifi.powersave = 2 → disabled
wifi.powersave = 3 → enabled (NM default)