Thanks for the reply.
/sys/class/power_supply has 2 symlinks, C1EC, & C1ED. C1EC is auxiliary battery, and not fitted. C1ED is a symlink to
and I have hunted here for some time before posting. Here's a listing:
alarm charge_now device/ power status type voltage_now
charge_full current_now manufacturer present subsystem uevent
charge_full_design cycle_count model_name serial_number technology voltage_min_design
The 'alarm' apparently occasionally flicks to 1 (It's normally 0) and I got nearly instant hibernate function when I tried watching that.
if grep -q 1 /sys/blah/alarm;
uevent has a line which is also in status which simply says discharging, until it's dead. The charge files have one six digit number (ľAh?). /proc/acpi is gone. Do I have to measure the value in charge now (currently 1267000) or something? How the <expletive deleted> would you do that in a bash script? (charge_now now 1200000).