Tim Chase blinux.list at
Thu Apr 3 00:20:05 UTC 2008

> How to check the battery  on a laptop with orca?

In most modern kernels, you can just

   cat /proc/acpi/battery/BAT0/state

(if you have more than one battery, you'll have a BAT1 too).  You 
can redirect this output to wherever you want, whether a TTS, 
braille output, or just a file for later editing.  Once you know 
what you're looking for, you can toss together a shell-script to 
just grep what you want from this pseudo-file.

If you're really obsessive, you can also investigate the contents 
of the "info" pseudo-file in the same location as "state" which 
has far more info about your battery than most sane folks care to 
know about (grins).


More information about the Blinux-list mailing list