1 |
I've been working on a program called powermgr. It's a daemon written |
2 |
in Perl that can control many power management functions on Linux, |
3 |
including CPU frequency and/or governor, screen brightness, laptop mode, |
4 |
fan speed, wireless power management, as well as runlevel and services, |
5 |
based on the state of the system. |
6 |
|
7 |
It works on the idea of a Profile that describes the settings for each |
8 |
component (in a device-independent way; for example, CPU speed is a |
9 |
percentage [0% = min speed, 100% = max speed] rather than a raw speed) |
10 |
and can be selected as a whole. It uses Rules to specify when a Profile |
11 |
should be selected. For example, you can have a "fast" Profile that |
12 |
turns the CPU speed up and turns off laptop mode, and activate it when |
13 |
the ac adapter is plugged in or when the programs make, gcc, or javac |
14 |
are running. |
15 |
|
16 |
It has support for standard ACPI as well as Asus, Dell, IBM, OmniBook, |
17 |
and Toshiba extensions, and also interfaces with other things like |
18 |
hddtemp and laptop_mode. It comes with a default configuration file |
19 |
that is quite thorough and should do a decent job, and a simple init |
20 |
script. |
21 |
|
22 |
A test I ran suggests that powermgr can increase battery life by 50% to |
23 |
100%. (Tested between "performance" and "powersave" modes on a Centrino |
24 |
laptop; intermmediate results are available on the website; YMMV). It's |
25 |
worked well for me. |
26 |
|
27 |
My goal for powermgr is to get to the point where you can install it, |
28 |
leave the default configuration file in place, start the daemon, and |
29 |
have it act like Windows and automatically throttle things up and down. |
30 |
I know there are ACPI shell scripts to do this, but powermgr is a more |
31 |
modular and extensible approach, and also supports a much wider variety |
32 |
of hardware. |
33 |
|
34 |
You can find powermgr at http://powermgr.sourceforge.net/. It's only on |
35 |
version 0.0.8 right now, but it's already quite featureful and I've |
36 |
weeded out all of the big bugs I can find. I'd appreciate any feedback |
37 |
you can give. (Just reply to this message, or leave me a note on |
38 |
SourceForge in the bug tracker). |
39 |
|
40 |
Thanks, |
41 |
|
42 |
Thomas Tuttle |