1ON_AC_POWER(1) ON_AC_POWER(1)
2
3
4
6 on_ac_power - test whether the computer is running on line power
7
9 on_ac_power
10
11
13 This manual page documents briefly the on_ac_power command.
14
15 on_ac_power is a command line program to test whether the computer is
16 running on line power
17
19 The command succeeds (status 0) if the system is using line power and
20 fails (status other than 0) otherwise. It is designed to be easy to
21 use in shell scripts.
22
23 0 (true)
24 System is on line power.
25
26 1 (false)
27 System is not on line power.
28
29 255 (false)
30 Power status could not be determined.
31
33 pm-suspend (1).
34
36 This manual page was written by Richard Hughes <richard@hughsie.com>.
37
38
39
40 06 March 2007 ON_AC_POWER(1)