on_ac_power - test whether computer is running on AC power
2. SYNOPSIS ▲
3. DESCRIPTION ▲
on_ac_power checks whether the system is running on AC power (i.e., mains power) as opposed to battery power.
4. OPTIONS ▲
5. EXIT STATUS ▲
true) System is on mains power
false) System is not on mains power
false) Power status could not be determined
/apm APM status information file
/acpi ACPI status information directory
This manual page was written by Steve Dodd <> and was updated by Thomas Hood.