power icon does not indicate charging if booted without power connected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upower (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hardware: Lenovo T590
OS: 19.10
When the power is not connected when the laptop boots, and then connected, the power icon in the top bar does not change to indicate that the laptop is now charging.
$ upower -d
Device: /org/freedeskto
native-path: AC
power supply: yes
updated: Thu 26 Sep 2019 08:53:40 AM MDT (2107 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: no
icon-name: 'ac-adapter-
Device: /org/freedeskto
native-path: BAT0
vendor: SMP
model: 02DL012
serial: 1417
power supply: yes
updated: Thu 26 Sep 2019 09:28:33 AM MDT (14 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
warning-level: none
energy: 55.53 Wh
energy-empty: 0 Wh
energy-full: 57.21 Wh
energy-
energy-rate: 0.319173 W
voltage: 12.932 V
time to empty: 7.2 days
percentage: 97%
capacity: 100%
technology: lithium-polymer
icon-name: 'battery-
Device: /org/freedeskto
power supply: yes
updated: Thu 26 Sep 2019 09:22:33 AM MDT (374 seconds ago)
has history: no
has statistics: no
battery
present: yes
state: discharging
warning-level: none
energy: 55.53 Wh
energy-full: 57.21 Wh
energy-rate: 0.319173 W
time to empty: 7.2 days
percentage: 97%
icon-name: 'battery-
Daemon:
daemon-version: 0.99.11
on-battery: yes
lid-is-closed: no
lid-is-present: yes
critical-action: PowerOff
$ cat /sys/class/
Unknown
However, if the laptop is booted with the power connected, then the battery icon in the top bar shows that it's charging and at 100%. If I unplug the power, it correctly shows that it is no longer charging but it goes back to saying I'm at 97% (the last reported state when booted without power).
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: upower 0.99.11-1
ProcVersionSign
Uname: Linux 5.3.0-10-generic x86_64
ApportVersion: 2.20.11-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Sep 26 10:24:38 2019
InstallationDate: Installed on 2019-09-13 (12 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: upower
UpgradeStatus: Upgraded to eoan on 2019-09-19 (7 days ago)
The only difference in journalctl between when the system boots with power and without is that when the system boots without power, I see two journalctl messages:
Sep 26 10:53:27 fenrir dbus-daemon[793]: [system] Activating via systemd: service name='org. freedesktop. UPower' unit='upower. service' requested by ':1.37' (uid=123 pid=1052 comm="/ usr/bin/ gnome-shell " label="unconfined") freedesktop. UPower' unit='upower. service' requested by ':1.38' (uid=123 pid=1111 comm="/ usr/bin/ gnome-shell " label="unconfined")
Sep 26 10:54:31 fenrir dbus-daemon[844]: [system] Activating via systemd: service name='org.
When the system boots with power, I see only one similar journalctl message: freedesktop. UPower' unit='upower. service' requested by ':1.38' (uid=123 pid=1090 comm="/ usr/bin/ gnome-shell " label="unconfined")
Sep 26 11:22:26 fenrir dbus-daemon[835]: [system] Activating via systemd: service name='org.