Initial repository for wmlaptop2
This initial repo contains all the cleanups and new code on
top of wmlaptop-1.4, but without any history of how it
was developed (since 07.06.2007, btw).
It is based on wmlaptop-1.4, whose original authors can
be found in AUTHORS. I severely altered the code to
remove almost everything which I personally don't care.
There was a lot of bloat too, with too many configuration
options etc. As a result, even with the addition of the
code to display power usage and CPU temperature, the code
shrinked to less than 50% of its original size:
[mafra@Pilar:wmlaptop2-crm.git]$ ls -l /usr/local/bin/wmlaptop*
-rwxr-xr-x 1 root root 46008 2009-10-11 01:11 /usr/local/bin/wmlaptop2*
-rwsr-sr-x 1 root root 105544 2009-06-01 17:56 /usr/local/bin/wmlaptop*
Furthermore, note also that wmlaptop2 is no longer 'suid' because
it does not change the CPU frequency by itself. That task is
delegated to the 'ondemand' governor, which does a much better
job than the original wmlaptop code responsible for the frequency
changes.
Wmlaptop2 requires the linux kernel, and a fairly recent one. I removed
all the legacy support (APM, /proc etc). It no longer resembles the
original wmlaptop in the way it works, because it does not set the CPU
frequency using the 'userspace' governor, _requiring_ 'ondemand' instead.
There are still some more possible code cleanups, but I am quite
happy with the present maintainable state.
Enjoy it.
28 files changed: