Bug 394943

Summary: Battery is not detected in Plasma session
Product: [Plasma] Powerdevil Reporter: Rolf Eike Beer <kde>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: NOR    
Version: 5.12.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Rolf Eike Beer 2018-06-02 09:48:06 UTC
After upgrading from openSUSE 42.2 to 15.0 the battery icon in my systray now always shows "no batteries available". This has been an intermittent problem previously, but it has worked most of the time. Now it is always broken. When I lock the screen the battery state is correctly shown on the lock screen, but the systray applet never shows this.

This has other disadvantages: the system does not automatically suspend itself when the battery goes low, which can lead to data loss.

OTOH when the battery level drops below 10% I _do_ get a warning about this, and the screen brightness is changed. Which is usually pretty dump, as it changes the screen brightness to ~30%, even if it was _below_ that before (but that is another story and another bug).

upower seems to have everything right:

daneel:~ #  upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              Sat Jun  2 11:25:57 2018 (651 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:               Notebook
  model:                BAT
  serial:               0001
  power supply:         yes
  updated:              Sat Jun  2 11:36:00 2018 (48 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              36.545 Wh
    energy-empty:        0 Wh
    energy-full:         37.543 Wh
    energy-full-design:  45.36 Wh
    energy-rate:         6.89472 W
    voltage:             16.671 V
    time to empty:       5.3 hours
    percentage:          96%
    capacity:            82.6667%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1527932160  96.000  discharging
  History (rate):
    1527932160  6.895   discharging

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Sat Jun  2 11:36:00 2018 (48 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       none
    energy:              36.545 Wh
    energy-full:         37.543 Wh
    energy-rate:         6.89472 W
    time to empty:       5.3 hours
    percentage:          96%
    icon-name:          'battery-full-symbolic'

Daemon:
  daemon-version:  0.99.7
  on-battery:      yes
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: Hibernate
Comment 1 Rolf Eike Beer 2018-06-02 09:52:43 UTC

*** This bug has been marked as a duplicate of bug 350365 ***