Bug 301080 - Battery is not recognized (again) by plasma applet
Summary: Battery is not recognized (again) by plasma applet
Status: RESOLVED DUPLICATE of bug 301033
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-03 02:07 UTC by Yichao Yu
Modified: 2012-06-04 21:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yichao Yu 2012-06-03 02:07:26 UTC
The power management plasma applet does not recognize my battery although

HW information:
solid-hardware details /org/freedesktop/UPower/devices/battery_BAT0
udi = '/org/freedesktop/UPower/devices/battery_BAT0'
  parent = '/org/freedesktop/UPower'  (string)
  vendor = 'SANYO'  (string)
  product = '42T4619'  (string)
  description = 'Lithium Ion Battery'  (string)
  Battery.plugged = true  (bool)
  Battery.type = 'UnknownBattery'  (0x0)  (enum)
  Battery.chargePercent = 99  (0x63)  (int)
  Battery.rechargeable = true  (bool)
  Battery.chargeState = 'NoCharge'  (0x0)  (enum)

upower -i /org/freedesktop/UPower/devices/battery_BAT0   
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
  vendor:               SANYO
  model:                42T4619
  serial:               6045
  power supply:         no
  updated:              Sun Jun  3 09:55:29 2012 (2 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    energy:              56.54 Wh
    energy-empty:        0 Wh
    energy-full:         57.07 Wh
    energy-full-design:  84.24 Wh
    energy-rate:         0 W
    voltage:             12.486 V
    percentage:          99.0713%
    capacity:            67.7469%
    technology:          lithium-ion

I realize this is pretty similiar to #288915 which is fixed in 4.8.{1,2,3}. BTW suspend and resume doesn't fix it~~


Reproducible: Always

Steps to Reproduce:
1. same with #288915
2.
3.
Comment 1 Raymond Wooninck 2012-06-03 07:21:52 UTC
I see the same behavior with the latest KDE trunk. What I found in the .xsession-errors file are the following two messages: 


1 file:///usr/share/kde4/apps/plasma/plasmoids/battery/contents/ui/batterymonitor.qml:103: TypeError: Result of expression 'pmSource.data["Battery0"]' [undefined] is not an object.
1 file:///usr/share/kde4/apps/plasma/plasmoids/battery/contents/ui/batterymonitor.qml:49: TypeError: Result of expression 'pmSource.data["Battery0"]' [undefined] is not an object.

I guess that this causes the plasmoid not to recognize the battery.
Comment 2 Yichao Yu 2012-06-04 11:41:09 UTC
Yeah, found similar (same) lines in mine~

Thx.
Comment 3 Thijs 2012-06-04 14:59:47 UTC
Is this all in 4.9beta and/or development? Or also in 4.8.x?
Comment 4 Thijs 2012-06-04 19:09:10 UTC

*** This bug has been marked as a duplicate of bug 301033 ***
Comment 5 Yichao Yu 2012-06-04 21:46:42 UTC
Afaik, it's fine here in all versions before 4.8.3.