Initial repository for wmlaptop2
commit905d92977139be9b8359f8b606be2dfbe8283b62
authorCarlos R. Mafra <crmafra@gmail.com>
Sat, 10 Oct 2009 23:21:25 +0000 (11 01:21 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 10 Oct 2009 23:21:25 +0000 (11 01:21 +0200)
treeeffc3111484435039677f0c2c7595e903c222ba5
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:
.gitignore [new file with mode: 0644]
.info [new file with mode: 0755]
AUTHORS [new file with mode: 0644]
BUGS [new file with mode: 0644]
CHANGELOG [new file with mode: 0644]
INSTALL [new file with mode: 0644]
LICENSE [new file with mode: 0644]
Makefile [new file with mode: 0644]
README [new file with mode: 0644]
THANKS [new file with mode: 0644]
src/Makefile [new file with mode: 0644]
src/autoscript.c [new file with mode: 0644]
src/autoscript.h [new file with mode: 0644]
src/battery.c [new file with mode: 0644]
src/battery.h [new file with mode: 0644]
src/cpu.c [new file with mode: 0644]
src/cpu.h [new file with mode: 0644]
src/draw.c [new file with mode: 0644]
src/draw.h [new file with mode: 0644]
src/event.c [new file with mode: 0644]
src/event.h [new file with mode: 0644]
src/init.c [new file with mode: 0644]
src/init.h [new file with mode: 0644]
src/main.c [new file with mode: 0644]
src/main.h [new file with mode: 0644]
src/pixmap.c [new file with mode: 0644]
src/pixmap.h [new file with mode: 0644]
src/version.h [new file with mode: 0644]