#781634 upower: Power incorrectly reported as 0% after hibernate (leads to re-hibernate if on battery power)

Package:
upower
Source:
upower
Description:
abstraction for power management
Submitter:
Neil Pilgrim
Date:
2015-03-31 23:51:06 UTC
Severity:
important
#781634#5
Date:
2015-03-31 23:45:07 UTC
From:
To:
Dear Maintainer,

Using cinnamon desktop, I can hibernate and resume from hibernation with no
trouble if plugged-in. It does not need to remain plugged-in between, I
believe, it just needs to be plugged-in when rebooted to resume.

If the computer is unplugged when resuming from hibernation, then it claims
that the battery is completely discharged (0%) including showing a popup (both
probably being cinnamon-specific, but presumably from upower infrastructure)
and proceeds to automatically hibernate. I do not believe this is a hardware
issue since I have tested this from a near-full-charged state and it reports
uniquely 0%, and works fine if plugged in when resuming, as above.

I have experimented with 'upower -m', and this causes the unplugged resume-
from-hibernate to not automatically re-hibernate, but the battery does indicate
as being at 0%. Upon inserting the power, the number jumps to the 'real'
number, eg. 98%.

I am happy to run more tests; please let me know if I can help any further.

This quite limits the portability of my laptop, as I am tethered to a socket if
I want to be able to resume from hibernation - and need to 'look ahead' as I'm
not currently aware of how to avoid resuming instead of rebooting, and
obviously unsaved work may be 'locked away' in the repeatedly re-hibernating
machine.