dockapps/wmacpi
Doug Torrance aa177b7402 wmacpi: Bump to version 2.2rc4.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2008 November 14 2.2rc4
	Change the way that we sleep/wait for activity, to use select
	rather than a fixed-length sleep, supplied by Julien Blache of
	Debian:

	Hi,

	The attached patch for wmacpi makes it use select() instead of
	sleeping. It also adjusts the timeout of the select() call
	depending on the blink & scroll options.

	If scrolling is not activated, there's no reason to wake up
	10x/sec. If blinking is activated, waking up once per second is
	enough. If blinking is not activated, then we can wake up just to
	update the data and we're fine.

	With scrolling and blinking disabled, this saves a number of
	wakeups and helps battery life. Unfortunately there's another
	source of wakeups that's probably due to libdockapp that still
	makes 6 wakeups/seconds (in another thread it seems).

	With this patch wmacpi makes a best effort to match the sample
	rate set by the user, but that's hardly an issue I think.

	I haven't released this patch yet in Debian, so if you like it and
	want to roll out a release, feel free :) Otherwise I'll add it to
	the package soon.

	Thanks,

	JB.
2014-08-19 18:13:57 +01:00
..
.arch-ids wmacpi: Bump to version 2.2rc4. 2014-08-19 18:13:57 +01:00
.hg_archival.txt wmacpi: Bump to version 2.2rc4. 2014-08-19 18:13:57 +01:00
.hgempty wmacpi: Bump to version 2.2rc4. 2014-08-19 18:13:57 +01:00
.hgignore wmacpi: Bump to version 2.2rc4. 2014-08-19 18:13:57 +01:00
.hgtags wmacpi: Bump to version 2.2rc4. 2014-08-19 18:13:57 +01:00
acpi.1 wmacpi: Bump to version 1.99. 2014-08-19 18:13:56 +01:00
acpi.c wmacpi: Bump to version 2.2rc3. 2014-08-19 18:13:57 +01:00
AUTHORS wmacpi: Bump to version 2.2rc4. 2014-08-19 18:13:57 +01:00
ChangeLog wmacpi: Bump to version 2.2rc4. 2014-08-19 18:13:57 +01:00
COPYING wmacpi: Bump to wmacpi-ng version 0.50. 2014-08-19 18:13:56 +01:00
INSTALL wmacpi: Bump to version 2.1rc1. 2014-08-19 18:13:57 +01:00
libacpi.c wmacpi: Bump to version 2.2rc3. 2014-08-19 18:13:57 +01:00
libacpi.h wmacpi: Bump to version 2.2rc3. 2014-08-19 18:13:57 +01:00
Makefile wmacpi: Bump to version 2.2rc1. 2014-08-19 18:13:57 +01:00
master.xpm wmacpi: Bump to version 2.2rc3. 2014-08-19 18:13:57 +01:00
master_low.xpm wmacpi: Bump to version 1.99r7. 2014-08-19 18:13:57 +01:00
README wmacpi: Bump to version 2.2rc1. 2014-08-19 18:13:57 +01:00
TODO wmacpi: Bump to version 2.2rc1. 2014-08-19 18:13:57 +01:00
wmacpi.1 wmacpi: Bump to version 2.2rc1. 2014-08-19 18:13:57 +01:00
wmacpi.c wmacpi: Bump to version 2.2rc4. 2014-08-19 18:13:57 +01:00
wmacpi.h wmacpi: Bump to version 1.99. 2014-08-19 18:13:56 +01:00

For install instructions, see "INSTALL" file.

Usage:

+-------------+
|battery graph| <- visual percentage battery remaining
|[:][=] [100%]| <- [:] - on AC (blink when charging) [=] - on battery
|[00:00]  [bX]| <- [00:00] time remaining   [bX] battery being monitored.
|status   area| <- messages scroll here
+-------------+

see wmacpi -h for some command line switches

**********************************************************************

wmacpi is a dockapp ACPI battery monitor for modern kernels (ie,
2.4.17 or later, and 2.6 kernels). Basically, it opens various files
under /proc/acpi, reads status information from them, and then
displays summaries.

Version 1.99 and later provides full support for multiple batteries.
You can tell it to monitor a particular battery with the -m option,
which will display the percentage remaining and current status message
for that battery. The time remaining and AC/battery status are global
- the time remaining is calculated based on all batteries found on the
system. When charging, the time displayed is the time remaining until
the battery is fully charged - this only works sensibly if your ACPI
system is implemented properly (far, far too many laptops have
buggered ACPI implementations).

The displayed time is averaged over 50 samples, each taken every three
seconds (by default). This greatly improves the accuracy of the
numbers - on my laptop, the time remaining seems to be overstated by a
good hour or so if you only sample once compared to fifty times.

Some ACPI implementations are stupid enough to block interrupts while
reading status information from the battery over a slow bus - this
means that on such b0rken laptops, running an ACPI battery monitor
could affect interactivity. To provide a workaround for this, current
versions of wmacpi supports setting the sample rate from the command
line. The --sample-rate option specifies the number of times the
battery is sampled every minute - the default is 20, and the maximum
value is 600. Since -s 600 translates to sampling every 0.1 seconds,
you really don't want to do that unless you're just having fun . . .

Also provided is a command line tool to report the battery status. By
default this will only sample once, but with the -a option you can
specify a number. Be aware that it will try to take all those samples
in the space of one second, so if your ACPI implementation is b0rken
this could have adverse effects.

Please report bugs to <simon@himi.org>

Simon Fowler, 2007-07-13.