Turning off wifi power save to stop connections dropping

October 28, 2021 - Reading time: 2 minutes

My server is connected via wifi to my home router. The server every now and then will not allow me to log in via ssh. There seems to be nothing wrong, the journalctl -u ssh doesn't show anything odd. The syslog shows wifi disconnects on a periodic basis but at first it didn't seem too important.

the output of the restart of ssh was this:

Oct 28 09:54:25 server1 systemd[1]: Stopped OpenBSD Secure Shell server.

Oct 28 09:54:25 server1 systemd[1]: ssh.service: Found left-over process 1776273 (sshd) in control group while starting unit. Ignoring.
Oct 28 09:54:25 server1 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Oct 28 09:54:25 server1 systemd[1]: Starting OpenBSD Secure Shell server...
Oct 28 09:54:25 server1 systemd[1]: ssh.service: Found left-over process 1776273 (sshd) in control group while starting unit. Ignoring.
Oct 28 09:54:25 server1 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Oct 28 09:54:25 server1 sshd[1776969]: Server listening on 192.168.0.232 port 22.
Oct 28 09:54:25 server1 systemd[1]: Started OpenBSD Secure Shell server

Run out of time... Source is here -->

http://qdosmsq.dunbar-it.co.uk/blog/2016/03/does-your-raspberry-pi-3-lose-wifi-connections-after-a-while/

Another one here -->

https://askubuntu.com/questions/529347/how-do-i-keep-my-wifi-from-dropping-out#530222

And another I have implemented 

https://raspberrypi.stackexchange.com/questions/96606/make-iw-wlan0-set-power-save-off-permanent#96644

LazyCoderOZ

I am a Linux guy, been around for 20+ years using Linux as my daily driver.
This is my blog on my discoveries and notes so I don't forget how I have done things :)