History:

1.0	14 June 1998

	initial version

1.1	16 June 1998

	some cleanup and commenting of the code
	updated man page a bit
	fixes:
	- the program now quits graceously if you close
	  the window (Close, not Destroy)

1.2	11 July 1998

	A little changed the help message and
	updated man page.

	I made the thing check on the X11 events
	every 1/100th of a second and for the
	changes in the battery status - every 
	second. The update rate is now in seconds.

	Reworked a bit the error handling.

	Added more options for customizing colors.

	Added -iconic option to start iconized.
	The tool now shows the battery status
	when iconized.

	Added -withdrawn option to support the
	WindowMaker docker (seems to be a popular
	option these days :-)

1.3	26 July 1998

	Made the tool to display the correct
	values as soon as it starts and not after
	the first "wait" expires. It was very
	noticeable even with short "waits".

	Reformatted and restrustured the code so
	that it will be (hopefully) more understandable.

	Added one more field - the time left until
	total discharge as estimated by the daemon.

	Added -syslevels option for purists that want
	to see the colors change when the apmd says
	so and not on arbitrary 20%/40% boundaries.

1.4	2 August 1998

	If the "lifetime left" for the battery is
	not reported by the apmd I try to calculate
	it based on the time elapsed between 
	successive power level changes. An estimate
	is better than nothing :-) You can switch
	it off with -systime if you don't like it.

	And I finally got to supporting all those
	values that may theoretically be returned
	by the APM bios.

	asapm prints help message if it does not
	understand an option instead of silently
	ignoring it.

	FreeBSD support. Yes! :-)

1.5	8 August 1998

	Bugfix release. My thanks to 
	John Schweitzer. The bug was in the
	calculation of the time left.

2.0	14 August 1998

	Completely reworked the interface. Well,
	now only I begin to like the looks of it :-)
	Split up the code in a few pieces because
	it was getting too big to edit.
	Lots of new options again. More look
	customization.
	Documentation was reworked too.

2.1	5 September 1998

	Added a special feature for laptops that 
	cannot run in higher than 8 bpp - downgrading
	the number of colors from more than 32 
	down to around 12 or so. (I really do not know :-)

	Now asapm parses resource files in addition
	to the command line parameters.
	This allows to specify lots of things and therefore
	new addition - reactions on certain events.

2.2	11 October 1998

	Thanks to Dagmar who writes:
        "Added a special parameter to separate the "green" color
        from the time-left and percentile battery strength displays.
        Changed Left and Right settings to Lower and Upper to make it
        less confusing to people, and modified the pun appropriately.  ;)
        Changed type of main to int to silence loud-mouthed compilers."

	Plus a couple minor changes in documentation.

2.3	02 December 1998

	Thanks to Johnny C. Lam who writes:
	"I'm currently using asapm-2.2 with Window Maker on a Sharp
	PC-3040 laptop running NetBSD/i386.  I've included the changes to
	support NetBSD/i386 as a patch relative to asapm-2.2."
	So, we have support for NetBSD!

	I actually got tired of having a version with Makefile
	for myself and a version with autoconfigure for the
	AfterStep distribution so I autoconf'ed asapm. It is
	exactly the same as in AS distro since I am using the
	autoconf that I used all the time in AfterStep applets
	distro. Hmmm... That was not really English, was that?
	Never mind, you get the idea :)

2.4	02 January 1999

	Fixed the '-position' option to handle the negative
	coordinates correctly.

2.5	23 February 1999

	Applied the patch provided by Joe <rys@tir.com>
	that turns support for NetBSD into support for
	NetBSD/OpenBSD

2.6	26 February 1999

	Patch for FreeBSD by Avatar Liang <avatar@www.mmlab.cse.yzu.edu.tw>
        "Attached is a little patch against asapm-2.5. Now the battery remaining
	time seems more reasonable under FreeBSD. As you can see, the battery
	life time is presented in seconds under FreeBSD.
	The patch has been tested under FreeBSD 2.2.8-RELEASE."

