Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Disable wlan0 power management

  1. #11
    Join Date
    Aug 2007
    Beans
    128

    Re: Disable wlan0 power management

    hi. i have followed the instructions exactly as stated above, but the solution is not permanent.

    upon reboot, iwconfig states power management is "on."

    i thought it must be a syntax error, but i am certain that i did everything correctly - including the chmod command.

    doing a manual sudo iwconfig wlan0 power off at every sesssion does turn wlan0 powersave off - but i would really like to make this change permanent.

    any suggestions?

    thanx,

    k.

  2. #12
    Join Date
    Aug 2007
    Beans
    128

    Re: Disable wlan0 power management

    dear friends,

    i followed the instructions as indicated above, but my system was still booting with the wlan0 powersave "on."

    so i tried entering this command in a file that allows you to enter sudo commands and it will execute those commands at startup. (note: there seems to be dozens of ways to run a sudo command at startup. i found this one to be the best):

    the file name is:

    rc.local

    edit the following file by entering:

    sudo gedit /etc/rc.local

    add the lines to disable wlan0 wireless:
    sleep 10 (this gives the wireless dongle/card time to to load, before executing the command below)
    "iwconfig wlan0 power off"

    important! make sure there is a line at the very end that reads:

    "exit 0"

    this will bypass any errors and allow the system to continue to boot.

    you can add other startup commands here as well - very useful.

    it should look like this:

    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    sleep 10
    iwconfig wlan0 power off
    exit 0
    Last edited by doogiekd; October 2nd, 2011 at 03:50 AM.

  3. #13
    Join Date
    Oct 2011
    Beans
    2

    Re: Disable wlan0 power management

    Thanks Doogie,

    Your solution seemingly is the last piece to the puzzle. Now I'm going to have to try this and if it solves my wifi problem at public places. But it is for sure going good from home!

  4. #14
    Join Date
    Aug 2007
    Beans
    128

    Re: Disable wlan0 power management

    wc2c,

    glad i could finally help someone, instead of the other way around...peace.

  5. #15
    Join Date
    Oct 2011
    Beans
    2

    Re: Disable wlan0 power management

    Quote Originally Posted by doogiekd View Post
    wc2c,

    glad i could finally help someone, instead of the other way around...peace.
    Yeah, I havn't really dug deep into the intricate side of linux at all, something to sink into.

    Well, I'm at the coffee shop and I realize most websites take few more seconds to load than normal, and if I was surfing for a while this wouldn't be much fun.

    It seems I still have to type in the command to power off my eth1.

    I will have to look for more solutions. Will post back if I do find anything.

  6. #16
    Join Date
    May 2006
    Beans
    24
    Distro
    Ubuntu

    Re: Disable wlan0 power management

    Quote Originally Posted by Wc2c View Post
    Yeah, I havn't really dug deep into the intricate side of linux at all, something to sink into.

    Well, I'm at the coffee shop and I realize most websites take few more seconds to load than normal, and if I was surfing for a while this wouldn't be much fun.

    It seems I still have to type in the command to power off my eth1.

    I will have to look for more solutions. Will post back if I do find anything.
    If your wireless network interface is eth1, then replace wlan0 with eth1 in the above examples.
    Morgan Collett

  7. #17
    Join Date
    Sep 2007
    Beans
    4

    Re: Disable wlan0 power management

    Quote Originally Posted by morgs View Post
    If your wireless network interface is eth1, then replace wlan0 with eth1 in the above examples.
    Hello, I just want to say thanks for this workaround

    I'm running 12.04 and this wireless hickup is really bugging me.

    So, my conclusion:

    by creating "wireless" in power.d will disable power switch everytime I unplug/plug the adaptor

    and

    by adding line in "rc.local" will disable power management of my eth1 at boot.

    Thanks.

  8. #18
    Join Date
    Feb 2008
    Beans
    38
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Disable wlan0 power management

    • There was a Desktop app that disabled power management clicked. I used it a lot on 10.4. Now I have loaded 12.4 I can no longer find it in the repository. I need it, esp when doing a lot of coppying and backing up. Anyone know where I can find it?
    There is no sense in having a plan if you're not going to pretend to follow it.

  9. #19
    Join Date
    Sep 2010
    Beans
    4

    Re: Disable wlan0 power management

    Quote Originally Posted by Zookalicious View Post
    I can't give you the source where I read this from (can't bloody well remember) but I just did this same thing two days ago and this is what I did.

    Code:
    gksu gedit /etc/pm/power.d/wireless
    and then I just put
    In the file.

    Lastly,
    Code:
    sudo chmod +x /etc/pm/power.d/wireless
    According to the thread that works, and my connection seems significantly more stable now when I try and get on the campus wifi.

    Hope that helps!
    Thanks

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •