A thread in ubuntu forum is open on this topic:
http://www.ubuntuforums.org/showthread.php?t=339089
There was a great suggestion of a better solution for this problem from
largecat:
Some helper functions if your 3945 card is not eth1 or you have more
then one card:
#!/bin/bash
# Power saving setting for the Intel 3945 wireless adaptor
VENDOR_ID=0x8086
DEVICE_ID=0x4222
IWPRIV=/sbin/iwpriv
#
# Find all the Intel 3945 adaptors based on the vendor and device ids
#
function findIntel3945s {
INTEL3945_IFNAMES=""
for DEVICE in /sys/class/net/*; do
if [ -d $DEVICE/wireless ]; then
# See if $DEVICE is an Intel 3945abg
if [ -f $DEVICE/device/vendor ] &&
[ -f $DEVICE/device/device ]; then
if [ `cat $DEVICE/device/vendor` == $VENDOR_ID ] &&
[ `cat $DEVICE/device/device` == $DEVICE_ID ]; then
# Strip off the leading path to get the interface name
IFACE_NAME=`echo -n $DEVICE | sed 's/.*\///'`
# and add it to the list of interfaces
INTEL3945_IFNAMES=$INTEL3945_IFNAMES" "$IFACE_NAME
fi
fi
fi
done
}
#
# Set all the adaptors into battery power saving mode
#
function setIntel3945s_battery {
findIntel3945s;
for DEVICE in $INTEL3945_IFNAMES; do
$IWPRIV $DEVICE set_power 7
done
}
#
# Set all the adaptors into ac power saving mode (none)
#
function setIntel3945s_ac {
findIntel3945s;
for DEVICE in $INTEL3945_IFNAMES; do
$IWPRIV $DEVICE set_power 6
done
}
Save the above as something like /etc/acpi/intel3945_pwr.sh and you can
then use it from scripts as follows:
#!/bin/bash
# source the helper functions
. /etc/acpi/intel3945_pwr.sh
# Set all Intel 3945 wireless adaptors to battery power saving
setIntel3945s_battery;
Replace _battery by _ac in a script to turn power management off.
--
power management on ipw2200 and ipw3945
https://launchpad.net/bugs/80980
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs