I want to programatically determine whether CMOS battery is working or not. In my C++ program on linux I want to connect to internet and update system time if CMOS battery is not present or not working.
closed as off-topic by Gilles, Eric Carvalho, RolandiXor♦ Aug 19 '13 at 16:22
This question appears to be off-topic. The users who voted to close gave this specific reason:
I have not used SMBIOS for CMOS data (I use it to query for other data), but per it's manpage:
See if this provides what you need:
On the man page is the link to download the files to use smbios. If this doesn't apply, let me know and I'll delete my post.