Post by ElCheHi all
Is possible, read with some program utilities, the battery voltage RTC
CMOS?
Thanks
Regards
If you mean the RTC chip's own little battery (rather than the laptop main
battery) - I do not think so in the general case.
/sys/class/rtc/rtc0/
Is the place to look for everything the linux RTC driver knows about. On my
system, local RTC battery voltage is not one of them.
This does not mean it is impossible - but you would need to start with the
chip in your system, find the datasheet, them find out if reading the
battery voltage is even possible.
Then you would have to do some "bit banging" - ie talk to the chip at a low
level to get the data.
In theory, if you find out how, you could them modify the RTC driver to
include the information in /sys/...
It's probably not standard either - I don't know how many different RTC
chips exist and they are probably all different for this function.
Cheers
Tim
--
Tim Watts