File: on_ac_power.1

package info (click to toggle)
apmd 3.2.2-15
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 508 kB
  • sloc: ansic: 2,884; makefile: 594; sh: 192
file content (44 lines) | stat: -rw-r--r-- 1,449 bytes parent folder | download | duplicates (5)
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
40
41
42
43
44
.\"                                      Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH ON_AC_POWER 1 "January 2004" "" ""
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
on_ac_power \- test whether the computer is running on line power
.SH SYNOPSIS
.B on_ac_power
.SH DESCRIPTION
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.
.SH OPTIONS
None.
.SH "EXIT STATUS"
.br
.nf
\fB0\fR (true)    System is on line power
\fB1\fR (false)   System is not on line power
\fB255\fR (false) Power status could not be determined
.SH FILES
.br
.nf
.ta \w'/proc/apm   'u
\fI/proc/apm\fR         APM status information file
.nf
.ta \w'/proc/acpi/ 'u
\fI/proc/acpi\fR        ACPI status information directory
.SH AUTHOR
This manual page was written by Steve Dodd <steved@loth.demon.co.uk>
and was updated by Thomas Hood.