| 1 |
.\" Hey, EMACS: -*- nroff -*- |
| 2 |
.\" First parameter, NAME, should be all caps |
| 3 |
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection |
| 4 |
.\" other parameters are allowed: see man(7), man(1) |
| 5 |
.TH BATTERY-STATS 5 "September 23, 2002" |
| 6 |
.\" Please adjust this date whenever revising the manpage. |
| 7 |
.\" |
| 8 |
.\" Some roff macros, for reference: |
| 9 |
.\" .nh disable hyphenation |
| 10 |
.\" .hy enable hyphenation |
| 11 |
.\" .ad l left justify |
| 12 |
.\" .ad b justify to both left and right margins |
| 13 |
.\" .nf disable filling |
| 14 |
.\" .fi enable filling |
| 15 |
.\" .br insert line break |
| 16 |
.\" .sp <n> insert n+1 empty lines |
| 17 |
.\" for manpage-specific macros, see man(7) |
| 18 |
.SH NAME |
| 19 |
battery-stats \- collected battery statistics |
| 20 |
.SH DESCRIPTION |
| 21 |
The battery-stats contains statistics about battery charge over time, as |
| 22 |
collected by the |
| 23 |
.B battery-stats-collector |
| 24 |
(8) daemon. |
| 25 |
.SH FORMAT |
| 26 |
Each line in the file represents one sample and is of the form: |
| 27 |
.ce |
| 28 |
<seconds> <charge%> <powermode> <UTC-date> <UTC-time> |
| 29 |
separated by spaces and terminated by a newline. |
| 30 |
.PP |
| 31 |
Where: |
| 32 |
.TP |
| 33 |
.B seconds |
| 34 |
is the number of seconds since 1st Jan 1970 00:00:00 UTC |
| 35 |
.TP |
| 36 |
.B charge% |
| 37 |
is the battery charge a number between 0 and 100 |
| 38 |
.TP |
| 39 |
.B powermode |
| 40 |
indicates the power mode: |
| 41 |
.RS 16 |
| 42 |
.B 0 |
| 43 |
A/C off |
| 44 |
.br |
| 45 |
.B 1 |
| 46 |
On battery |
| 47 |
.br |
| 48 |
.B 2 |
| 49 |
On backup power |
| 50 |
.RE |
| 51 |
.TP |
| 52 |
.B UTC-date |
| 53 |
a human-readable date in the format YYYY/MM/DD. Note that this is in UTC, |
| 54 |
not the local or system timezone. |
| 55 |
.TP |
| 56 |
.B UTC-time |
| 57 |
a human-readable time in the format HH:MM:SS (using a 24-hour clock). Note |
| 58 |
that this is in UTC, not the local or system timezone. |
| 59 |
.TP |
| 60 |
.B minutes-left |
| 61 |
is the BIOS estimate of how many minutes of running time the battery would |
| 62 |
provide. This may be unreliable, depending on the BIOS through which it |
| 63 |
was collected. |
| 64 |
.SH EXAMPLE |
| 65 |
A battery under charge might result in the following samples: |
| 66 |
.RS |
| 67 |
1032651245 27 1 2002/09/21 23:34:05 94 |
| 68 |
.br |
| 69 |
1032651275 28 1 2002/09/21 23:34:35 97 |
| 70 |
.br |
| 71 |
1032651305 29 1 2002/09/21 23:35:05 100 |
| 72 |
.br |
| 73 |
1032651335 30 1 2002/09/21 23:35:35 103 |
| 74 |
.br |
| 75 |
1032651365 30 1 2002/09/21 23:36:05 106 |
| 76 |
.RE |
| 77 |
.SH FILES |
| 78 |
The default set-up is to save battery statistics in /var/log and rotate the |
| 79 |
logs weekly, which results in this set of files: |
| 80 |
.br |
| 81 |
.I /var/log/battery-stats |
| 82 |
- current (most recent) statistics |
| 83 |
.br |
| 84 |
.I /var/log/battery-stats.[0-9]+ |
| 85 |
- less recent statistics |
| 86 |
.br |
| 87 |
.I /var/log/battery-stats.[0-9]+.gz |
| 88 |
- ancient statistics |
| 89 |
.SH SEE ALSO |
| 90 |
.BR battery-graph (1), |
| 91 |
.BR battery-stats-collector (8). |
| 92 |
.SH AUTHOR |
| 93 |
Karl E. Jorgensen <[email protected]> |