wmacpi: Fix -Wunused-but-set-variable compiler warning.
[dockapps.git] / wmacpi / ChangeLog
blobd3793e2305d1651ec2e0d8f866337593cd4b7e77
1 2014 August 18 2.2
2         Remove VCS files from source.
4         Manpage installation location now follows Filesystem Hierarchy
5         Standards.
7         Rename acpi to wmacpi-cli to avoid conflict with the acpi binary
8         that ships with acpiclient (http://sourceforge.net/projects/acpiclient).
10         Allow additional flags to be appended to CFLAGS and/or LDFLAGS during
11         build.
13         Now maintained by the Window Maker Developers Team
14         <wmaker-dev@lists.windowmaker.org>.
16         Git repository:
17         git clone git://repo.or.cz/dockapps.git
19 2009 August 10 2.2rc5
20         Small Makefile fix to allow compiling on newer GCCs, supplied
21         Michael Shigorin of ALT Linux.
23 2008 November 14 2.2rc4
24         Change the way that we sleep/wait for activity, to use select
25         rather than a fixed-length sleep, supplied by Julien Blache of
26         Debian:
28         Hi,
30         The attached patch for wmacpi makes it use select() instead of
31         sleeping. It also adjusts the timeout of the select() call
32         depending on the blink & scroll options.
34         If scrolling is not activated, there's no reason to wake up
35         10x/sec. If blinking is activated, waking up once per second is
36         enough. If blinking is not activated, then we can wake up just to
37         update the data and we're fine.
39         With scrolling and blinking disabled, this saves a number of
40         wakeups and helps battery life. Unfortunately there's another
41         source of wakeups that's probably due to libdockapp that still
42         makes 6 wakeups/seconds (in another thread it seems).
44         With this patch wmacpi makes a best effort to match the sample
45         rate set by the user, but that's hardly an issue I think.
47         I haven't released this patch yet in Debian, so if you like it and
48         want to roll out a release, feel free :) Otherwise I'll add it to
49         the package soon.
51         Thanks,
53         JB.
56 2008 March 18 2.2rc3
57         Some fixes for the sysfs interface support, supplied by
58         jblache@debian.org:
60         > Okay, I finally found time to make a new release including this
61         > patch - 2.2rc2. It's up on my website now.
63         I don't remember sending you the updated patch, as it turned out that
64         you can have different attributes in sysfs depending on what the
65         battery reports.
67         The current version is attached.
69         Thanks,
71         JB.
74 2008 March 14 2.2rc2
75         Support for the sysfs interface that became mandatory with kernel
76         2.6.24 (patch supplied by jblache@debian.org).
78         A number of graphics fixes also from jblache@debian.org.
80         Removed support for hardware reported critical battery status.
82 2007 July 14 2.2rc1
83         Major changes to command line handling and to the way we use
84         libdockapp, courtesy of Patrice Dumas. This should hopefully fix
85         several long-standing bugs with non-wmaker window managers (in
86         particular Debian bugs #280495 and 293546).
88         Updated to support newer kernels that no longer support
89         /proc/acpi/info - thanks to Samuel Ortiz.
91         Fixed a longstanding issue with redrawing - thanks to Vito
92         Caputo.
94         This version changes a number of command line options (little used
95         ones, but they're still incompatible changes) due to the
96         libdockapp work. In particular, -w becomes -x, -v becomes -V (and
97         takes an argument rather than being repeated), and -V becomes -v
98         (thanks to libdockapp grabbing -h, -v and -w for itself). Also,
99         long options are now supported for everything in wmacpi (but not
100         acpi, since it doesn't use libdockapp for command line parsing).
102 2007 January 10 2.2a1
103         Added a patch from Patrice Dumas to support newer versions of
104         libdockapp.
106         Updated email address in AUTHORS and manpages.
108 2005 February 2 2.1
109         Finalised libdockapp-0.5.0 port - no changes from 2.1rc1.
111 2005 Jan 5 2.1rc1
112         Typo fix in the manpage.
114         Ported to libdockapp-0.5.0 - all this needed was changing the
115         type of the dockapp width and height to unsigned short.
117 2004 October 24 2.0
118         Upped version number to 2.0.
120         Small typo fixes.
122         wmacpi 2.0 goes gold . . .
124 2004 September 28 2.0rc1
125         Added support for switching to capacity mode automatically, on
126         detecting dodgy reports from the battery.
128         Added support for capacity mode on charging, with automatic
129         enabling as per discharging.
131         Various cleanups.
133         Hopefully last release before the final 2.0.
135 2004 August 18 1.99r7
136         Implemented the libdockapp port - this seems to close Debian bug
137         #227819, but it hasn't received sufficient testing.
139         Implemented a capacity mode for calculating time remaining (as
140         opposed to the normal current rate mode) - this mode samples the
141         remaining capacity of the battery and notes the time at which it
142         was sampled, and uses a history of samples to estimate the rate of
143         drain on the battery. From there it calculates a value for time
144         remaining.
146         Also, various cleanups have gone in:
148         * a reworking of the scrolling code
150         * generic battery number support (rather than just
151         using two pixmaps, one for b1 and one for b2)
153         * stopped the battery glyph from blinking when running on AC
155 2004 July 19 1.99r6
156         Fix for Debian bug #250792 - the parser for the acpi files was
157         too stupid to deal with error conditions. I've now added some
158         basic checking to make it handle the error that caused the bug
159         report, but I'll need to add more later.
161 2004 April 23 1.99r5
162         Collected fixes for the collected fixes below . . .
164         * Manpage fixes, to reflect the reality of the current code.
166         * Code cleanups, to make a few things more sensible. Most notably,
167         the interface for setting the samplerate has changed so that it's
168         no longer inverted and illogical - you now say how many times you
169         want to sample per minute.
171         * Fixed an issue with initialisation - I'd moved the power_init()
172         call below the options parsing code, without dealing with the -m
173         option properly. The end result was that if you told it to monitor
174         a battery number, it would fail saying the battery didn't exist. I
175         moved the check for this out of the options parsing and after the
176         power_init() call.
178         * Fixed a leaking file descriptor in init_ac_adapters.
180         * Implemented a way to handle changing batteries - reinitialise
181         the battery info periodically. I don't know of a better way to do
182         that, since we'd have to do all that parsing anyway to find out if
183         it had changed . . .
185         libdockapp is waiting, but I think that's the only change left
186         without more bug repots . . .
188 2004 April 15 1.99r4
189         Collected fixes for various small issues.
191         * Fixed a problem with placement of the window when using the
192         click to place mode - turned out to be a sizehints problem.
194         * Some fixes to the manpage.
196         * Reenabled the CLI build by default - the Debian patches can
197         handle disabling it themselves.
199         * Added a way to disable the scrolling message, since some users
200         find this annoying.
202         I've left the big changes that are needed (like using libdockapp,
203         in the hope that it'll solve the docking problems) until later, so
204         that I can get these smaller fixes out. Hopefully soon . . .
206 2004 January 12 1.99r3
207         . . . and a fix for a fix that didn't fix it . . .
209 2004 January 12 1.99r2
210         Some cleanups and bugfixes found by the wonderful Debian users.
212         It's finally in testing!
214 2003 November 23 1.99
215         Finally claimed the wmacpi name as my own . . .
217         Renamed wmacpi-ng and acpi-ng, renamed the header files, fixed up
218         the makefile.
220         For the Debian package, also made compilation of the command line
221         tool optional, defaulting to not building it. This is because
222         after the renaming, my acpi clashes with the acpi package that's
223         already in Debian. The command line functionality is now
224         accessible via the -w option to wmacpi.
226         This is wmacpi 1.99, so that I can have a release packaged and in
227         Debian before going to 2.0, so that any bugs that are left can be
228         found by all the extra users.
230 2003 September 26 0.99
231         Fix the last of the old wmacpi code oddities (specifically, the
232         APMInfo struct, which was a completely inappropriate name given we
233         no longer deal with APM, and because of the various code
234         refactoring).
236         I think this is probably as good as I can make it without getting
237         more feedback and the like, so I'm going to make this version
238         0.99, preliminary to either wmacpi-ng 1.0 or wmacpi 2.0 (depending
239         which direction I go with that).
241 2003 September 23 0.92
242         Fix a few more bugs, and include an option to allow the user to
243         specify how often to sample the ACPI data - some BIOSes disable
244         all interrupts while reading from the battery, which apparently
245         causes some interactivity issues. I have no idea why reading once
246         every three seconds (which is our default), but there've been some
247         complaints.
249         Also fixed acpi-ng to properly handle the -a option.
251 2003 August 6 0.91
252         Fix a problem I'm seeing with docking the app - if the window name
253         is set to "acpi" rather than "apm" it doesn't dock . . .
255 2003 July 16 0.90
256         Make the time display show '--:--' instead of '00:00' when the
257         time remaining is 0 - I think this is reasonable, since it'll only
258         get into this state when the present rate value is 0. This only
259         happens when the battery is fully charged and neither discharging
260         or charging, or when the battery is completely drained. In any of
261         these states the time remaining is of very little interest, so we
262         don't lose anything. We also get to handle the (sadly, very
263         common) case where the ACPI subsystem doesn't report sane values
264         for the things we depend on.
266 2003 July 11 0.50a2
267         Make the time display show nothing (as opposed to 00:00) when the
268         time remaining is unknown, as requested by Emma Jane Hogbin.
270         Respect the critical level specified on the command line, and add
271         a new message to differentiate between the command line critical
272         level and the critical state reported by the battery.
274         Speed up the message scrolling, so that there isn't quite such a
275         painful delay between repeats. Also, up the speed when the battery
276         is low, more when it's critical, and scroll continuously when it's
277         hardware critical.
279         Finally, add support for disabling the blinking power and battery
280         glyphs from the command line, as requested by Sebastian
281         Henschel. We still blink the battery glyph when the battery
282         reports hardware critical level - I think that's worth being a bit
283         annoying about.
285         Also, added an acpi-ng manpage.
287 2003 July 11 0.50a1
288         Properly fix the AC adapter issue - it's not much use adding the
289         infrastructure and then forgetting to fix the code that uses it.
291         Fix the time disiplay so that it doesn't try to display values
292         greater than 99:59, since the display area won't fit anything
293         beyond that.
295 2003 July 10 0.50a
296         Bugfixes, to handle two problems: the case where something like
297         the present rate or some such is "unknown" (reported initially by
298         Emma Jane Hogbin, and where the AC adapter is called something
299         other than "AC" (reported by Sebastian Henschel). This an 'a'
300         release because I can't test these myself . . .
302 2003 July 6 0.50
303         Finally got rid of that annoying button - that space now contains
304         a 'B 1' or 'B 2' (only those two at present, since I'm too lazy to
305         fix it so that the number is generic. It should work fine for
306         anyone who doesn't have a freakish system with more than two
307         batteries . . .)
309         A few more code cleanups.
311 2003 July 1 0.19
312         libacpi cleanups and reworking - we now handle the charging
313         battery case properly, it seems.
315         Also, some attempts to make error printing a bit cleaner; still a
316         long way to go on that, though . . .
318 2003 June 24 0.15
319         Removed process_plugin_timer(), since it was doing nothing useful
320         at all . . .
322 2003 June 23 0.14
323         Removed libapm.c - wmacpi-ng is specifically for ACPI, with no APM
324         support.
326 2003 June 23 0.13
327         Some more code cleanups, designed to move libacpi to more of a
328         library than something built into wmacpi-ng. This is useful with
329         the seperate programs, though at present it's not used much.
331 2003 June 21 0.12
332         Added a command line tool, acpi-ng to query battery status from
333         the command line.
335 2003 May 30 0.11
336         Implemented multiple battery support, and averaging of the samples
337         in an attempt to even out the jumpiness of the timer.
339 2003 May 30 0.10
340         More major code cleanups: in particular the handling of the power
341         panel and the message has been cleaned up so that it's actually
342         sane and clean.
344         Next step from here is to actually implement handling of multiple
345         batteries, so that if there's a fully charge second battery
346         available it reports the correct time remaining (based on the
347         present rate of power consumption and the sum of the two battery's
348         remaining capacities).
350 2003 May 29 0.3
351         Some major reworking of the internals, to help fix the handling of
352         multiple batteries and such things.
354 2003 May 26 0.2a
355         Code cleanups to fix various problems with corner cases.
357 2003 May 26 0.2
358         Added support for multiple batteries: I took the simple route of
359         displaying only one battery per instance - to do more I'd need to
360         hack with the display code, and I'm not ready for that yet.
362         Added a -m option to specify the battery number to monitor.
364 2003 May 26 0.1
365         Changed package completely, to support the new ACPI code as of
366         2.4.21-rc2.
368         Since this code hasn't been touched in more than a year, I figure
369         I might as well have a go at hacking on it . . .
371         -- Simon Fowler, <simon@dreamcraft.com.au>
373 2002 Feb 17 1.34
374     Updated ACPI statistics gathering code for the latest ACPI patch from
375     Intel. Now uses/checks for subsystem version 20020214+. Redone the version
376     check a little bit.
378 2001 Apr 29 1.33
379     Little fix to ACPI version check so that I don't have to make a new
380     version each time a new kernel comes out
382 2001 Mar 24 1.32
383     Split ACPI and APM portions in different source files
384     Added power_init() function - handles checking subsystem presence,
385     version, etc.  Enumerates batteries in ACPI implementation
386     ACPI: Beginnings of multiple battery support - not fully implemented
387     ACPI: Get the battery ID from /proc/acpi/battery instead of hard-coding
388           it in - also helps with multi battery stuff
389     Added some stupid command line help
390     Added -c option to set critical battery alarm level.  Defaults to
391     10 percent, and added -b option to make noise when this critical level
392     is reached
393     APM: Updated for critical alarm stuff
394     Made a 20 color "low" quality pixmap for machines running 8bit displays
395     Updated README with some stuff, made separate INSTALL file
397 2001 Mar 13 1.31
398     Update for intel ACPI release version 20010313
399     Minor updates for new /proc layout
401 2001 Mar 07 1.3
402     Update for intel ACPI release verion 20010302
403     Proc format changed a little bit, so updates were necessary.
404     Added a check for specific acpi subsystem version - since each
405     new version seems to have a new interface, better be safe than
406     sorry :)
407     As usual, please test and report to me.
409     This ONLY works with linux acpica 20010302.  Download this version from
410     http://developer.intel.com/technology/iapc/acpi/downloads.htm - it's a
411     patch against 2.4.2
413 2001 Feb 28 1.21
414     Finally read through the ACPI specification.  Hah, they had all my
415     questions answered :)  Thus,
417     Confirmed remaining percentage formula (correct)
419     Now calculate "time remaining" according to the spec formula
421     Removed "battery load" hack since we now have "time remaining"
423     Fixed bug in display_percentage (10% didn't display right)
425     Released version 1.21
427 2001 Feb 23 1.2
428     Added support for ACPI.  This is very untested, and not very clean.
429     This has been tested on machines with only ONE battery, and only
430     with kernel 2.4.2 (that's where ACPI started to work for me)
432     Added some hackery to do with ACPI.  Check README.
434     Released 1.2
436 2001 Jan 16 1.1
437     Fixed all the stuff so that wmapm works as advertised:
438         Fixed dumb bug where after charging was done new message didn't scroll.
440         Added support for fucked APM bioses that display stuff wrong. (See
441         README to learn how to enable it. Obviously, it's disabled by default)
443         Reorganized apminfo structure and got rid of redundancy.
445         Reorganized acquire_apm_info.  All APM data is processed there.
447         Fixed display_state to do the Right Thing.
449         Fixed red blinking button to actually blink on critical battery, and
450         to stop when it isn't critical anymore.  I don't think it ever worked
451         right in 1.0.
453     Created ChangeLog.
455     Updated README.
457     Released 1.1.