wmacpi: Bump to version 2.0.
[dockapps.git] / wmacpi / README
blob97fcb1928b54b1fe8028bdb230b414a09dc66b54
1 For install instructions, see "INSTALL" file.
3 Usage:
5 +-------------+
6 |battery graph| <- visual percentage battery remaining
7 |[:][=] [100%]| <- [:] - on AC (blink when charging) [=] - on battery
8 |[00:00]  [bX]| <- [00:00] time remaining   [bX] battery being monitored.
9 |status   area| <- messages scroll here
10 +-------------+
12 see wmacpi -h for some command line switches
14 **********************************************************************
16 wmacpi is a dockapp ACPI battery monitor for modern kernels (ie,
17 2.4.17 or later, and 2.6 kernels). Basically, it opens various files
18 under /proc/acpi, reads status information from them, and then
19 displays summaries.
21 Version 1.99 and later provides full support for multiple
22 batteries. You can tell it to monitor a particular battery with the -m
23 option, which will display the percentage remaining and current status
24 message for that battery. The time remaining and AC/battery status are
25 global - the time remaining is calculated based on all batteries found
26 on the system. When charging, the time displayed is the time remaining
27 until the battery is fully charged - this only works sensibly if your
28 ACPI system is implemented properly (far, far too many laptops have
29 buggered ACPI implementations).
31 The displayed time is averaged over 50 samples, each taken every three
32 seconds (by default). This greatly improves the accuracy of the
33 numbers - on my laptop, the time remaining seems to be overstated by a
34 good hour or so if you only sample once compared to fifty times.
36 Some ACPI implementations are stupid enough to block interrupts while
37 reading status information from the battery over a slow bus - this
38 means that on such b0rken laptops, running an ACPI battery monitor
39 could affect interactivity. To provide a workaround for this, current
40 versions of wmacpi supports setting the sample rate from the command
41 line. The default -s setting is 100, which translates to once every
42 three seconds. -s 10 will sample every 30 seconds, -s 1 every 300
43 seconds. -s 1000 will sample every 0.3 seconds - don't do that unless
44 you're just having fun . . .
46 Also provided is a command line tool to report the battery status. By
47 default this will only sample once, but with the -a option you can
48 specify a number. Be aware that it will try to take all those samples
49 in the space of one second, so if your ACPI implementation is b0rken
50 this could have adverse effects.
52 Please report bugs to <simon@dreamcraft.com.au>.
54 Simon Fowler, 2003-11-23.