Change backlight according to session's idle time
[wmlaptop2.git] / CHANGELOG
blob24b5abf4d469ac910820183bdf2fd42edcb81d8f
1 07-06-2007 to 10-10-2009 - Version 2.0 - Carlos R. Mafra
3         * Added information about power consumption (mostly copied from Powertop)
4           and CPU temperature
5         * Support only 'ondemand' cpu governor (kernel 2.6+)
6         * Support only /sys where it makes sense
7         * Remove a lot of things from version 1.4 (too many bloaty features).
8           Size reduced to less than 50% compared with wmlaptop-1.4
9         * Many code cleanups (not finished yet)
10         * Thanks to Nicolas Bonifas for replacing the battery code which
11           used /proc/acpi to the modern /sys/ interface
12         * More stuff that I forgot
14 11-09-2004 - Version 1.4 - Adrian Robert, Dino Ghilardi, Giacomo Galilei
16         * Added:
17                 Makefile.Longrun src/longrun.h src/lungrun_linux.c, src/longrun_freebsd.c
18           Updated:
19                 src/main.h src/cpu.c src/init.c src/event.c
20                 
21           Implemented support for Transmeta CPUs with Longrun capability.  On these
22           systems you set a range of frequencies (actually "performance levels") and
23           the system will automatically adjust within the range based on CPU load
24           (like the auto-freq function but hundreds of times per second).  The
25           support works as follows:
27           - The arrows shift the maximum performance level up and down by one unit.
28                 The minimum always stays at 0 (which is equivalent to, e.g., 300 MHz on a
29                 1 GHz CPU).
30           - If "auto-freq" is turned on, the range is set to (0, max), otherwise it
31                 is set to (max, max).
32           - Theoretically code could be added to adjust the shift size based on
33                 right-clicks on the arrows, but with only 5 levels typical on a CPU, this
34                 isn't a high priority.
35           - On startup, the setting is set to 0,current, current,current depending on
36                 auto-freq state, where min or max is used in place of current if min or
37                 max setting is requested.  Note that this and subsequent adjustments may
38                 not interact well with other processes or daemons adjusting longrun state,
39                 such as an acpid script.
40         
41         * src/main.c
42           fixed bug whereby don't-blink setting in argsConfig.h was being ignored.
44         * src/main.c src/main.h src/event.c src/battery.c
45           added cpuUpdate and batteryUpdate options/defaults so update rates can be
46           configured.
48         * src/pixmap.c 
49           is now possible to choose among 3 type of skin
51 11-05-2004 - Version 1.3 - Giacomo Galilei
53     * src/event.c
54       added a char in the 32th lines and fixed the paradisiac startup
55       error: now if battery percentage is at 100% (and no more at 10% !!)
56       when wmlaptop starts, ac_adapter is plugged in and paradisiac option
57       is enabled, cpu enter in the paradisiac mode
58     * src/cpu.c
59       cpuSetParadisiac has been improved to allow wmlaptop set the
60       paradisiac mode even when wmlaptop starts and we already be at 100%
61       battery percentage
62     * src/init.c src/init.h
63       added a function scalingGovernorHelper() which will be called when
64       wmlaptop uses the /sys/..'s way to set the cpu freq. Then it will
65       read from scaling_governor to check that the userspace governor is
66       running in the kernel. If not, it will try to make kernel run with
67       it
68     * src/event.c
69       sleeping time has been increased a little bit, to follow an user
70       suggestion, but I didn't increased it too much, becouse I don't
71       want to lose the accuracy in the cpu load showing.
72     * src/battery.c
73       I really haven't never test the APM support. I believe I've found
74       a bug while I was updating files. Now 'setNewBatteryState' is called
75       whenever APM_Update is called (just lisk ACPI_Update)
76     * src/main.c src/main.h
77       a new argument has been added: "-t". With this arg comes a new
78       function of wmlaptop: now it can show you battery and cpu information
79       even when in console: no X-connection is required.
80       Calling wmlaptop with -t option will make wmlaptop show you info
81       and exit
82     * Makefile
83       the useless call to 'gtk-config' has been removed
84     * .info
85       improved info help file
87 08-03-2004 - Version 1.2  - Daniel Winkler, Giacomo Galilei
89         * src/main.c src/main.h src/argsConfig.h
90           enabled a way to disable the 100% CPULOAD blinking at argsConfig.h
91           it can be done also by passing '--dontblink' in the command line
92         * src/draw.c
93           the "battery bar" can now be split, when 2 or more batteries are
94           present. I tried it with my 2 slots, but it _could_ work for 3
95           batteries, too, although I can hardly imagine how this could be
96           (maybe with an 3rd external battery .. ?)
97         * src/battery.c
98           bug solved at the remainig capacity percentage calculation:
99           before we added the battery's percentages and divided it through the
100           number. Unfortunately this only works if both batteries have the
101           same capacity. Fixed
102         * src/battery.c
103           in estimatedTimeClock() sometime happends that the difference 
104           between the first and the last percentage relevation is 0 (reported
105           only in some laptop), and this make wmlaptop quit with a "floating
106           point exception" when it makes a division by this difference (which
107           is just 0). Cannot say "fixed" here, becouse this behaviour is 
108           just "patched": wmlaptop wont perform the division and the
109           estimated remaining time will be set to 0.
111 25-01-2004 - Version 1.1  - Giacomo Galilei
113         * src/battery.c:
114           fixed a bug which display a dummy error in the free() call.
115         * src/event.c src/init.c
116           now wmlaptop ask to Xserver the ButtonRelease event to handle
117           the "right mouse button release": at this event is attached
118           the screen saver start
119         * src/cpu.c
120           added new function called setCpuParadisiac(): when the battery
121           state is at 100% and the AC_Adapter is plugged in, wmlaptop thinks
122           that there is no reason to keep the battery use low: wmlaptop will
123           set the cpu to the maximum frequency. This behaviour can be set by
124           user passing the arg --paradisiac=on|off
125         * src/battery.c
126           changes to function ACPI_maxCapacity(): now is possible to use
127           "last full capacity" tag instead of "design capacity" to read the
128           maximum capacity of the battery (very usefull for old batteries).
129           To use this tag, the user have to pass --lfc=N, where N is the
130           number of battery. For this feature there have been added three more
131           function: ACPI_lfcArgs_add() ACPI_lfcArgs_get() ACPI_lfcArgs_free()
132         * src/event.c src/battery.c
133           substantial changes to the way wmlaptop updates the battery state.
134           now every update is done each two seconds, and estimatedTimeClock()
135           now estimates the remaining time to the full recharging too
136         * src/autoscript.c
137           added this new file which comes with a lot of new feature: is now
138           possibile to call shutdown when the battery is at very low (by 
139           checkAutoShutdown(), and args like --auto-shutdown and
140            --shutdown-delay) and to play speaker as alarm some time before (by 
141           checkAutoAlarm() and args like --auto-alarm --alarm-type and
142           --alarm-repeat). The alarm function comes with 4 different funny
143           jingle :). Moreover when the alarm is playing the dockapp will flash
144           "LOW BATTERY". To do this, wmlaptop fork() in two processes: the
145           child will play the speaker and the father will display "LOW BATTERY"
146            until the child is alive (by startFlashingLowBattery() and
147           stopFlashingLowBattery() ). Is also possible to listen a demo of the
148           jingles by passing -p at the command line: wmlaptop will play the
149           speaker and then will exit
150         * src/battery.c
151           the "no present battery state" has been improved: now you can start 
152           peacefuly wmlaptop even without any battery plugged in. Wmlaptop will
153           remember that the battery is not present and will try to read
154           information from the file each 2 seconds.
156 08-01-2004 - Version 1.01 - Giacomo Galilei
158         * src/battery.c:
159           not each directory in /proc/acpi/battery/ have to be considered
160           as a laptop-battery's informations' directory; now battery.c knows
161           it, and if it finds errors reading the capacity of a battery,
162           wmlaptop won't exit, but it will continue to work skipping that data.
163         * src/main.c:
164           added free_and_exit() which contain some free functions for
165           every mallocated memory. Every time the program ends, this
166           function will be called before (every 'exit( code );' has
167           been changed in 'free_and_exit( code );'
168         * src/battery.c:
169           the mallocation and freeing of memory for the battery-vector of
170           powerState is now handled by mallocBatteryVector() and
171           freeBatteryVector() functions.
172         * src/main.c src/main.h src/argsConfig.h
173           added the argument '-q' '--quiet' to not display simple messages
174           or warnings. (the errors remain displayed)