Re: laptop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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).

-tim



_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]