FlightAware Discussions

Where insert code to permanently turn off power management

My rpi3B loses connection with the local area network quite often. At the same time the internet connectivity to flightaware work perfectly. I manually turned off the power-save with “sudo iw wlan0 set power_save off” and this apparently has kept the LAN connectivity for hours now.

The question where do I put this command (or others) to make this change permanent. I do not see it in the piaware-config file.

Thank you!

73 de Dale

You could add a line to your crontab to run that command on boot.

@reboot sudo iw wlan0 set power_save off
1 Like

I did this last weekend on my secondary/test station. I tried a few things. I believe the one that really worked was add

iwconfig wlan0 power off

to /etc/rc.local just above exit 0.

After reboot, run iwconfig to confirm power mgmt is really off.

1 Like