[ALUG] Wanted - simple way to check mains power is available

John Woodard mail at johnwoodard.co.uk
Wed Jan 26 16:05:42 GMT 2011

On 26 January 2011 15:51, samwise <samwise at bagshot-row.org> wrote:
> Chris,
> Shouldn't you be able to get this info from your computer itself?
> Something like:
> cat /proc/acpi/battery/BAT0/state
> Or maybe google for acpi or acm ... ?
> The battery widgets which show you whether your battery is in use or
> charging, must make use of this info.
> Peter

No need for such complexities, use a web cam pointing at the little
red power light....
I'll get my coat.....  :-)

More information about the main mailing list