2 * Update `dist` target to ensure config.guess and config.sub are
3 added to dist tar-balls.
4 * Remove cached install-sh and let autoreconf install it.
7 * Fix possible truncation when reading ACPI /proc files.
10 * Remove superfluous Makefile rules.
13 * Fix a couple of potential memory-leaks.
14 In `cmd_crit`, if there is an allocation failure, we return from the
15 function immediately and leak any previously allocated memory. Go to
16 the clean-up code at the end of the function instead.
18 Running `make dist` creates a gzipped tar-ball.
20 Change package-name to "wmbattery" and add bug-report e-mail address.
22 Add includes needed to get the sonypi ioctl code to compile on Solaris.
23 * `make distclean` fixes.
24 Remove Makefile instead of obsolete makeinfo.
25 Remove autom4te.cache.
26 Don't remove configure or config.h.in.
29 * Add --enable-hal and --enable-upower options. By default hal is disabled
30 and upower is enabled.
31 * Use lower-case prefixes for PKG_CHECK_MODULES checks.
35 * Use PKG_CHECK_MODULES for X libraries and headers.
36 * Use PKG_CHECK_MODULES, rather than calling pkg-config explicitly.
37 * Use CPPFLAGS for defining preprocessor macros.
38 * Add $datarootdir to Makefile.in.
39 * Move Makefile to Makefile.in, inline the contents of makeinfo.in and
41 * Remove rules generating autoconf artefacts.
43 * Move labels to the beginning of the line.
44 * Fix format-specifier.
45 * Update mailing list links to new Google Groups.
46 * Fix typo in manpage.
49 * Fix memory leak (Debian bug #816872).
50 Thanks to David Johnson <davijoh3@cisco.com> for the patch.
53 * Free memory allocated by strdup. This corrects a mistake in [1] noticed by
56 [1] http://repo.or.cz/dockapps.git/commitdiff/29e5012
57 [2] https://github.com/d-torrance/wmbattery/commit/
58 9f7be30#commitcomment-12965145
61 * Add config.h.in to `make distclean`. Its absence created a problem for the
62 Debian package. During the build, dh_auto_clean results in a call to
63 autoheader, which creates config.h.in. If this isn't then removed, we get
64 a dpkg-source error. Obtained from [1].
66 [1] https://sources.debian.net/src/wmbattery/2.48-1/debian/patches/
67 clean_config.h.in.patch/
70 * Escape hyphen in manpage. Fixes hyphen-used-as-minus-sign Lintian warning
71 in the Debian package. Patch from [1].
72 * Change manpage section from deprecated 1x to 1.
73 * Makefile - use autoheader too instead, configure complains about:
74 config.status: error: cannot find input file: `config.h.in'
75 Patch by Christoph Fritz.
76 * upower - don't exit after suspend/hibernation wakup Immediately after
77 suspend/hibernation wakup cycle, up_client_get_devices() can fail:
78 libupower-glib-WARNING **: up_client_get_devices failed: Timeout was
80 Since we do not interpret the UPower signals, just don't exit wmbattery
81 after first up_client_get_devices() failure.
82 Patch by Christoph Fritz.
83 * Expand -g option to allow positions relative to right or bottom. Use '-'
84 instead of '+', e.g., `wmbattery -g -0+0` will place wmbattery in the upper
85 right hand corner of the screen.
86 Thanks to Christoph Fritz for the feature request.
87 * Improve help text for -i option.
88 * Add -n option to disable dial graphic.
89 Thanks to Christoph Fritz for the feature request.
90 * Fix typos. Ran `codespell -w`.
91 * Properly free malloced memory. Fixes memory leak found by cppcheck.
92 * Remove unnecessary brace. Fixes "Invalid number of character ({) when these
93 macros are defined" errors given by cppcheck.
95 [1] https://sources.debian.net/src/wmbattery/2.47-1/debian/patches/escape_manpage_hyphens.patch/
97 -- Doug Torrance <dtorrance@monmouthcollege.edu> Wed, 13 May 2015 23:31:47 -0500
100 * Avoid redefinition of apm_read/apm_exists in *BSD.
101 The two functions are defined if the BSD-specific apm headers are found and
102 if libapm is not found. Both of these conditions will be true on BSD
103 systems, so we use #elif instead of the separate #if statements.
104 * Use AC_CHECK_LIB instead of AC_CHECK_HEADERS to check for libapm.
105 If autoconf finds an apm.h other than the one belonging to libapm, we get
106 builds errors like the ones reported by Haroldo Gambini Santos in [1].
108 [1] http://lists.windowmaker.org/dev/msg07937.html
110 -- Doug Torrance <dtorrance@monmouthcollege.edu> Thu, 19 Feb 2015 23:26:34 -0600
113 * Make it possible to work without libapm as libapm and apm.h are not
114 necessarily available on Linux.
115 * Update upower support. Reuse dbus connection and set delay to actually
117 * Thanks to Ludwig Nussel <ludwig.nussel@suse.de> for patches.
119 -- Doug Torrance <dtorrance@monmouthcollege.edu> Sat, 17 Jan 2015 08:37:05 -0600
122 * Switch from a Debian native package to a non-native package.
123 - Remove debian directory.
124 - Rename debian/changelog to ChangeLog, strip Debian-specific information.
125 - Move copyright information from debian/changelog to header in wmbattery.c.
126 * Escape hypen in manpage.
127 * Move assignment of old_status until after cur_info is initialized to avoid
128 uninitialized variable warning.
129 * Use consistent formatting in source and delete trailing whitespaces.
130 * Add -x option to run a command when battery is critical. Based on a patch
131 by Cristoph Fritz. See https://bugs.debian.org/543674.
132 * Add -v option to display version number.
133 * Restore BSD support. Code that was ripped out of wmbattery for version
134 1.22, which introduced the dependency on libapm but dropped support for the
135 BSDs, has been restored.
137 -- Doug Torrance <dtorrance@monmouthcollege.edu> Sun, 05 Oct 2014 10:23:34 -0500
141 * Better AC detection.
142 * Support times with upower and acpi (Closes: #740885).
143 * Use the latest upower API (Closes: #748935).
144 * Fix upower detection.
146 -- Andrew Shadura <andrewsh@debian.org> Fri, 18 Jul 2014 01:14:49 +0200
150 * Orphaned the package. It will probably be removed as it does not work with
152 * Added -i to display as icon. Thanks, Tovar Closes: #732398
154 -- Joey Hess <joeyh@debian.org> Tue, 27 May 2014 16:01:34 -0400
158 * Stop building with flash-in-the-pan HAL. Instead update acpi
159 interface to use /sys/class/power_supply.
160 Note that this needs acpica_version 20011018.
162 (Patch developed by Andrew Shadura.)
163 * Also added support for upower, which is used by default,
164 to avoid chasing kernel sysfs changes.
165 (Patch developed by Andrew Shadura.)
168 -- Joey Hess <joeyh@debian.org> Thu, 05 Dec 2013 15:29:41 -0400
172 * Accumulated packaging modernizations. Closes: #666370
174 -- Joey Hess <joeyh@debian.org> Fri, 30 Mar 2012 10:20:17 -0400
178 * Add -s option which can be used to ignore fluctuations
179 in reported battery charge (as seen on the EeePC) when
180 using -e. Closes: #527870 (Joseph Huang)
182 -- Joey Hess <joeyh@debian.org> Sat, 09 May 2009 16:53:10 -0400
186 * Use debhelper v7; rules file minimisation.
187 * Depend on hal since /proc/acpi is gone from the default kernels now.
190 -- Joey Hess <joeyh@debian.org> Tue, 22 Jul 2008 00:23:47 -0400
194 * Magic header file reordering to work around the disgusting
195 linux-libc-dev/libc headers conflicts (#435700). Closes: #463811
197 -- Joey Hess <joeyh@debian.org> Wed, 27 Feb 2008 15:08:53 -0500
201 * Support reconnecting to dbus if it's restarted. (AKA giant dbus-PITA)
203 -- Joey Hess <joeyh@debian.org> Wed, 20 Feb 2008 22:44:00 -0500
207 * Support reconnecting to hal if the connection is closed, as happens
208 if the hal is restarted.
210 -- Joey Hess <joeyh@debian.org> Wed, 20 Feb 2008 22:29:00 -0500
214 * Don't spew error messages if optional hal properties are not available.
215 * Only check to see if a battery is charging if hal reports there is AC
216 power. This is perhaps not 100% correct in systems with multiple batteries
217 that may cross-charge when off AC, but it's faster and it avoids bugs in
220 -- Joey Hess <joeyh@debian.org> Sat, 02 Feb 2008 17:28:37 -0500
224 * Bit the bullet, stopped trying to track the kernel's ever changing
225 interfaces, and added support for querying battery information from hal.
226 Support for the old kernel interfaces (APM, ACPI, etc) is still present,
227 but to use new interfaces such 2.6.24's /sys/class/power_adapter, you'll
228 have to have dbus and hal.
229 Closes: #456247, #246641, #290712, #393616, #456248
232 -- Joey Hess <joeyh@debian.org> Fri, 01 Feb 2008 21:36:39 -0500
236 * Correct issue with the statically allocated string returned by
237 get_acpi_value that caused it to only look at last full capacity and never
238 really at design capacity.
240 -- Joey Hess <joeyh@debian.org> Sat, 22 Dec 2007 22:26:38 -0500
244 * Guard some divisions against division by zero. I've never seen that
245 happen and can't reproduce it, but see #454766.
246 * Merge acpi change from procmeter3: Limit string length when reading from
249 -- Joey Hess <joeyh@debian.org> Fri, 07 Dec 2007 14:56:41 -0500
253 * Further fix for my strange battery. If the present capacity is larger
254 than the maximum capacity, rescan to figure out the new max capacity.
256 -- Joey Hess <joeyh@debian.org> Sun, 02 Dec 2007 15:50:29 -0500
260 * My new battery has a design capacity of 7800 mAh and yet its
261 last full capacity was 9488, and its currently charged to 8540.
262 Deal with this wonderful miracle^W^Wcrap hardware by taking the max
263 of the design or last full capacities.
265 -- Joey Hess <joeyh@debian.org> Tue, 23 Oct 2007 22:21:06 -0400
269 * Update to new menu policy.
270 * The repository has moved from svn to git.
272 -- Joey Hess <joeyh@debian.org> Fri, 19 Oct 2007 21:14:22 -0400
276 * Correct off-by-one in acpi.c
277 * Put url to new web page in README.
279 -- Joey Hess <joeyh@debian.org> Mon, 04 Jun 2007 16:44:03 -0400
283 * Minor bug fix to acpi code, don't skip over dotfiles.
284 * Patch from Vincent Bernat adding support for 2.6.21, which changes
285 yet again where the ACPI version number is stored. Closes: #423612
287 -- Joey Hess <joeyh@debian.org> Mon, 14 May 2007 14:23:09 -0400
291 * Add missing build dep on libxt-dev. Closes: #379247
293 -- Joey Hess <joeyh@debian.org> Tue, 25 Jul 2006 22:00:41 -0400
297 * Merge acpi.c changes for more robust AC power status from sleepd 1.3.0.
299 -- Joey Hess <joeyh@debian.org> Thu, 30 Mar 2006 14:59:31 -0500
304 * Man page section fix.
307 * Remove configure script in distclean.
309 -- Joey Hess <joeyh@debian.org> Sun, 18 Dec 2005 17:39:07 -0500
313 * xlibs-dev transition
315 -- Joey Hess <joeyh@debian.org> Fri, 16 Dec 2005 14:54:25 -0500
319 * Fix acpi detection, the code to read /proc/acpi/info was not updated
320 to the new cd-less code. Closes: #307278
322 -- Joey Hess <joeyh@debian.org> Mon, 2 May 2005 18:14:01 -0400
326 * Merge in changes from procmeter3's version of acpi.c, made by Andrew M.
327 Bishop, that avoid the ugly chdir to /proc/acpi and add a bit of error
328 checking. Now fully synced with procmeter3 3.4d.
330 -- Joey Hess <joeyh@debian.org> Sat, 30 Apr 2005 22:58:44 -0400
334 * Patch from Kris Verbeeck to add a -a option to play an au file
336 * Document it in the man page.
337 * Unicode dash fixes on man page.
338 * Some indentation fixes.
340 -- Joey Hess <joeyh@debian.org> Wed, 24 Nov 2004 16:20:39 -0500
344 * Use the proper new-style acpi string when looking for ac adaptor status.
346 * Remove the hack I added for my old picturebook, as it causes bad results
347 on systems that label a fully charged battery's charging rate as
348 unknown and state as charging.
349 * Base battery charge calculations for ACPI on design capacity, instead of
350 last full capacity. Some batteries may exceed previous last full on
351 their next charging, and this also lets you see when you have a damaged
352 battery that is not fully charging.
353 * If acpi battery charging state is unknown, but the rate is 0,
354 then the battery is charged and on AC power, and the unknown state can
355 be ignored. Analysis and patch by "TeXitoi".
357 -- Joey Hess <joeyh@debian.org> Mon, 17 Nov 2003 20:28:56 -0500
361 * Sort devices returned by readdir in acpi, since the order can be random.
364 -- Joey Hess <joeyh@debian.org> Wed, 13 Aug 2003 01:45:55 -0400
368 * Make acpi code put -1 in the time remaining field if the "present rate"
369 is 0. Closes: #204722
370 * Enable internal time estimate code in this case.
372 -- Joey Hess <joeyh@debian.org> Mon, 11 Aug 2003 17:21:17 -0400
376 * Another patch from Hugo Haas, this time it adds time-till-charged
377 estimates for systems that lack them. The estimates are on by default,
378 though they're only linear guesses and may not be accurate.
379 * Display dimmed time estimate field if there is no estimate available.
380 * -e switch renamed to -r and forces both estimates on.
382 -- Joey Hess <joeyh@debian.org> Thu, 7 Aug 2003 16:41:37 -0400
386 * Patch from Hugo Haas <hugo@larve.net> to change when the icon is
387 refreshed for less latency.
388 * Patch from Hugo Haas to have wmbattery do its own time left estimates
389 if that info is not available from the machine.
390 * Add -r switch to force wmbattery to estimate the time left.
392 -- Joey Hess <joeyh@debian.org> Sun, 3 Aug 2003 00:00:09 -0400
396 * Set the cutoff point for old acpi to 20020214 (was 20020208).
399 -- Joey Hess <joeyh@debian.org> Sun, 20 Jul 2003 13:44:59 +0200
403 * Added support for ACPI version 20030109 (2.5 kernel), and generally
404 support for changing ACPI strings across versions. Closes: #177249
406 -- Joey Hess <joeyh@debian.org> Thu, 6 Feb 2003 14:50:21 -0500
410 * Rebuild w/o /usr/doc link.
412 -- Joey Hess <joeyh@debian.org> Fri, 15 Nov 2002 15:23:13 -0500
416 * Corrected inverted test to see if ac power is online, that was only called
417 on 2 battery systems. Closes: #152356
419 -- Joey Hess <joeyh@debian.org> Wed, 10 Jul 2002 16:10:40 -0400
423 * Deal with acpi putting nothing but "Present: no" in the info file for the
424 second battery of a thinkpad. This was with kernel 2.4.19-pre10.
426 * Moved DEB_BUILD_OPTIONS out of makeinfo.
427 * Updated to new autoconf.
429 -- Joey Hess <joeyh@debian.org> Tue, 11 Jun 2002 22:51:45 -0400
433 * Moved makefile stuff out of makeinfo, so it is just definitions.
434 * Support DEB_BUILD_OPTIONS.
437 -- Joey Hess <joeyh@debian.org> Sat, 1 Jun 2002 16:31:53 -0400
441 * Don't crash if there is a /proc/acpi/ with no status file.
443 -- Joey Hess <joeyh@debian.org> Fri, 31 May 2002 21:35:06 -0400
447 * Added symbolic apm info constants to "apm.h", in case they are
448 not in the system <apm.h>.
449 * Put $(LIBS) last at link time.
451 -- Joey Hess <joeyh@debian.org> Tue, 23 Apr 2002 11:49:16 -0400
455 * Deal with -1 time left from apm (no estimate).
456 * Never dim colon, fixes display bug.
458 -- Joey Hess <joeyh@debian.org> Mon, 22 Apr 2002 12:30:35 -0400
462 * (acpi) don't display the rather wacky "- :0" on an almost full battery
464 -- Joey Hess <joeyh@debian.org> Tue, 9 Apr 2002 23:19:35 -0400
468 * Work around stupid ACPI output format bug. Critical battery detection
471 -- Joey Hess <joeyh@debian.org> Mon, 8 Apr 2002 22:49:43 -0400
475 * Better error reporting.
477 -- Joey Hess <joeyh@debian.org> Sun, 7 Apr 2002 22:57:17 -0400
481 * Improved acpi interface (also used for procmeter3 module now).
482 * Fixed segfault on non-ACPI systems.
484 -- Joey Hess <joeyh@debian.org> Sun, 7 Apr 2002 17:48:41 -0400
488 * Corrected minus sign in bigfont to proper faux-lcd appearance. Also fixed
491 -- Joey Hess <joeyh@debian.org> Fri, 5 Apr 2002 23:34:38 -0500
495 * Added ACPI support, including battery change detection, and battery
496 charging time countdown timer.
497 * Added -w parameter to configure delay time.
498 * Added -c and -l parameters to allow user control of battery low/critical
500 * Use constant defs from apm.h instead of nasty hardcoded numbers.
503 * Removed -s option, just fall back to SPIC if ACPI and APM are not
506 -- Joey Hess <joeyh@debian.org> Fri, 5 Apr 2002 12:53:18 -0500
510 * Added support for querying for battery status via the sonypi driver, for
511 sony laptops that do not have apm support. This is a stopgap until linux
512 gets full ACPI support.
514 -- Joey Hess <joeyh@debian.org> Thu, 4 Apr 2002 10:25:31 -0500
518 * Converted to use libapm, instead of the hacked up old version of it
519 used before. This probably breaks wmbattery on the BSD's, for now. The
520 correct fix for the BSD's will be to get support for their apm
521 implementations into libapm. To that end, I have filed a bug with all the
523 * The -f option also had to be removed. If libapm does not work right on
524 systems that needed that flag it's probably a bug in the library.
527 -- Joey Hess <joeyh@debian.org> Sun, 24 Feb 2002 12:47:53 -0500
531 * Typo, Closes: #125485
533 -- Joey Hess <joeyh@debian.org> Mon, 17 Dec 2001 21:41:52 -0500
537 * Still show percent sign when blinking low. Closes: #123183
539 -- Joey Hess <joeyh@debian.org> Sun, 9 Dec 2001 22:44:17 -0500
543 * Used two more grey's in the transition between shadow and highlight
544 in the dial. Looks a bit better.
546 -- Joey Hess <joeyh@debian.org> Wed, 7 Nov 2001 22:35:37 -0500
550 * Autoconf 2.50 demands an absolute --mandir=
552 -- Joey Hess <joeyh@debian.org> Thu, 24 May 2001 15:04:23 -0400
556 * Patch from Edward Betts <edward@debian.org> to make the icon redraw
557 immediately when it gets an expose event. The patch also lowers the CPU
558 time used as the icon is not needlessly redrawn every second. Thanks
559 Edward! Closes: #97779
560 * Battery blink fixup. (I seem to have inexplicably lost the changelog
561 and version involving making the battery blink red on and off when the
562 status is critical -- I did this recently because the eye tends to
565 -- Joey Hess <joeyh@debian.org> Thu, 17 May 2001 13:16:55 -0400
569 * Another patch from Kevin, which allows removal of the
570 config.{sub,guess} files and does smarter detection.
572 -- Joey Hess <joeyh@debian.org> Mon, 5 Mar 2001 19:49:36 -0800
576 * Fixed icon search path.
578 -- Joey Hess <joeyh@debian.org> Tue, 27 Feb 2001 18:00:44 -0800
582 * OpenBSD port by Kevin Christen <christen@ix.netcom.com>
585 -- Joey Hess <joeyh@debian.org> Mon, 26 Feb 2001 22:06:55 -0800
589 * Added support for using files other than /proc/apm, via a -f switch.
592 -- Joey Hess <joeyh@debian.org> Mon, 21 Aug 2000 11:52:21 -0700
596 * Use /usr/share/icons/wmbattery, not /usr/X11R6/share. Sheesh.
598 -- Joey Hess <joeyh@debian.org> Thu, 6 Apr 2000 13:16:52 -0700
604 -- Joey Hess <joeyh@debian.org> Sat, 4 Dec 1999 16:56:32 -0800
608 * Removed install-stamp target, which can cause obscure problems.
610 -- Joey Hess <joeyh@debian.org> Thu, 30 Sep 1999 13:32:33 -0700
614 * Expanded the man page to detail exactly what all parts of the display
617 -- Joey Hess <joeyh@debian.org> Mon, 13 Sep 1999 11:37:11 -0700
621 * Integrated with my build system.
623 -- Joey Hess <joeyh@debian.org> Sun, 12 Sep 1999 12:47:00 -0700
629 -- Joey Hess <joeyh@debian.org> Mon, 6 Sep 1999 16:57:13 -0700
633 * FreeBSD support, patch from Motoyuki Kasahara <m-kasahr@sra.co.jp>.
635 -- Joey Hess <joeyh@debian.org> Sun, 8 Aug 1999 20:04:10 -0700
639 * Built w/o that ugly bug source known as fakeroot. Now all files are
640 owned by root, not me.
642 -- Joey Hess <joeyh@debian.org> Sun, 8 Aug 1999 17:35:32 -0700
646 * Let's try again on that patch.
648 -- Joey Hess <joeyh@debian.org> Sun, 8 Aug 1999 17:30:18 -0700
652 * Patch from Hugo Haas <hugoh@MIT.EDU> to allow geometry support.
654 -- Joey Hess <joeyh@debian.org> Sun, 8 Aug 1999 16:18:44 -0700
658 * Patch from Edwin van Ouwerkerk Moria, may make the charging indicator
659 work better on thinkpads.
661 -- Joey Hess <joeyh@debian.org> Thu, 1 Jul 1999 09:58:04 -0700
665 * Fixed man page location.
667 -- Joey Hess <joeyh@debian.org> Thu, 4 Feb 1999 14:33:58 -0800
673 * Started with wmapm 1.2 sources. Gutted it and cleaned it up extensively
674 and turned it into wmbattery.
675 * Drew new faceplate and graphics.
676 * Converted manpage to refer to new program name.
677 * Reorganized source tree.
678 * Split single xpm up into lots of small xpms, loaded separately.
679 * Cleaned up Makefile.
680 * Removed README, TODO, INSTALL, etc; I'll write my own.
681 * Parse command line with getopt.
682 * Made -d work to set the display.
684 -- Joey Hess <joeyh@debian.org> Fri, 25 Dec 1998 18:03:21 -0500