top of page
  • Writer's pictureAlex

How to disable wifi power save to prevent disconnects

I saw some posts about how weak the wifi is, and indeed it is… It kept losing signal and closing my ssh so I decided to try an old trick of mine. (Which happens to be an issue in all the Single Board Computers i have tried)

Since I disabled the chipset power saving mode I haven´t had disconnects, so It might be useful to you.

iw wlan0 set power_save off

I have to add that not only doesn´t disconnect anymore but it increased the speed of transfering files too.


This is not permanent, on reboot it gets restored to “on”

How to set it on boot.

To set it to off on boot you need to create the following scrip in:


#! /bin/sh  
set -e  
# Don't bother for loopback if [ "$IFACE" = lo ]; then         
exit 0 
# Only run from ifup. if [ "$MODE" != start ]; then         
exit 0 
# Only do it once (skip for inet6). if [ "$ADDRFAM" != inet ]; then         
exit 0 
/sbin/iw dev wlan0 set power_save off  
exit 0

And don´t forget to set exec permissions:

chmod +x /etc/network/if-up.d/powersave_off (or whatever name you put to it)

I found the solution here:

973 views0 comments

Recent Posts

See All


bottom of page