This issue is completely reproducible for me. Digging into the
journalctl logs around when the system is rebooting without power
plugged in, here are some lines that stand out and might be useful:

Note that the system was sent to reboot at 10:53:00

...
Sep 26 10:53:37 fenrir systemd[2088]: Started GNOME Power management handling.
Sep 26 10:53:37 fenrir systemd[2088]: Reached target GNOME Power management 
handling.
...
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [PUBS] (on)
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [USBC] (on)
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [PXP] (on)
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [PXP] (off)
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [V0PR] (on)
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [V1PR] (on)
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [V2PR] (on)
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [WRST] (on)
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [PIN] (off)
Sep 26 10:54:28 fenrir kernel: ACPI: Power Resource [PINP] (off)
...
Sep 26 10:54:28 fenrir kernel: usb: port power management may be unreliable
...
Sep 26 10:54:29 fenrir dbus-daemon[844]: dbus[844]: Unknown group "power" in 
message bus configuration file
...
Sep 26 10:54:29 fenrir boltd[842]: journal: opened for 'c0030000-0082'; size: 0 
bytes
Sep 26 10:54:29 fenrir boltd[842]: [c0030000-0082-domain?                    ] 
domain: registered (bootacl: 16/16)
Sep 26 10:54:29 fenrir boltd[842]: store: loading devices
Sep 26 10:54:29 fenrir boltd[842]: power: state located at: /run/boltd/power
Sep 26 10:54:29 fenrir systemd[1]: Starting Hold until boot process finishes 
up...
...
Sep 26 10:54:31 fenrir dbus-daemon[844]: [system] Activating via systemd: 
service name='org.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 systemd[1]: Starting Daemon for power management...
...
Sep 26 10:54:31 fenrir gnome-shell[1111]: Getting invalid resource scale 
property
Sep 26 10:54:31 fenrir gnome-shell[1111]: ibus_bus_hello: assertion 
'ibus_bus_is_connected (bus)' failed
Sep 26 10:54:31 fenrir gnome-shell[1111]: Error while sending AddMatch() 
message: The connection is closed
Sep 26 10:54:31 fenrir gnome-shell[1111]: ibus_bus_call_async: assertion 
'ibus_bus_is_connected (bus)' failed
Sep 26 10:54:31 fenrir gnome-shell[1111]: ibus_bus_call_async: assertion 
'ibus_bus_is_connected (bus)' failed
Sep 26 10:54:31 fenrir gnome-shell[1111]: JS ERROR: Gio.IOErrorEnum: The 
connection is closed
                                          
_setContext@resource:///org/gnome/shell/misc/inputMethod.js:63:25
Sep 26 10:54:31 fenrir upowerd[1760]: energy_full (57.180000) is greater than 
energy_full_design (57.020000)
Sep 26 10:54:31 fenrir gnome-shell[1111]: Error looking up permission: 
GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Sep 26 10:54:31 fenrir systemd[1062]: Started GNOME XSettings.
Sep 26 10:54:31 fenrir dbus-daemon[844]: [system] Successfully activated 
service 'org.freedesktop.UPower'
Sep 26 10:54:31 fenrir systemd[1]: Started Daemon for power management.
...
Sep 26 10:54:36 fenrir gnome-session-binary[2271]: DEBUG(+): GsmManager: read 
/etc/xdg/autostart/org.gnome.SettingsDaemon.Power.desktop
Sep 26 10:54:36 fenrir gnome-session-binary[2271]: DEBUG(+): GsmManager: not 
adding app: app-id 'org.gnome.SettingsDaemon.Power.desktop' already exists
...
Sep 26 10:54:36 fenrir gnome-session-binary[2271]: DEBUG(+): GsmManager:        
ID: /org/gnome/SessionManager/App8        
app-id:org.gnome.SettingsDaemon.Power.desktop        is-disabled:1        
is-conditionally-disabled:0        is-delayed:0
...
Sep 26 10:54:36 fenrir systemd[1958]: Started GNOME Power management handling.
Sep 26 10:54:36 fenrir systemd[1958]: Reached target GNOME Power management 
handling.

A full journalctl log is available but it is 46Mb so I didn't attach it
here.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to upower in Ubuntu.
https://bugs.launchpad.net/bugs/1845532

Title:
  power icon does not indicate charging if booted without power
  connected

Status in upower package in Ubuntu:
  New

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/freedesktop/UPower/devices/line_power_AC                         
                                                                                
                                                     
    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-symbolic'

  Device: /org/freedesktop/UPower/devices/battery_BAT0 
    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-full-design:  57.02 Wh
      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-full-symbolic'

  Device: /org/freedesktop/UPower/devices/DisplayDevice
    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-full-symbolic'

  Daemon:
    daemon-version:  0.99.11
    on-battery:      yes
    lid-is-closed:   no
    lid-is-present:  yes
    critical-action: PowerOff

  $ cat /sys/class/power_supply/BAT0/status 
  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
  ProcVersionSignature: Ubuntu 5.3.0-10.11-generic 5.3.0-rc8
  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-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: upower
  UpgradeStatus: Upgraded to eoan on 2019-09-19 (7 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/1845532/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to