on_ac_power is a command line program to test whether the computer is running on line power
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.
0 (true)
1 (false)
pm-suspend(8)
This manual page was written by Richard Hughes <richard@hughsie.com>.
Richard Hughes