Bug 334536

Summary: List of batteries is not updated at runtime
Product: [Plasma] plasmashell Reporter: Elias Probst <mail>
Component: Battery MonitorAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: normal CC: csw, inform, jwelsh, kde, mail, mkyral, odysei
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on: 324847    
Bug Blocks:    

Description Elias Probst 2014-05-08 23:20:33 UTC
KF5 based plasma-shell is affected by the same bug.
Patch from original bug doesn't apply.


+++ This bug was initially created as a clone of Bug #324847 +++

The battery monitor widget does not show batteries of newly added devices (e.g. if a wireless mouse is switched on after the battery monitor widget has been loaded). 

Reproducible: Always

Steps to Reproduce:
1. Log into KDE, but do not connect e.g. a wireless mouse device
2. After KDE and the widget has been loaded, turn on device
3. Check in battery monitor

Actual Results:  
List of available batteries is not updated (upower --monitor-detail does show it, though).

Expected Results:  
List of available batteries is updated
Comment 1 Kai Uwe Broulik 2014-06-14 21:31:36 UTC
Git commit c5efcd05cb26ade21718e0d5286950e517d8cf71 by Kai Uwe Broulik.
Committed on 14/06/2014 at 21:16.
Pushed by broulik into branch 'master'.

Try to fix battery detection at runtime

Forward port of kde-workspace edd82448a60c36a66afec94cca1ba07741e1a121

M  +4    -11   applets/batterymonitor/contents/ui/batterymonitor.qml

http://commits.kde.org/plasma-workspace/c5efcd05cb26ade21718e0d5286950e517d8cf71