Ask Your Question

Proper disabling of WiFi power management

asked 2011-11-17 20:12:24 +0000

darence gravatar image

updated 2011-11-17 20:15:55 +0000


I have an Acer Aspire One and the power management for WiFi connections is on by default, causing really bad connection quality. I know how to turn this off:

sudo iwconfig wlan0 power off

To make it permanent, as a dirty hack I can just add this line to /etc/rc.local, for instance. However, I would like to know what the proper way to change this setting is. I tried changing various settings in /etc/sysconfig/network-scripts but no luck.

Can someone help?

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted

answered 2013-04-10 16:57:04 +0000

Flying4Fun gravatar image

updated 2013-04-10 16:58:31 +0000

I know it's a little late, but hope it helps others that have the same question.

Create a NetworkManager script i.e. /etc/NetworkManager/dispatcher.d/02-wlan-powersave-off

if [ "${IF}" = "wlan0" ] && [ "${STATUS}" = "up" ]; then
   iwconfig ${IF} power off
   logger "${IF}: turning off powersave mode to prevent constant reconnections"

Don't forget to chmod 755 /etc/NetworkManager/dispatcher.d/02-wlan-powersave-off

Restart NetworkManager (using Fedora with systemd):

systemctl restart NetworkManager.service
edit flag offensive delete link more


This is a great way to do this. However, your script as it is did not work in my Raspberry Pi running Pidora (Fedora 20 remix). The problem, which is probably also common to other environments, is that the PATH for the dispatcher scripts does not by default contain /sbin.

To fix: I simply replaced "iwconfig" with "/sbin/iwconfig" and it worked great.

Kayvan ( 2015-01-02 04:09:09 +0000 )edit

answered 2011-11-17 20:45:53 +0000

updated 2011-11-17 20:46:07 +0000

Follow the below steps -

# su -
# vi /var/lib/NetworkManager/NetworkManager.state

In the file you will see the below contents -


Change the value of WirelessEnabled=false

Restart the NetworkManager

# service NetworkManager restart

This should work !!

edit flag offensive delete link more


Did the solution work and solved your problem ?

SoumyaC ( 2011-11-25 18:09:22 +0000 )edit

I believe the OP wanted to disable power management NOT disable wireless.

Flying4Fun ( 2013-04-10 17:01:09 +0000 )edit

answered 2012-10-19 04:28:14 +0000

Based on this Ubuntu based solution I did the following.

sudo vi /etc/pm/power.d/wireless

Then paste the following and save the file

/usr/sbin/iwconfig wlan0 power off

Finally, make it executable

sudo chmod +x /etc/pm/power.d/wireless

This should make power management be off on reboot.

edit flag offensive delete link more

answered 2011-11-18 13:48:31 +0000

ritz gravatar image

One option would be to add this to /etc/rc.d/rc.local, and enabling +x on this file.

$ vim /etc/rc.d/rc.local $ chmod +x /etc/rc.d/rc.local

Personally, this needs to be fixed in kernel, or NetworkManager code.

edit flag offensive delete link more

answered 2017-09-21 20:58:22 +0000

Disabling Power Management just worked yet again. Surface Pro 3/ Fedora 26. Thanks for the info.

edit flag offensive delete link more

answered 2017-01-02 19:11:10 +0000

deajan gravatar image

updated 2017-01-02 19:27:41 +0000

Great answer in https://ask.fedoraproject.org/en/ques... ! Here are my two cent that make it work regardless of the interface number or names:

ifaces=$(iwconfig 2> /dev/null | grep "802.11" | awk '{print $1})
for iface in $ifaces; do
    if [ "${IF}" = "$iface" ] && [ "${STATUS}" = "up" ]; then
        iwconfig ${iface} power off
        logger "${iface}: turning off powersave mode to prevent constant reconnections"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.


Asked: 2011-11-17 20:12:24 +0000

Seen: 10,994 times

Last updated: Jan 02