command to check battery life

Michael A. Peters mpeters at mac.com
Sat Oct 29 14:49:45 UTC 2005


On Sat, 2005-10-29 at 08:50 +0200, wwp wrote:

> 
> Rough: cat /proc/acpi/battery/BAT0/state
> 
> If nothing appears, your kernel (acpi part) might lack support for your
> hardware.

or on older laptops (like mine) -

cat /proc/apm 

which produces:

1.16ac 1.2 0x03 0x01 0x00 0x01 97% -1 ?

The 97% is the battery charge.




More information about the fedora-list mailing list