There is some useful information in the
Battery Powered Linux HOWTO.
Also, much can be found at
google with the right keywords...
I'm not sure about how to programmatically modify the brightness on a Thinkpad since I haven't received mine yet (
...The wait is unbearable!)...
But about the hard drive:
The
good news is that an optimized GNU/Linux-based laptop can keep the disk spun down for *far* longer than a windows based one, simply because you as the user have ultimate control over how your computer behaves.
The
bad news is that it requires quite a bit of config file hacking to achieve power nirvana...
Here's some points to consider:
- If you can, use an old-school, non-journalling file system, like ext2. That makes controlling the drive's write accesses far easier.
The downside is that a crash or power failure are more likely to cause a data corruption as opposed to with a journalling fs.
- If you won't, or are using a journalling fs (ext3, reiserfs, etc.) already, check out the laptop_mode kernel module which does go some way to remedy the situation for journalling filesystems on laptops, unfortunately also at the expense of data safety (Because the synchronization to disk is delayed).
I might add that, at least in theory, the ext2 and ext3 file systems are compatible, so if your file system is ext3 you should be able to remount it as ext2 at the expense of a reboot.
- The syslog is a major offender, especially wrt. the dummy --MARK-- messages it writes every 10 minute or so. Check out the above howto for information on how to optimize it.
- Another one is cron which run jobs at scheduled intervals. On my current laptop I've disabled it altogether and instead installed anacron which runs needed jobs at boottime instead. Might be an option as long as you remember to reboot the machine now and then.
- Disable read-access logging on the filesystem in /etc/fstab by appending "noatime" to the options.
- Place the /tmp directory in RAM by mounting it using the tmpfs file system, also covered in the HOWTO.
- If you have plenty of RAM, consider disabling the swap file. (Though I haven't really noticed any huge difference on this myself, so I've kept it on.)
- If you surf the web a lot, either disable the web browser's hard-drive cache entirely, or place the cache in the above mentioned tmpfs file system. Afaik, both Firefox and Opera allow you to do this.
- Once you've mastered your hard drive writes, install noflushd to actually spin down the drive when it is idle for a specified amount of time (I have a 60 second timeout).
My current laptop can have its drive spun down for days using such a setup, though I should mention that it gets some additional assistance from running some applications remotely via X, and keeping my documents on a network-mounted file server, which might not be an option for everyone.
Regards,
Kristian