summaryrefslogtreecommitdiff
path: root/man/on_ac_power.1
blob: 479056bfd63af6a782cf5b2f5e8fd802aa5aebd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.\" This manpage has been automatically generated by docbook2man 
.\" from a DocBook document.  This tool can be found at:
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
.\" Please send any bug reports, improvements, comments, patches, 
.\" etc. to Steve Cheng <steve@ggi-project.org>.
.TH "ON_AC_POWER" "1" "20 February 2007" "" ""

.SH NAME
on_ac_power \- test whether the computer is running on line power
.SH SYNOPSIS

\fBon_ac_power\fR

.SH "DESCRIPTION"
.PP
This manual page documents briefly the
\fBon_ac_power\fR command.
.PP
\fBon_ac_power\fR is a command line program to test whether the computer is running on line power
.SH "EXIT CODES"
.PP
The command succeeds (status 0) if the system is using line power
and fails (status other than 0) otherwise.
It is designed to be easy to use in shell scripts.
.TP
\fB          0 (true) \fR
System is on line power.
.TP
\fB          1 (false) \fR
System is not on line power.
.TP
\fB          255 (false) \fR
Power status could not be determined.
.SH "SEE ALSO"
.PP
pm-suspend (1).
.SH "AUTHOR"
.PP
This manual page was written by Richard Hughes <richard@hughsie.com>\&.