Debian Codegraph @

data/man/battery-stats-collector.8

raw
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-COLLECTOR 8 "October 30, 2012"
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 .\" TeX users may be more comfortable with the \fB<whatever>\fP and
19 .\" \fI<whatever>\fP escape sequences to invode bold face and italics,
20 .\" respectively.
21
22 .SH NAME
23 battery-stats-collector \- Collect statistics about battery charge
24
25 .SH SYNOPSIS
26 .B battery-stats-collector
27 .RI [ option ] " " ...
28
29 .SH DESCRIPTION
30 Does exactly as it says on the tin - it will collect information from the APM subsystem and write it to a log file.
31 .PP
32 Normally battery-stats-collector will be invoked by the system startup scripts.
33
34 .SH OPTIONS
35 battery-stats follow the usual GNU command line syntax, with long options
36 starting with two dashes (`-').
37 .TP
38 .B \-o \fPFILE\fB, \-\-output \fPFILE
39 Append statistics to the given file. The default filename is
40 .B /var/log/battery-stats
41 .TP
42 .B \-i \fPSECS\fB, \-\-interval=\fPSECS
43 Sampling intervals in seconds. If not specified, stats will be collected every 30 seconds.
44 .TP
45 .B \-F \fPCOUNT\fB, \-\-flush=\fPCOUNT
46 Flushes data to the log file every COUNT samples. A value of zero turns
47 off flushing altogether. If left unspecified, battery-stats-collector will
48 assume a value of 1, i.e. flush at every write. Setting the value too low will
49 tend to keep the disk spinning (and use battery needlessly). Setting the value
50 too high will loose statistics in case of an improper shutdown.
51 .br
52 Note that since battery-stats-collector uses the standard Ansi C library, data
53 will still be flushed periodically (regardless of this setting) once the buffer
54 fills up. The size of the buffer is platform dependent, but 4Kb and 8Kb seem
55 pretty normal.
56 .TP
57 .B \-b \fPNUM\fB, \-\-battery\-num=\fPNUM
58 Read information about battery number NUM. (In case you have multiple batteries installed).
59 .TP
60 .B \-1, \-\-once
61 Only collect a single sample and exit. The default is to loop continiously.
62 .TP
63 .B \-I, \-\-ignore\-missing\-battery
64 Keeps quiet about missing batteries. This stops the warnings on stderr/syslog that would otherwise occur when the battery is missing.
65 .TP
66 .B \-s, \-\-syslog
67 Log error messages to syslog, rather than stderr. Note that messages regarding invalid command line parameters will still go to stderr.
68 .TP
69 .B \-V, \-\-version
70 Show version of battery-stats-collector and exit.
71 .TP
72 .B \-h, \-\-help
73 Show summary of options and exit.
74
75 .SH FILES
76 .TP
77 .B /var/log/battery-stats
78 Default file for writing battery charge samples to.
79
80 .SH SEE ALSO
81 .BR battery-graph (1)
82 .br
83 Newer versions of this program may (or may not) be available at
84 .IR http://karl.jorgensen.com/battery-stats
85
86 .SH AUTHOR
87 This manual page was written initially written by Karl E. Jorgensen <[email protected]>,
88 for the Debian GNU/Linux system (but may be used by others).
89 .br
90 Adapted by Antonio Radici <[email protected]> to include
91 libacpi and autotools support, see History for details.
92 .br
93 Kevin Funk <[email protected]> took over maintainership in 2012.