We help IT Professionals succeed at work.

How can I read the CMOS battery level from Linux?

jasonzx
jasonzx asked
on
7,307 Views
Last Modified: 2012-06-21
I've heard some utilities like SpeedFan for Windows will display the CMOS battery level. Is there something similar for Linux?
Comment
Watch Question

Dmitriy SkyIT Engeneer

Commented:
hmm, i think no need sensors or other program, just need virtfs (Kernel), and acpi on


just
cat /proc/acpi/battary/BAT1/info
or
cat /proc/acpi/battary/BAT1/state

if you have more then one Battary, use BAT2 )

Commented:
Yes there is, as an addition to above, in under the /proc folder will you not only be able to read the battery level, but also HDD,cpu and much more!




Author

Commented:
undersky:
That appears to refer to a laptop battery(if installed), or am I mistaken?
IT Engeneer
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION