[vivid] After resume, upower reports critically low battery

Bug #1435601 reported by Jonas G. Drange
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Version:
Ubuntu Vivid 15.04

Reproduce (often):
1. Close lid
2. After some time, open lid.

What happens:
I get a notification that the battery is critically low and the laptop hibernates.

What should happen:
The laptop should not hibernate.

This is a upower dump from a normal situation. I will try to record a dump in an abnormal situation where the laptop is about to shut down.
$ upower --dump #normal
Device: /org/freedesktop/UPower/devices/line_power_ADP0
  native-path: ADP0
  power supply: yes
  updated: Mon 23 Mar 2015 11:44:49 PM CET (29 seconds ago)
  has history: no
  has statistics: no
  line-power
    warning-level: none
    online: no
    icon-name: 'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path: BAT0
  vendor: SIMPLO
  model: Dell
  serial: 1180
  power supply: yes
  updated: Mon 23 Mar 2015 11:44:49 PM CET (29 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    warning-level: none
    energy: 22.3184 Wh
    energy-empty: 0 Wh
    energy-full: 40.3596 Wh
    energy-full-design: 47.286 Wh
    energy-rate: 8.7616 W
    voltage: 7.644 V
    time to empty: 2.5 hours
    percentage: 55%
    capacity: 85.3521%
    technology: lithium-ion
    icon-name: 'battery-good-symbolic'
  History (charge):
    1427150688 55.000 discharging
    1427150688 0.000 unknown
    1427150677 55.000 discharging
  History (rate):
    1427150688 8.762 discharging
    1427150688 0.000 unknown
    1427150688 8.762 discharging
    1427150677 11.625 discharging

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply: yes
  updated: Mon 23 Mar 2015 11:44:48 PM CET (30 seconds ago)
  has history: no
  has statistics: no
  battery
    present: yes
    state: discharging
    warning-level: none
    energy: 22.3184 Wh
    energy-full: 40.3596 Wh
    energy-rate: 8.7616 W
    time to empty: 2.5 hours
    percentage: 55%
    icon-name: 'battery-good-symbolic'

Daemon:
  daemon-version: 0.99.2
  on-battery: yes
  lid-is-closed: no
  lid-is-present: yes
  critical-action: HybridSleep

This is a upower dump from an abnormal situation where the battery is known to be at 53% (and it's recorded 6 minutes after the one above), but still is being reported as critical and subsequently puts the laptop to sleep:

upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ADP0
  native-path: ADP0
  power supply: yes
  updated: Mon 23 Mar 2015 11:50:23 PM CET (15 seconds ago)
  has history: no
  has statistics: no
  line-power
    warning-level: none
    online: no
    icon-name: 'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path: BAT0
  vendor: SIMPLO
  model: Dell
  serial: 1180
  power supply: yes
  updated: Mon 23 Mar 2015 11:50:23 PM CET (15 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    warning-level: none
    energy: 21.3194 Wh
    energy-empty: 0 Wh
    energy-full: 40.3596 Wh
    energy-full-design: 47.286 Wh
    energy-rate: 8.1918 W
    voltage: 7.64 V
    time to empty: 2.6 hours
    percentage: 52%
    capacity: 85.3521%
    technology: lithium-ion
    icon-name: 'battery-good-symbolic'
  History (charge):
    1427151023 52.000 discharging
    1427151023 0.000 unknown
    1427151022 0.000 empty
    1427150929 53.000 discharging
  History (rate):
    1427151023 8.192 discharging
    1427151023 0.000 unknown
    1427151022 0.000 empty
    1427150929 11.529 discharging

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply: yes
  updated: Mon 23 Mar 2015 11:50:23 PM CET (15 seconds ago)
  has history: no
  has statistics: no
  battery
    present: yes
    state: discharging
    warning-level: none
    energy: 21.3194 Wh
    energy-full: 40.3596 Wh
    energy-rate: 8.1918 W
    time to empty: 2.6 hours
    percentage: 52%
    icon-name: 'battery-good-symbolic'

Daemon:
  daemon-version: 0.99.2
  on-battery: yes
  lid-is-closed: no
  lid-is-present: yes
  critical-action: HybridSleep

description: updated
description: updated
description: updated
summary: - After resume, upower reports critically low batter
+ [vivid] After resume, upower reports critically low battery
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
Revision history for this message
Laurens Rouw (jlk-rouw) wrote :

I've also encountered this bug, first thinking it was a bug with the KDE battery indicator applet. Upower is giving incorrect energy-full values when this is happening. I've attached my 'upower -d' output from when this is happening, you can see that the energy-full values are way to high. Restarting the upower.service solves the problem.

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.