top of page

How to disable wifi power save to prevent disconnects

  • Writer: Alex
    Alex
  • May 18, 2020
  • 1 min read

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.

Note:

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:


/etc/network/if-up.d/powesave_off

#! /bin/sh  
set -e  
# Don't bother for loopback if [ "$IFACE" = lo ]; then         
exit 0 
fi  
# Only run from ifup. if [ "$MODE" != start ]; then         
exit 0 
fi  
# Only do it once (skip for inet6). if [ "$ADDRFAM" != inet ]; then         
exit 0 
fi  
/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:https://github.com/fordsfords/wlan_pwr

126 Comments


Flypped news
Flypped news
5 hours ago

Really useful guide. Disabling WiFi power save to prevent random disconnects is something many users struggle with, and this explanation makes it easy to follow. Practical tech fixes like this save a lot of frustration. I usually read similar tech and innovation updates on my site, where we also cover topics like OpenClaw AI and other emerging technologies that are shaping how we use devices every day.

Like

Ruth Inniss
Ruth Inniss
19 hours ago

Passengers flying United benefit from efficient services, modern gates, and helpful amenities. The united airlines domestic newark terminal features streamlined security, spacious waiting areas, dining options, clear signage, and easy access to connecting flights, making travel through Newark Liberty International Airport smooth, organized, and comfortable for domestic travelers nationwide journeys.

Like

Wow, this is a great post. I thought your content was very helpful. Continue to share the good news. I found so many helpful stuff on your blog that I saved it. A well-known game that a lot of people like playing is: A well-known game that a lot of people like playing is: tiny fishing

Like

Insightful post! Appreciate you sharing this—looking forward to more updates from you. https://www.prestigegardenbreeze.info/

Like

Insightful post! Appreciate you sharing this—looking forward to more updates from you. Prestige Evergreen

Like
bottom of page