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

21 Comments


Anya
Anya
a day ago

Need help in accounting assignment? Assignment Help Pro United States offers expert academic support for students struggling with accounting tasks. Whether it's financial accounting, managerial accounting, balance sheets, or cash flow analysis, their skilled professionals deliver accurate, well-structured, and plagiarism-free solutions tailored to your academic needs. They understand the importance of clarity and precision in accounting assignments and ensure each task meets university guidelines. With timely submissions and 24/7 availability, Assignment Help Pro United States is the go-to platform for students seeking to improve their grades and understanding. Get reliable and efficient help to master your accounting assignments today.

Like

Cannabis Weed
Cannabis Weed
a day ago

You are the best of the best. Salute!

durban poison

Like

jozef.momen
7 days ago

The custom paint jobs really showcase their creativity. Unique finishes that truly reflect our style—amazing attention to detail!

Like

Nice sharing. The article advises disabling Wi‑Fi power-saving mode on Clockwork‑powered devices to resolve frequent disconnections and slow transfers. By running iw wlan0 set power_save off, users reported stable connections and improved speeds. To make it permanent, create and enable an executable script (/etc/network/if-up.d/powersave_off) that runs the command at boot. Struggling with your coding tasks? Get programming assignment help at Myassignmenthelp.com and make your academic journey smoother. Whether it's Python, Java, C++, or web development, expert programmers offer personalized support tailored to your assignment needs. Our team ensures well-commented, error-free, and plagiarism-free code that meets academic standards and deadlines. From basic logic-building to complex algorithm design, we’ve got your back.

Edited
Like

Experiencing WiFi disconnects? This guide helps disable power saving mode. I noticed similar connection issues while engrossed in Pokerogue , especially when checking the Pokerogue Dex for optimal team builds. The command iw wlan0 set power_save off improved stability and transfer speeds for me. Remember, it resets on reboot, so follow the instructions to automate it. Hopefully, this helps you stay connected!


Like
bottom of page