All,
Just to drop a line to all you who want better battery life out of your laptop, here's some stuff I've done to get that. Mainly it's hdparm but here are the things I've done:
1) Recompile kernel with usbcore as <M> and add auto_suspend capability to it, with tickless enabled, with ondemand as the default CPUFreq governor, and specifying my CPU with disabling Generic X86. Tickless might only give you 1%, but that's better than nothing.
2) Using hdparm and /etc/acpi/acpi_handler.sh, tell machine to set hard drive to max power savings when on battery but max performance when plugged in. This goes in acpi_handler.sh (make sure it's executable):
Code:
if on_ac_power; then
hdparm -B 254 /dev/sda
else
hdparm -B 1 /dev/sda
fi
3) Set Xfce's power manager to set CPUFreq to max power savings when on battery but max performance when plugged in. I do this mainly because ondemand can do lots of switching which requires that something stop and change frequencies. In my use, this saves more power, but YMMV. Anyways, if you want to do this in acpi_handler.sh you could do this (my computer is a core 2 duo):
Code:
if on_ac_power; then
hdparm -B 254 /dev/sda
echo "performance" > \
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "performance" > \
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
else
hdparm -B 1 /dev/sda
echo "powersave" > \
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "powersave" > \
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
fi
This is just an informative post for those of us laptop-heads out there. Enjoy!