Bug 312227

Summary: Plasma show no battery when started without battery
Product: [Plasma] plasma4 Reporter: Pietro <pxpert>
Component: widget-batteryAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, pxpert
Priority: NOR    
Version: 4.9.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Pietro 2012-12-26 17:34:32 UTC
If I start KDE without the laptop battery inserted, it shows (correctly) the battery is abstent, but if I instert it, the applet does not refresh and does not update with the charge status.

This is the output of solid-hardware details /org/freedesktop/UPower/devices/battery_BAT0 before end after battery inserting that confirms solid works correctly

Battery not inserted:
pxpert@PxNetbook ~ $ solid-hardware details /org/freedesktop/UPower/devices/
udi = '/org/freedesktop/UPower/devices/'
  parent = ''  (string)
  vendor = ''  (string)
  product = ''  (string)
  description = ''  (string)

After inserting battery:
pxpert@PxNetbook ~ $ solid-hardware details /org/freedesktop/UPower/devices/battery_BAT0
udi = '/org/freedesktop/UPower/devices/battery_BAT0'
  parent = '/org/freedesktop/UPower'  (string)
  vendor = 'ASUS'  (string)
  product = '1015BXO'  (string)
  description = 'Lithium Ion Battery'  (string)
  Battery.plugged = true  (bool)
  Battery.type = 'PrimaryBattery'  (0x3)  (enum)
  Battery.chargePercent = 86  (0x56)  (int)
  Battery.rechargeable = true  (bool)
  Battery.chargeState = 'Charging'  (0x1)  (enum)


If I restart KDE with the battery inserted, it shows battery status correctly

Reproducible: Always

Steps to Reproduce:
1. Start KDE Without the battery inserted
2. Insert the battery
Actual Results:  
The applet will continue showing there is no battery

Expected Results:  
The applet should show battery status

Using an Asus EEEPC 1015BX Netbook
Comment 1 David Edmundson 2013-02-04 16:32:21 UTC

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