I'm running the openbox WM and would like to avoid loading the gnome stack. One of the lingering issues I have to resolve is avoiding abrupt system crashes due to depleted battery power.
Is there a low-profile, low-dependency daemon that will handle this situation? I'd like to be able to configure it to, for example, drop the system down into hibernation at 4% battery life if the AC is not connected.
I suppose I could just write a little cron job to poll
/sys/.../ac*/... every 10 minutes or so, but it seems like there might be some edge cases that need tending.
laptop-mode-tools sounds promising:
It ... supports various ... power management features, such as ... automatically hibernating if battery levels are too low...
On my system, its installation also requires the removal of the
acpi-support package, which sounds sort of ominous.