UPower and battery indicator show update in 2 minutes when connecting power cable ThinkPad

Bug #1977986 reported by Bin Li
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
In Progress
High
Bin Li
upower (Ubuntu)
New
Undecided
Unassigned

Bug Description

We found this issue on several ThinkPad. The upower will change 'pending-charge' to 'charging' after 2 minutes later, but the /sys/class/power_supply/BAT0/status changes to 'Charging' immediately when connecting the power cable.

$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path: BAT0
  vendor: Sunwoda
  model: 5B10W13975
  serial: 34226
  power supply: yes
  updated: Wed 08 Jun 2022 11:42:02 PM CST (1 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: pending-charge
    warning-level: none
    energy: 55.94 Wh
    energy-empty: 0 Wh
    energy-full: 57 Wh
    energy-full-design: 57 Wh
    energy-rate: 5.79 W
    voltage: 16.688 V
    percentage: 98%
    capacity: 100%
    technology: lithium-polymer
    icon-name: 'battery-full-charging-symbolic'
  History (charge):
    1654702882 98.000 pending-charge
    1654702863 97.000 pending-charge
  History (rate):
    1654702863 5.790 pending-charge
    1654702863 6.171 pending-charge

$ cat /sys/class/power_supply/BAT0/status
Charging

Bin Li (binli)
tags: added: oem-priority originate-from-1975803 sutton
Bin Li (binli)
tags: added: originate-from-1989447
Bin Li (binli)
tags: added: originate-from-1991377
Bin Li (binli)
Changed in oem-priority:
assignee: nobody → Bin Li (binli)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Bin Li (binli) wrote :

This patch could help set the initial status correctly.

commit 792fc7bb1bd4c7bf4b779106329aa4487bfa0386
Author: Benjamin Berg <email address hidden>
Date: Thu Jun 2 18:29:50 2022 +0200

    supply: Consistently use 90% threshold to consider a battery full

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-supply-Consistently-use-90-threshold-to-consider-a-b.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Andy Chi (andch)
tags: added: originate-from-2001891 somerville
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.