Longer Laptop Battery Life under Linux
ThinkingInBinary writes "Want easier power management and better battery life on your Linux laptop? Try powermgr, a daemon that automatically (or manually, if you choose) switches your system between power "profiles". It has support for ACPI (of course) as well as Asus, Dell, IBM, Omnibook, and Toshiba extensions. It can control CPU governor, screen brightness, wireless card, laptop mode (via services), runlevel, services, and more, and can switch based on AC adapter and battery state, load average, temperature, running processes, and more. Tests indicate that it can prolong battery life by 20 minutes to almost two hours, depending on what the system is doing. Try it out!"
...so this obviously doesn't do much for me since my laptop is under a constant 100% CPU load due to constant recompiling.
Why just the emphasis on laptops?
Wasted energy from a wall outlet is still wasted energy. Transferring the energy-saving mindset to the desktop would likely have some positive results, especially for all those people using a 3GHz machine to play Freecell and send a few emails.
... but d'oh, I'm using Gentoo. Must compile faster!
It still has some issues with it being set to run or not. I run this on my ubuntu setup for my IBM T43 and if you unplug the laptop and plug it back in, it thinks it is still unplugged. Thus, the screen turns off after set ammount of time, etc. etc. (which I prefer to be always on if it's plugged in). And changing it's settings are buggy.
It does get me over 3 hours of battery life, however, with my centrino processor which I really can't complain about. And with full brightness I still get 2 hours so long as I'm not doing any gaming or anything (DVD = over 2 hours low brightness)
No laptop to try it on, but the code seems to be not awful (though a file named
"include" for a few subs out in its own place on the drive is questionable). A
direct link on the sf site instead of a hlaf-dozen clicks would be nice. The
biggest thing of note is that it seems to be slightly Gentoo specific:
#!/sbin/runscript in powermgr, and the use of an external binary named osd_cat.
Were that I say, pancakes?
One of the issues I see coming up on the debian/gnome planets is developers whose notebook hard drives are dying prematurely because of all the parking/unparking of the heads etc. I have seen recommendations to disable power management on notebook hard drives for this reason and have done so on my own. The constant sound of the hard drive parking and unparking is annoying and on another thinkpad, i hear a regular soft beep every couple of seconds which is supposedly related.
due to these issues (and slashdot stories of burned cd's and dvd's expiring prematurely) i have bought some USB flash keys and an external usb hard drive (which i keep off except when i use it) for backups!
I've recently went through this, but not for a laptop, but a Pentium 100 with 64 MB, running FC3 acting as an ADSL router and Subversion server (!).
Essentially I activated the "laptop mode" kernel variable (/proc/sys/vm/laptop_mode or similar), set the hard drives to spin down after 30 seconds using hdparm, killed all the unneeded services, and cleaned up the crontab; sa in particular was causing the hard disks to spin up every 10 minutes, which I wanted to avoid. This took me a while to figure out.
Now I have a very silent, very cool (as in temperature) "server".
My website
I forgot another trick to avoid useless hard disk spinups : remount your filesystems with the noatime option.
My website
You can't read perl? I could read perl when I was 6. I could speak perl when I was 4.
Ruby?! Now thats a foriegn language to us all.
Modesty is one of life's greatest attributes
https://sourceforge.net/projects/powersave
it has a nice front end - namely kpowersave.
Features:
1. Auto suspend when inactive after x minutes
2. hard disk settings
3. all CPU governors are derived from kernel
Sounds a lot like what apple has done on their laptops with being able to choose (auto or manually) different profiles based on power needs and plugged vs. wireless.
Get me a meat pie floater!
How does it compare to Laptop Mode?
http://www.xs4all.nl/~bsamwel/laptop_mode/