Public bug reported:

Power management on intel wireless cards is never turned on unless one
adds two scripts to do so.

To use laptop-mode by default:

Code:

sudo gedit /etc/default/acpi-support

Scroll down change laptop-mode to true:

Code:

ENABLE_LAPTOP_MODE=true

For some reason, laptop-mode is only started when the AC is unplugged.
This might seem fine unless you bootup the laptop on the battery, in
which case laptop-mode never gets started. Thus, to enable laptop-mode
at boot (taken from a lost thread):

Code:

sudo update-rc.d laptop-mode multiuser

Now that laptop-mode is started automatically, we can make sure it
manages the power saving on the intel wireless cards (ipw3945 & iwp2200
use different commands) this way.

To use the power management, you will need to install the wireless
tools:

Code:

sudo apt-get wireless-tools

For ipw3945 cards:

On battery:

Code:

sudo gedit /etc/laptop-mode/batt-start/20-wireless.sh

Code:

#!/bin/sh iwpriv eth1 set_power 7

Code:

sudo chmod +x /etc/laptop-mode/batt-start/20-wireless.sh

On AC:

Code:

sudo gedit /etc/laptop-mode/batt-stop/20-wireless.sh

Code:

#!/bin/sh iwpriv eth1 set_power 0

Code:

sudo chmod +x /etc/laptop-mode/batt-stop/20-wireless.sh

For ipw2200 cards (taken from here):

On battery:

Code:

sudo gedit /etc/laptop-mode/batt-start/20-wireless.sh

Code:

#!/bin/sh iwconfig eth0 power on

Code:

sudo chmod +x /etc/laptop-mode/batt-start/20-wireless.sh

On AC:

Code:

sudo gedit /etc/laptop-mode/batt-stop/20-wireless.sh

Code:

#!/bin/sh iwconfig eth0 power off

Code:

sudo chmod +x /etc/laptop-mode/batt-stop/20-wireless.sh

At that point, power management works.

Nic

** Affects: Ubuntu
     Importance: Undecided
         Status: Unconfirmed

-- 
power management on ipw2200 and ipw3945
https://launchpad.net/bugs/80980

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to