I'm not certain this shouldn't be in the Hardware section, but it's (initially, at least) a problem with getting conky to display my battery state (Pentium II laptop ca. 1997, antiX 13.2 testing updated an hour ago, 3.13-0.bpo.1-486 kernel, fluxbox); long term, I'd like to set something up that will shut down the system before the battery gets so low it produces an unclean halt (say, 10-15% capacity), to prevent future reinstalls if I have another unplugged adapter incident or prolonged power failure. I've been able to boot without killing acpi (previously required by a spurious over temperature report during start) since my antiX reinstall a few days ago, and I've added the following line to my ~/.conkyrc:
Code: Select all
${color}Power: ${color}$acpiacadapter, ${color}Battery: ${battery_percent BAT0}%
I know the acpi is reporting, because this correctly detects and reports the connection state for the AC adapter, but any reasonable value for battery number (BAT0, BAT1, blank) reports 0% battery charge. I know there's hardware, present and working, that detects the battery state correctly, because the laptop has a hardware status display that shows the battery charge (like the battery bars on a modern cellular phone) along with adapter state, HDD and CD-ROM activity, cap-lock and num-lock status. The documentation with ~/.conkyrc is a little sparse, while the man page is book-length; what other values could I try to get a battery state display that's actually reading my battery state (and hence will be a clue toward finding a battery monitor daemon that can shut down the system before it mucks up my OS)?