Laptop power saving script for #! & Debian

view story

http://crunchbanglinux.org – I was a bit disappointed with the battery life of crunchbang out of the gate. I installed laptop-mode-tools but that did not do much. So I hacked together a little script that will enable some power saving tweaks when on battery power, and default to best performance while on AC. It should work on most setups, but YMMV. It is a good idea to check that the /sys/ entries actually exist on your system, and that the values are sane; Some are hardware specific for instance. We are going to take advantage of a pm-utils feature; any script placed in /etc/pm/power.d/ will automatically run when the AC (HowTos)