2003 September 23 0.92 Fix a few more bugs, and include an option to allow the user to specify how often to sample the ACPI data - some BIOSes disable all interrupts while reading from the battery, which apparently causes some interactivity issues. I have no idea why reading once every three seconds (which is our default), but there've been some complaints. Also fixed acpi-ng to properly handle the -a option. 2003 August 6 0.91 Fix a problem I'm seeing with docking the app - if the window name is set to "acpi" rather than "apm" it doesn't dock . . . 2003 July 16 0.90 Make the time display show '--:--' instead of '00:00' when the time remaining is 0 - I think this is reasonable, since it'll only get into this state when the present rate value is 0. This only happens when the battery is fully charged and neither discharging or charging, or when the battery is completely drained. In any of these states the time remaining is of very little interest, so we don't lose anything. We also get to handle the (sadly, very common) case where the ACPI subsystem doesn't report sane values for the things we depend on. 2003 July 11 0.50a2 Make the time display show nothing (as opposed to 00:00) when the time remaining is unknown, as requested by Emma Jane Hogbin. Respect the critical level specified on the command line, and add a new message to differentiate between the command line critical level and the critical state reported by the battery. Speed up the message scrolling, so that there isn't quite such a painful delay between repeats. Also, up the speed when the battery is low, more when it's critical, and scroll continuously when it's hardware critical. Finally, add support for disabling the blinking power and battery glyphs from the command line, as requested by Sebastian Henschel. We still blink the battery glyph when the battery reports hardware critical level - I think that's worth being a bit annoying about. Also, added an acpi-ng manpage. 2003 July 11 0.50a1 Properly fix the AC adapter issue - it's not much use adding the infrastructure and then forgetting to fix the code that uses it. Fix the time disiplay so that it doesn't try to display values greater than 99:59, since the display area won't fit anything beyond that. 2003 July 10 0.50a Bugfixes, to handle two problems: the case where something like the present rate or some such is "unknown" (reported initially by Emma Jane Hogbin, and where the AC adapter is called something other than "AC" (reported by Sebastian Henschel). This an 'a' release because I can't test these myself . . . 2003 July 6 0.50 Finally got rid of that annoying button - that space now contains a 'B 1' or 'B 2' (only those two at present, since I'm too lazy to fix it so that the number is generic. It should work fine for anyone who doesn't have a freakish system with more than two batteries . . .) A few more code cleanups. 2003 July 1 0.19 libacpi cleanups and reworking - we now handle the charging battery case properly, it seems. Also, some attempts to make error printing a bit cleaner; still a long way to go on that, though . . . 2003 June 24 0.15 Removed process_plugin_timer(), since it was doing nothing useful at all . . . 2003 June 23 0.14 Removed libapm.c - wmacpi-ng is specifically for ACPI, with no APM support. 2003 June 23 0.13 Some more code cleanups, designed to move libacpi to more of a library than something built into wmacpi-ng. This is useful with the seperate programs, though at present it's not used much. 2003 June 21 0.12 Added a command line tool, acpi-ng to query battery status from the command line. 2003 May 30 0.11 Implemented multiple battery support, and averaging of the samples in an attempt to even out the jumpiness of the timer. 2003 May 30 0.10 More major code cleanups: in particular the handling of the power panel and the message has been cleaned up so that it's actually sane and clean. Next step from here is to actually implement handling of multiple batteries, so that if there's a fully charge second battery available it reports the correct time remaining (based on the present rate of power consumption and the sum of the two battery's remaining capacities). 2003 May 29 0.3 Some major reworking of the internals, to help fix the handling of multiple batteries and such things. 2003 May 26 0.2a Code cleanups to fix various problems with corner cases. 2003 May 26 0.2 Added support for multiple batteries: I took the simple route of displaying only one battery per instance - to do more I'd need to hack with the display code, and I'm not ready for that yet. Added a -m option to specify the battery number to monitor. 2003 May 26 0.1 Changed package completely, to support the new ACPI code as of 2.4.21-rc2. Since this code hasn't been touched in more than a year, I figure I might as well have a go at hacking on it . . . -- Simon Fowler, 2002 Feb 17 1.34 Updated ACPI statistics gathering code for the latest ACPI patch from Intel. Now uses/checks for subsystem version 20020214+. Redone the version check a little bit. 2001 Apr 29 1.33 Little fix to ACPI version check so that I don't have to make a new version each time a new kernel comes out 2001 Mar 24 1.32 Split ACPI and APM portions in different source files Added power_init() function - handles checking subsystem presence, version, etc. Enumerates batteries in ACPI implementation ACPI: Beginnings of multiple battery support - not fully implemented ACPI: Get the battery ID from /proc/acpi/battery instead of hard-coding it in - also helps with multi battery stuff Added some stupid command line help Added -c option to set critical battery alarm level. Defaults to 10 percent, and added -b option to make noise when this critical level is reached APM: Updated for critical alarm stuff Made a 20 color "low" quality pixmap for machines running 8bit displays Updated README with some stuff, made separate INSTALL file 2001 Mar 13 1.31 Update for intel ACPI release version 20010313 Minor updates for new /proc layout 2001 Mar 07 1.3 Update for intel ACPI release verion 20010302 Proc format changed a little bit, so updates were necessary. Added a check for specific acpi subsystem version - since each new version seems to have a new interface, better be safe than sorry :) As usual, please test and report to me. This ONLY works with linux acpica 20010302. Download this version from http://developer.intel.com/technology/iapc/acpi/downloads.htm - it's a patch against 2.4.2 2001 Feb 28 1.21 Finally read through the ACPI specification. Hah, they had all my questions answered :) Thus, Confirmed remaining percentage formula (correct) Now calculate "time remaining" according to the spec formula Removed "battery load" hack since we now have "time remaining" Fixed bug in display_percentage (10% didn't display right) Released version 1.21 2001 Feb 23 1.2 Added support for ACPI. This is very untested, and not very clean. This has been tested on machines with only ONE battery, and only with kernel 2.4.2 (that's where ACPI started to work for me) Added some hackery to do with ACPI. Check README. Released 1.2 2001 Jan 16 1.1 Fixed all the stuff so that wmapm works as advertised: Fixed dumb bug where after charging was done new message didn't scroll. Added support for fucked APM bioses that display stuff wrong. (See README to learn how to enable it. Obviously, it's disabled by default) Reorganized apminfo structure and got rid of redundancy. Reorganized acquire_apm_info. All APM data is processed there. Fixed display_state to do the Right Thing. Fixed red blinking button to actually blink on critical battery, and to stop when it isn't critical anymore. I don't think it ever worked right in 1.0. Created ChangeLog. Updated README. Released 1.1.