wmbattery: Bump to version 2.50.
[dockapps.git] / wmbattery / ChangeLog
blob3e21109b40e1a6ee8c4c684a533184152bf34537
1 wmbattery (2.50)
2   * Free memory allocated by strdup.  This corrects a mistake in [1] noticed by
3     Andrew Shadura [2].
5     [1] http://repo.or.cz/dockapps.git/commitdiff/29e5012
6     [2] https://github.com/d-torrance/wmbattery/commit/
7         9f7be30#commitcomment-12965145
9 wmbattery (2.49)
10   * Add config.h.in to `make distclean`.  Its absence created a problem for the
11     Debian package.  During the build, dh_auto_clean results in a call to
12     autoheader, which creates config.h.in.  If this isn't then removed, we get
13     a dpkg-source error.  Obtained from [1].
15   [1] https://sources.debian.net/src/wmbattery/2.48-1/debian/patches/
16       clean_config.h.in.patch/
18 wmbattery (2.48)
19   * Escape hyphen in manpage. Fixes hyphen-used-as-minus-sign Lintian warning
20     in the Debian package.  Patch from [1].
21   * Change manpage section from deprecated 1x to 1.
22   * Makefile - use autoheader too instead, configure complains about:
23       config.status: error: cannot find input file: `config.h.in'
24     Patch by Christoph Fritz.
25   * upower - don't exit after suspend/hibernation wakup Immediately after
26     suspend/hibernation wakup cycle, up_client_get_devices() can fail:
27       libupower-glib-WARNING **: up_client_get_devices failed: Timeout was
28       reached
29     Since we do not interpret the UPower signals, just don't exit wmbattery
30     after first up_client_get_devices() failure.
31     Patch by Christoph Fritz.
32   * Expand -g option to allow positions relative to right or bottom. Use '-'
33     instead of '+', e.g., `wmbattery -g -0+0` will place wmbattery in the upper
34     right hand corner of the screen.
35     Thanks to Christoph Fritz for the feature request.
36   * Improve help text for -i option.
37   * Add -n option to disable dial graphic.
38     Thanks to Christoph Fritz for the feature request.
39   * Fix typos. Ran `codespell -w`.
40   * Properly free malloced memory. Fixes memory leak found by cppcheck.
41   * Remove unnecessary brace. Fixes "Invalid number of character ({) when these
42     macros are defined" errors given by cppcheck.
44   [1] https://sources.debian.net/src/wmbattery/2.47-1/debian/patches/escape_manpage_hyphens.patch/
46  -- Doug Torrance <dtorrance@monmouthcollege.edu>  Wed, 13 May 2015 23:31:47 -0500
48 wmbattery (2.47)
49   * Avoid redefinition of apm_read/apm_exists in *BSD.
50     The two functions are defined if the BSD-specific apm headers are found and
51     if libapm is not found.  Both of these conditions will be true on BSD
52     systems, so we use #elif instead of the separate #if statements.
53   * Use AC_CHECK_LIB instead of AC_CHECK_HEADERS to check for libapm.
54     If autoconf finds an apm.h other than the one belonging to libapm, we get
55     builds errors like the ones reported by Haroldo Gambini Santos in [1].
57     [1] http://lists.windowmaker.org/dev/msg07937.html
59  -- Doug Torrance <dtorrance@monmouthcollege.edu>  Thu, 19 Feb 2015 23:26:34 -0600
61 wmbattery (2.46)
62   * Make it possible to work without libapm as libapm and apm.h are not
63     necessarily available on Linux.
64   * Update upower support.  Reuse dbus connection and set delay to actually
65     refresh values.
66   * Thanks to Ludwig Nussel <ludwig.nussel@suse.de> for patches.
68  -- Doug Torrance <dtorrance@monmouthcollege.edu>  Sat, 17 Jan 2015 08:37:05 -0600
70 wmbattery (2.45)
71   * Switch from a Debian native package to a non-native package.
72     - Remove debian directory.
73     - Rename debian/changelog to ChangeLog, strip Debian-specific information.
74     - Move copyright information from debian/changelog to header in wmbattery.c.
75   * Escape hypen in manpage.
76   * Move assignment of old_status until after cur_info is initialized to avoid
77     uninitialized variable warning.
78   * Use consistent formatting in source and delete trailing whitespaces.
79   * Add -x option to run a command when battery is critical.  Based on a patch
80     by Cristoph Fritz.  See https://bugs.debian.org/543674.
81   * Add -v option to display version number.
82   * Restore BSD support.  Code that was ripped out of wmbattery for version
83     1.22, which introduced the dependency on libapm but dropped support for the
84     BSDs, has been restored.
86  -- Doug Torrance <dtorrance@monmouthcollege.edu>  Sun, 05 Oct 2014 10:23:34 -0500
88 wmbattery (2.44)
90   * Better AC detection.
91   * Support times with upower and acpi (Closes: #740885).
92   * Use the latest upower API (Closes: #748935).
93   * Fix upower detection.
95  -- Andrew Shadura <andrewsh@debian.org>  Fri, 18 Jul 2014 01:14:49 +0200
97 wmbattery (2.43)
99   * Orphaned the package. It will probably be removed as it does not work with
100     current kernels.
101   * Added -i to display as icon. Thanks, Tovar Closes: #732398
103  -- Joey Hess <joeyh@debian.org>  Tue, 27 May 2014 16:01:34 -0400
105 wmbattery (2.42)
107   * Stop building with flash-in-the-pan HAL. Instead update acpi
108     interface to use /sys/class/power_supply.
109     Note that this needs acpica_version 20011018.
110     Closes: #613166
111     (Patch developed by Andrew Shadura.)
112   * Also added support for upower, which is used by default,
113     to avoid chasing kernel sysfs changes.
114     (Patch developed by Andrew Shadura.)
115     Closes: #727102
117  -- Joey Hess <joeyh@debian.org>  Thu, 05 Dec 2013 15:29:41 -0400
119 wmbattery (2.41)
121   * Accumulated packaging modernizations. Closes: #666370
123  -- Joey Hess <joeyh@debian.org>  Fri, 30 Mar 2012 10:20:17 -0400
125 wmbattery (2.40)
127   * Add -s option which can be used to ignore fluctuations
128     in reported battery charge (as seen on the EeePC) when
129     using -e. Closes: #527870 (Joseph Huang)
131  -- Joey Hess <joeyh@debian.org>  Sat, 09 May 2009 16:53:10 -0400
133 wmbattery (2.39)
135   * Use debhelper v7; rules file minimisation.
136   * Depend on hal since /proc/acpi is gone from the default kernels now.
137     Closes: #491099
139  -- Joey Hess <joeyh@debian.org>  Tue, 22 Jul 2008 00:23:47 -0400
141 wmbattery (2.38)
143   * Magic header file reordering to work around the disgusting
144     linux-libc-dev/libc headers conflicts (#435700). Closes: #463811
146  -- Joey Hess <joeyh@debian.org>  Wed, 27 Feb 2008 15:08:53 -0500
148 wmbattery (2.37)
150   * Support reconnecting to dbus if it's restarted. (AKA giant dbus-PITA)
152  -- Joey Hess <joeyh@debian.org>  Wed, 20 Feb 2008 22:44:00 -0500
154 wmbattery (2.36)
156   * Support reconnecting to hal if the connection is closed, as happens
157     if the hal is restarted.
159  -- Joey Hess <joeyh@debian.org>  Wed, 20 Feb 2008 22:29:00 -0500
161 wmbattery (2.35)
163   * Don't spew error messages if optional hal properties are not available.
164   * Only check to see if a battery is charging if hal reports there is AC
165     power. This is perhaps not 100% correct in systems with multiple batteries
166     that may cross-charge when off AC, but it's faster and it avoids bugs in
167     hal (#463740).
169  -- Joey Hess <joeyh@debian.org>  Sat, 02 Feb 2008 17:28:37 -0500
171 wmbattery (2.34)
173   * Bit the bullet, stopped trying to track the kernel's ever changing
174     interfaces, and added support for querying battery information from hal.
175     Support for the old kernel interfaces (APM, ACPI, etc) is still present,
176     but to use new interfaces such 2.6.24's /sys/class/power_adapter, you'll
177     have to have dbus and hal.
178     Closes: #456247, #246641, #290712, #393616, #456248
179   * Fix -e option.
181  -- Joey Hess <joeyh@debian.org>  Fri, 01 Feb 2008 21:36:39 -0500
183 wmbattery (2.33)
185   * Correct issue with the statically allocated string returned by
186     get_acpi_value that caused it to only look at last full capacity and never
187     really at design capacity.
189  -- Joey Hess <joeyh@debian.org>  Sat, 22 Dec 2007 22:26:38 -0500
191 wmbattery (2.32)
193   * Guard some divisions against division by zero. I've never seen that
194     happen and can't reproduce it, but see #454766.
195   * Merge acpi change from procmeter3: Limit string length when reading from
196     /proc/.
198  -- Joey Hess <joeyh@debian.org>  Fri, 07 Dec 2007 14:56:41 -0500
200 wmbattery (2.31)
202   * Further fix for my strange battery. If the present capacity is larger
203     than the maximum capacity, rescan to figure out the new max capacity.
205  -- Joey Hess <joeyh@debian.org>  Sun, 02 Dec 2007 15:50:29 -0500
207 wmbattery (2.30)
209   * My new battery has a design capacity of 7800 mAh and yet its
210     last full capacity was 9488, and its currently charged to 8540.
211     Deal with this wonderful miracle^W^Wcrap hardware by taking the max
212     of the design or last full capacities.
214  -- Joey Hess <joeyh@debian.org>  Tue, 23 Oct 2007 22:21:06 -0400
216 wmbattery (2.29)
218   * Update to new menu policy.
219   * The repository has moved from svn to git.
221  -- Joey Hess <joeyh@debian.org>  Fri, 19 Oct 2007 21:14:22 -0400
223 wmbattery (2.28)
225   * Correct off-by-one in acpi.c
226   * Put url to new web page in README.
228  -- Joey Hess <joeyh@debian.org>  Mon, 04 Jun 2007 16:44:03 -0400
230 wmbattery (2.27)
232   * Minor bug fix to acpi code, don't skip over dotfiles.
233   * Patch from Vincent Bernat adding support for 2.6.21, which changes
234     yet again where the ACPI version number is stored. Closes: #423612
236  -- Joey Hess <joeyh@debian.org>  Mon, 14 May 2007 14:23:09 -0400
238 wmbattery (2.26)
240   * Add missing build dep on libxt-dev. Closes: #379247
242  -- Joey Hess <joeyh@debian.org>  Tue, 25 Jul 2006 22:00:41 -0400
244 wmbattery (2.25)
246   * Merge acpi.c changes for more robust AC power status from sleepd 1.3.0.
248  -- Joey Hess <joeyh@debian.org>  Thu, 30 Mar 2006 14:59:31 -0500
250 wmbattery (2.24)
252   * Current policy.
253   * Man page section fix.
254   * Menu file move.
255   * GPL update.
256   * Remove configure script in distclean.
258  -- Joey Hess <joeyh@debian.org>  Sun, 18 Dec 2005 17:39:07 -0500
260 wmbattery (2.23)
262   * xlibs-dev transition
264  -- Joey Hess <joeyh@debian.org>  Fri, 16 Dec 2005 14:54:25 -0500
266 wmbattery (2.22)
268   * Fix acpi detection, the code to read /proc/acpi/info was not updated
269     to the new cd-less code. Closes: #307278
271  -- Joey Hess <joeyh@debian.org>  Mon,  2 May 2005 18:14:01 -0400
273 wmbattery (2.21)
275   * Merge in changes from procmeter3's version of acpi.c, made by Andrew M.
276     Bishop, that avoid the ugly chdir to /proc/acpi and add a bit of error
277     checking. Now fully synced with procmeter3 3.4d.
279  -- Joey Hess <joeyh@debian.org>  Sat, 30 Apr 2005 22:58:44 -0400
281 wmbattery (2.20)
283   * Patch from Kris Verbeeck to add a -a option to play an au file
284     on low battery.
285   * Document it in the man page.
286   * Unicode dash fixes on man page.
287   * Some indentation fixes.
289  -- Joey Hess <joeyh@debian.org>  Wed, 24 Nov 2004 16:20:39 -0500
291 wmbattery (2.19)
293   * Use the proper new-style acpi string when looking for ac adaptor status.
294     Closes: #220039
295   * Remove the hack I added for my old picturebook, as it causes bad results
296     on systems that label a fully charged battery's charging rate as
297     unknown and state as charging.
298   * Base battery charge calculations for ACPI on design capacity, instead of
299     last full capacity. Some batteries may exceed previous last full on
300     their next charging, and this also lets you see when you have a damaged
301     battery that is not fully charging.
302   * If acpi battery charging state is unknown, but the rate is 0,
303     then the battery is charged and on AC power, and the unknown state can
304     be ignored. Analysis and patch by "TeXitoi".
306  -- Joey Hess <joeyh@debian.org>  Mon, 17 Nov 2003 20:28:56 -0500
308 wmbattery (2.18)
310   * Sort devices returned by readdir in acpi, since the order can be random.
311     Closes: #204721
313  -- Joey Hess <joeyh@debian.org>  Wed, 13 Aug 2003 01:45:55 -0400
315 wmbattery (2.17)
317   * Make acpi code put -1 in the time remaining field if the "present rate"
318     is 0. Closes: #204722
319   * Enable internal time estimate code in this case.
321  -- Joey Hess <joeyh@debian.org>  Mon, 11 Aug 2003 17:21:17 -0400
323 wmbattery (2.16)
325   * Another patch from Hugo Haas, this time it adds time-till-charged
326     estimates for systems that lack them. The estimates are on by default,
327     though they're only linear guesses and may not be accurate.
328   * Display dimmed time estimate field if there is no estimate available.
329   * -e switch renamed to -r and forces both estimates on.
331  -- Joey Hess <joeyh@debian.org>  Thu,  7 Aug 2003 16:41:37 -0400
333 wmbattery (2.15)
335   * Patch from Hugo Haas <hugo@larve.net> to change when the icon is
336     refreshed for less latency.
337   * Patch from Hugo Haas to have wmbattery do its own time left estimates
338     if that info is not available from the machine.
339   * Add -r switch to force wmbattery to estimate the time left.
341  -- Joey Hess <joeyh@debian.org>  Sun,  3 Aug 2003 00:00:09 -0400
343 wmbattery (2.14)
345   * Set the cutoff point for old acpi to 20020214 (was 20020208).
346     Closes: #202083
348  -- Joey Hess <joeyh@debian.org>  Sun, 20 Jul 2003 13:44:59 +0200
350 wmbattery (2.13)
352   * Added support for ACPI version 20030109 (2.5 kernel), and generally
353     support for changing ACPI strings across versions. Closes: #177249
355  -- Joey Hess <joeyh@debian.org>  Thu,  6 Feb 2003 14:50:21 -0500
357 wmbattery (2.12)
359   * Rebuild w/o /usr/doc link.
361  -- Joey Hess <joeyh@debian.org>  Fri, 15 Nov 2002 15:23:13 -0500
363 wmbattery (2.11)
365   * Corrected inverted test to see if ac power is online, that was only called
366     on 2 battery systems. Closes: #152356
368  -- Joey Hess <joeyh@debian.org>  Wed, 10 Jul 2002 16:10:40 -0400
370 wmbattery (2.10)
372   * Deal with acpi putting nothing but "Present: no" in the info file for the
373     second battery of a thinkpad. This was with kernel 2.4.19-pre10.
374     Closes: #149715
375   * Moved DEB_BUILD_OPTIONS out of makeinfo.
376   * Updated to new autoconf.
378  -- Joey Hess <joeyh@debian.org>  Tue, 11 Jun 2002 22:51:45 -0400
380 wmbattery (2.09)
382   * Moved makefile stuff out of makeinfo, so it is just definitions.
383   * Support DEB_BUILD_OPTIONS.
384   * debhelper v4.
386  -- Joey Hess <joeyh@debian.org>  Sat,  1 Jun 2002 16:31:53 -0400
388 wmbattery (2.08)
390   * Don't crash if there is a /proc/acpi/ with no status file.
392  -- Joey Hess <joeyh@debian.org>  Fri, 31 May 2002 21:35:06 -0400
394 wmbattery (2.07)
396   * Added symbolic apm info constants to "apm.h", in case they are
397     not in the system <apm.h>.
398   * Put $(LIBS) last at link time.
400  -- Joey Hess <joeyh@debian.org>  Tue, 23 Apr 2002 11:49:16 -0400
402 wmbattery (2.06)
404   * Deal with -1 time left from apm (no estimate).
405   * Never dim colon, fixes display bug.
407  -- Joey Hess <joeyh@debian.org>  Mon, 22 Apr 2002 12:30:35 -0400
409 wmbattery (2.05)
411   * (acpi) don't display the rather wacky "- :0" on an almost full battery
413  -- Joey Hess <joeyh@debian.org>  Tue,  9 Apr 2002 23:19:35 -0400
415 wmbattery (2.04)
417   * Work around stupid ACPI output format  bug. Critical battery detection
418     now works.
420  -- Joey Hess <joeyh@debian.org>  Mon,  8 Apr 2002 22:49:43 -0400
422 wmbattery (2.03)
424   * Better error reporting.
426  -- Joey Hess <joeyh@debian.org>  Sun,  7 Apr 2002 22:57:17 -0400
428 wmbattery (2.02)
430   * Improved acpi interface (also used for procmeter3 module now).
431   * Fixed segfault on non-ACPI systems.
433  -- Joey Hess <joeyh@debian.org>  Sun,  7 Apr 2002 17:48:41 -0400
435 wmbattery (2.01)
437   * Corrected minus sign in bigfont to proper faux-lcd appearance. Also fixed
438     offset slightly.
440  -- Joey Hess <joeyh@debian.org>  Fri,  5 Apr 2002 23:34:38 -0500
442 wmbattery (2.00)
444   * Added ACPI support, including battery change detection, and battery
445     charging time countdown timer.
446   * Added -w parameter to configure delay time.
447   * Added -c and -l parameters to allow user control of battery low/critical
448     percentages.
449   * Use constant defs from apm.h instead of nasty hardcoded numbers.
450   * Made -Wall clean.
451   * Reorg.
452   * Removed -s option, just fall back to SPIC if ACPI and APM are not
453     available.
455  -- Joey Hess <joeyh@debian.org>  Fri,  5 Apr 2002 12:53:18 -0500
457 wmbattery (1.23)
459   * Added support for querying for battery status via the sonypi driver, for
460     sony laptops that do not have apm support. This is a stopgap until linux
461     gets full ACPI support.
463  -- Joey Hess <joeyh@debian.org>  Thu,  4 Apr 2002 10:25:31 -0500
465 wmbattery (1.22)
467   * Converted to use libapm, instead of the hacked up old version of it
468     used before. This probably breaks wmbattery on the BSD's, for now. The
469     correct fix for the BSD's will be to get support for their apm
470     implementations into libapm. To that end, I have filed a bug with all the
471     code I ripped out.
472   * The -f option also had to be removed. If libapm does not work right on
473     systems that needed that flag it's probably a bug in the library.
474   * Closes: #100027
476  -- Joey Hess <joeyh@debian.org>  Sun, 24 Feb 2002 12:47:53 -0500
478 wmbattery (1.21)
480   * Typo, Closes: #125485
482  -- Joey Hess <joeyh@debian.org>  Mon, 17 Dec 2001 21:41:52 -0500
484 wmbattery (1.20)
486   * Still show percent sign when blinking low. Closes: #123183
488  -- Joey Hess <joeyh@debian.org>  Sun,  9 Dec 2001 22:44:17 -0500
490 wmbattery (1.19)
492   * Used two more grey's in the transition between shadow and highlight
493     in the dial. Looks a bit better.
495  -- Joey Hess <joeyh@debian.org>  Wed,  7 Nov 2001 22:35:37 -0500
497 wmbattery (1.18)
499   * Autoconf 2.50 demands an absolute --mandir=
501  -- Joey Hess <joeyh@debian.org>  Thu, 24 May 2001 15:04:23 -0400
503 wmbattery (1.17)
505   * Patch from Edward Betts <edward@debian.org> to make the icon redraw
506     immediately when it gets an expose event. The patch also lowers the CPU
507     time used as the icon is not needlessly redrawn every second. Thanks
508     Edward! Closes: #97779
509   * Battery blink fixup. (I seem to have inexplicably lost the changelog
510     and version involving making the battery blink red on and off when the
511     status is critical -- I did this recently because the eye tends to
512     notice the motion).
514  -- Joey Hess <joeyh@debian.org>  Thu, 17 May 2001 13:16:55 -0400
516 wmbattery (1.16)
518   * Another patch from Kevin, which allows removal of the
519     config.{sub,guess} files and does smarter detection.
521  -- Joey Hess <joeyh@debian.org>  Mon,  5 Mar 2001 19:49:36 -0800
523 wmbattery (1.15)
525   * Fixed icon search path.
527  -- Joey Hess <joeyh@debian.org>  Tue, 27 Feb 2001 18:00:44 -0800
529 wmbattery (1.14)
531   * OpenBSD port by Kevin Christen <christen@ix.netcom.com>
532   * Uses autoconf.
534  -- Joey Hess <joeyh@debian.org>  Mon, 26 Feb 2001 22:06:55 -0800
536 wmbattery (1.13)
538   * Added support for using files other than /proc/apm, via a -f switch.
539     (See bug #69585)
541  -- Joey Hess <joeyh@debian.org>  Mon, 21 Aug 2000 11:52:21 -0700
543 wmbattery (1.12)
545   * Use /usr/share/icons/wmbattery, not /usr/X11R6/share. Sheesh.
547  -- Joey Hess <joeyh@debian.org>  Thu,  6 Apr 2000 13:16:52 -0700
549 wmbattery (1.11)
551   * Build deps.
553  -- Joey Hess <joeyh@debian.org>  Sat,  4 Dec 1999 16:56:32 -0800
555 wmbattery (1.10)
557   * Removed install-stamp target, which can cause obscure problems.
559  -- Joey Hess <joeyh@debian.org>  Thu, 30 Sep 1999 13:32:33 -0700
561 wmbattery (1.9)
563   * Expanded the man page to detail exactly what all parts of the display
564     mean.
566  -- Joey Hess <joeyh@debian.org>  Mon, 13 Sep 1999 11:37:11 -0700
568 wmbattery (1.8)
570   * Integrated with my build system.
572  -- Joey Hess <joeyh@debian.org>  Sun, 12 Sep 1999 12:47:00 -0700
574 wmbattery (1.7)
576   * FHS.
578  -- Joey Hess <joeyh@debian.org>  Mon,  6 Sep 1999 16:57:13 -0700
580 wmbattery (1.6)
582   * FreeBSD support, patch from Motoyuki Kasahara <m-kasahr@sra.co.jp>.
584  -- Joey Hess <joeyh@debian.org>  Sun,  8 Aug 1999 20:04:10 -0700
586 wmbattery (1.5)
588   * Built w/o that ugly bug source known as fakeroot. Now all files are
589     owned by root, not me.
591  -- Joey Hess <joeyh@debian.org>  Sun,  8 Aug 1999 17:35:32 -0700
593 wmbattery (1.4)
595   * Let's try again on that patch.
597  -- Joey Hess <joeyh@debian.org>  Sun,  8 Aug 1999 17:30:18 -0700
599 wmbattery (1.3)
601   * Patch from Hugo Haas <hugoh@MIT.EDU> to allow geometry support.
603  -- Joey Hess <joeyh@debian.org>  Sun,  8 Aug 1999 16:18:44 -0700
605 wmbattery (1.2)
607   * Patch from Edwin van Ouwerkerk Moria, may make the charging indicator
608     work better on thinkpads.
610  -- Joey Hess <joeyh@debian.org>  Thu,  1 Jul 1999 09:58:04 -0700
612 wmbattery (1.1)
614   * Fixed man page location.
616  -- Joey Hess <joeyh@debian.org>  Thu,  4 Feb 1999 14:33:58 -0800
618 wmbattery (1.0)
620   * First release.
621   .
622   * Started with wmapm 1.2 sources. Gutted it and cleaned it up extensively
623     and turned it into wmbattery.
624   * Drew new faceplate and graphics.
625   * Converted manpage to refer to new program name.
626   * Reorganized source tree.
627   * Split single xpm up into lots of small xpms, loaded separately.
628   * Cleaned up Makefile.
629   * Removed README, TODO, INSTALL, etc; I'll write my own.
630   * Parse command line with getopt.
631   * Made -d work to set the display.
633  -- Joey Hess <joeyh@debian.org>  Fri, 25 Dec 1998 18:03:21 -0500