UPower and battery indicator show update in 2 minutes when connecting power cable ThinkPad
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/
$ upower -i /org/freedeskto
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-
energy-rate: 5.79 W
voltage: 16.688 V
percentage: 98%
capacity: 100%
technology: lithium-polymer
icon-name: 'battery-
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/
Charging
tags: | added: oem-priority originate-from-1975803 sutton |
tags: | added: originate-from-1989447 |
tags: | added: originate-from-1991377 |
Changed in oem-priority: | |
assignee: | nobody → Bin Li (binli) |
importance: | Undecided → High |
status: | New → In Progress |
tags: | added: originate-from-2001891 somerville |
This patch could help set the initial status correctly.
commit 792fc7bb1bd4c7b f4b779106329aa4 487bfa0386
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