linux man page for on_ac_power

Query: on_ac_power

OS: linux

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

ON_AC_POWER(1)						      General Commands Manual						    ON_AC_POWER(1)

NAME
on_ac_power - test whether computer is running on AC power
SYNOPSIS
on_ac_power
DESCRIPTION
on_ac_power checks whether the system is running on AC power (i.e., mains power) as opposed to battery power.
OPTIONS
None.
EXIT STATUS
0 (true) System is on mains power 1 (false) System is not on mains power 255 (false) Power status could not be determined
FILES
/proc/apm APM status information file /proc/acpi ACPI status information directory
AUTHOR
This manual page was written by Steve Dodd <steved@loth.demon.co.uk> and was updated by Thomas Hood. 9 March 2002 ON_AC_POWER(1)
Related Man Pages
apm(1) - redhat
apm(1) - debian
pm-powersave(8) - debian
apm(1) - freebsd
apm(1) - centos
Similar Topics in the Unix Linux Community
issues involving sshd, display and apache.
Battery always 0%
Funny *NIX commands