Comment 21 for bug 60442

Revision history for this message
Luka Renko (lure) wrote : Re: Dual / Two Batteries, shutdown on empty expansion battery. (GPM does not recognises second battery on hotplug)

It seems this is more widely spread problem which causes problems both for gnome-power-manager (Ubuntu) as well as guidance-power-manager (Kubuntu).

It looks like that some ACPI events (like unplug of AC, one battery getting empty, or even eject of CD...) can cause battery remaining_time to be "reset" or at least being recalculated.

Since gnome (at least by default) uses remaining_time property for critical action handling, this can cause automatic action (like hibernation or shutdown). In KDE, we have CHARGE_LEVEL_THRESHOLD at 50% (which is a bit high) which prevents critical action if charged above that level.

Related bugs with notes when the action is triggered:
- bug 60442: gnome: one of two batteries is completely discharged (flat)
- bug 64752: kde: one of two batteries is completely discharged (flat)
- bug 67180: gnome: on unplug of AC
- bug 67081: kde: on CD load (may be unrelated)