test whether computer is running on AC power
add an example, a script, a trick and tips
no example yet ...
... Feel free to add your own example above to help other Linux-lovers !
checks whether the system is running on AC power (i.e.,
mains power) as opposed to battery power.
System is on mains power
System is not on mains power
Power status could not be determined
/proc/apm APM status information file
/proc/acpi ACPI status information directory
page was written by Steve Dodd
<steved[:at:]loth.demon.co[:dot:]uk> and was updated by Thomas