Skip to content

Instantly share code, notes, and snippets.

@mpalourdio
Forked from ohnotnow/autostart.sh
Last active May 21, 2022 10:25
Show Gist options
  • Save mpalourdio/04c5fdaab6033e3f032791a72b36dc60 to your computer and use it in GitHub Desktop.
Save mpalourdio/04c5fdaab6033e3f032791a72b36dc60 to your computer and use it in GitHub Desktop.
Disabling wifi power management on rpi3/libreelec
# from : https://forum.libreelec.tv/thread/5074-wifi-issues-on-rpi-3-poor-speed-and-latency-solution/#codeLine_1_3e8919
# first install the 'network tools' add-on from the kodi repository then create a /storage/.config/autostart.sh file with
# this as the contents.
# then reboot the pi. runnning 'iwconfig' should now show the power-management as being off.
# mpalourdio : in LE 9+, iw is already installed at /usr/sbin/iw
# just create an autostart.sh and add :
/usr/sbin/iw wlan0 set power_save off
# reboot, and check iw wlan0 get power_save : should be off
# for raspian, enter this in you /etc/rc.local
/sbin/iwconfig wlan0 power off
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment