guysoft / OctoPi

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

New method to Disable Wifi Power management (Issue #508) #799

Closed TheRaf974 closed 1 year ago

TheRaf974 commented 1 year ago

...and avoid automatic reactivation

Fix for issue #508

network\if-up.d\powersave_off does disable power management at raspberry start. But after some times, it turns back on.

I replaced it by a systemd daemon: wifi_powersave@.service (Credit : Ingo on StackExchange)

The RemainAfterExit=yes option fix power management off "permanently" (until the daemon is deactivated)

guysoft commented 1 year ago

Thanks for your contribution! Looks better than using ifupdown.