1. NAME

on_ac_power - test whether computer is running on AC power

2. SYNOPSIS

on_ac_power

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

None.

5. EXIT STATUS


 
Sélectionnez
0 (true)	System is on mains power
 1 (false)	System is not on mains power
 255 (false)	Power status could not be determined
 

6. FILES


 
Sélectionnez
 
 /proc/apm         APM status information file
 
 
Sélectionnez
 
 /proc/acpi        ACPI status information directory
 

7. AUTHOR

This manual page was written by Steve Dodd < > and was updated by Thomas Hood.