by riobard · 2y ago · 0 comments
Background: I use an x86 box as home router. I've changed the configuration in the BIOS that it should automatically boot up on power. However if the BIOS battery is dead, the config will be lost and it will revert to default settings, which is not to boot on power.
But there is no way to know how much juice is left in the BIOS battery, thus there is no way to issue warnings that the battery should be replaced soon. If there is power loss AND the battery is dead, when the power comes back up again, the router will just stay off indefinitely until it's manually turned on.
That's when I realized why most consumer routers do not feature RTC nor do they require batteries.
True, but its voltage can be used as an estimate. Most PC MB still around monitor the supply voltages, some also of the battery feeding the RTC. If you have the (Debian) package 'lm-sensors' installed, look for
sensors[<pid>]: Vbat: +2.91 V (min = +2.70 V, max = +3.63 V) ALARM
in /var/log/syslog.https://hwmon.wiki.kernel.org/lm_sensors also has a FAQ.
You should do it every year or two...
Maybe I'm just lucky.