guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.45k stars 368 forks source link

[Request] Disable wifi sleep #721

Closed hawkeyexp closed 3 years ago

hawkeyexp commented 3 years ago

During using octoscreen i noticed sometimes reconnects by octoscreen which was caused by wifi sleep policy.

I disabled it with "iw dev wlan0 set power_save off" inside /etc/rc.local and the disconnects was gone. I recommend disabling wifi sleep in sdcard image possible as ifup script etc :-)

guysoft commented 3 years ago

That's really cool. I am trying to figure out where is the best place t place this. Here its suggested at /etc/network/if-up.d/powesave_off as a script.

Here is suggested to be added in /etc/network/interfaces does not exist anymore on pi. Seems like there is old advice on that here for octopi

guysoft commented 3 years ago

After trying to get it to work with /etc/network/if-up.d/powesave_off it seems that method just doesn't work anymore. So using rc.local. Hope some brave contributor comes along and figures out how to do this nicer, possibly taking other interface names in to account.

guysoft commented 3 years ago

Fixed, needs to be tested