upower charge history doesn't update when device resumes from suspend

Bug #1537668 reported by Jean-Baptiste Lallement
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
High
Pat McGowan
upower (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

mako rc-proposed/ubunut 348

Possible one reason of the symptoms observed in bug 1471913

In some cases, apparently when the state of the device changes and the device is immediately suspended, upower history stops being updated and results in graphs like the one attached (ignore the sudden drop then jump between 5:00AM and 10:00AM, investigation is still ongoing)

In the history file attached, the history stops on Sun, 24 Jan 2016 09:36:50 GMT (1453628210) It corresponds to the state change of the device (charging -> discharging) around the same time (1453628284 - Sun, 24 Jan 2016 09:38:04 GMT in power.20160124-103548.csv)

Then if you plug the device to a charger and unplug it but don't suspend it the update of the history resumes normally (around 10:00PM). The graph shows the charge decreasing linearly (which is wrong, it should look like the graph history-from-sysfs.png which is based on battery/capacity sysfs entry)

The attached screenshot shows the network 4G data is available but doesn't connect as shown in the indicator.

Possible Test Case:
1. Disable main sources of wakeup (bt, wifi, location, set airplane mode on)
2. plug it to a charger for a short time (15min or so), but don't fully charge it
3. unplug the DUT and press the power button to suspend it
4. wait several hours without waking up the device.

Actual Result
The history is not updating anymore.

Tags: power-bugs
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
description: updated
description: updated
Changed in canonical-devices-system-image:
importance: Undecided → High
Changed in canonical-devices-system-image:
assignee: nobody → Pat McGowan (pat-mcgowan)
milestone: none → backlog
status: New → Confirmed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@pitti can you take a look or reassign?

Changed in upower (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

output of grep -r . /sys/class/power_supply/battery/ + a timestamp and the last line of history-charge-generic_id.dat while running the test case in the description on mako.

tags: added: power-bugs
Martin Pitt (pitti)
Changed in upower (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in upower (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.