Problem: Wifi keeps going into powersave mode resulting in horribly unusable latency over even ssh. I can’t even type a piece of code without wanting to pull my hair out. Manually running
sudo /sbin/iw dev wlan0 set power_save off
on every startup works. However, I would like it to be automatic.
What does NOT work:
Putting it in /etc/rc.local -- Problem: doesn't do anything at all; still have to run it manually
Putting it in /etc/network/if-up.d -- Problem: it works fine for about 10-30 seconds after wlan0 interface goes up, and then powersave goes on again, requiring me to run the command manually again
Putting powersave=2 in /etc/NetworkManager/system-connections/SSID -- Problem: same as above
How can I kill powersave once and for all forever? Thanks!
Initially, I encountered the problem of slow and delayed response when I remote login through ssh, then I have read that it might be because of the power save mode of the wifi, so I tried to disable it through command line commands and it worked for a while. Then I came across this post where it is stated that the patch can turn off the power saving mode of the wifi.
Somehow, it seems that the patch is working now and I don’t have any problems with delayed ssh remote access anymore, I don’t understand why it is working now and not before, but then I don’t think I have the time to delve into that right now.