2.7	31 May 1999

	Patch submitted by Robert Clare <clare@mail.cern.ch>, who writes:
	"... I did like a small feature from wmapm, so I put it 
	into aspam:  when the battery is charging, this is indicated 
	by changing the ac-plug to red.  Here is the patch in case 
	you are interested."

2.8	25 Nov 1999

	Fixed a bug reported by Hartmut M. Bromkamp <Bromkamp@istgmbh.com>
	".... But what really led me into some confusion
	is the fact that the -rc option doesn't work:
	Everytime I launch asapm by
	asapm -rc /root/.asapmrc
	it will only display its options and ceases...."
	This should at the same time fixed the bug that asapm
	did not understand '-fail' anymore (-f was used in the code
	instead of -rc).

2.9	19 Nov 1999

	Stephen Crane <jsc@darkstar.szyzygy.org> proposed the following:
	"I've attached a patch to asapm-2.7 to share or use the closest colours
	when creating the pixmaps.  (It would also be good to do this for the
	battery and other colours but I don't know enough X, yet.)  I need this
	for my graphically-challenged portable: I think it's better to go with
	ugly colours than do without the APM data."
	So here is the new version with his patch.

2.10	09 September 2000

	Bernd Sieker <bsieker@freenet.de> proposes to change the main loop:
	"Ich hab mir den Source etwas angesehen, und fand das Timing doch etwas
	seltsam gestrickt ;) Im wesentlichen geht die Routine davon aus, dass
	das Checken und Bearbeiten der X11-Events exakt 0 Zeit benoetig, was  
	allerdings wohl in erster Naeherung hinokmmt, jedoch nicht exakt ist.
	... Anbei ein Patch, der das Timing mit Hilfe von gettimeofday() exakt 
	gestaltet, ich hoffe, der funktioniert so auch auf Linux."
	So here it goes in with a little editing for the new version.

2.11	23 November 2001

	"Love <lha@stacken.kth.se> sent in a patch for the NetBSD:
	Batteries are numbered from a base of 1.  If the passed value of   
	batteryid is 0, the returned values will reflect the percentage
	remaining, minutes left, etc. of all of the system's batteries
	taken together.  If the passed value of batteryid is nonzero, the
	return values will reflect the indicated battery's percentage re-
	maining, minutes left, etc." ...
	"If the ioctl failes a fd is leaked (shouldn't happen), but its still a
	bug. OpeBSD doesn't have batteryid, that the reson I don't set it."
	These change and fix go to the current version.

2.12	24 May 2002

	Fixed up the use of:
		- system warning levels for colors/actions
		- system time of battery discharge
	Some laptops (like my Vaio) seem to give some value for the
	estimated battery depletion time but it does not mean what
	one would expect. For Vaio, for example, it seems to mean
	the time to total discharge in standby mode. So, you can
	now force asapm to calculate battery depletion time estimate
	in useful terms.

2.13	30 October 2002

	Fixed a couple of bugs within the scanning of command line
	parameters suggested by Joseph P. Skudlarek <jskud@jskud.com>

3.0	16 May 2005

	First of all, this is a major update to include
	support for ACPI.
	The applet works with a single battery if the ACPI is
	available. Use multiple instances for multiple batteries.
	The ACPI takes precedence over APM.
	There is a small behaviour change - asapm used to try and read
	the /proc/apm and report an error every time it did not succeed;
	now it will check at start up, see that it cannot open the
	file, report an error and keep quiet for the rest doing
	precisely nothing.

3.1	27 July 2005

	Numerous fixes. Most importantly, the ACPI batteries
	names do not seem to follow any pre-determined pattern.
	So asapm will make its best effort to find out
	automagically which battery should be used.
	The switch -bat has changed format and meaning.
	There are new switches to force either APM or ACPI.
	A new switch has been added to set the window name
	(I forgot to add it last time.)

