[Goodies-dev] [Bug 11679] New: Battery plugin does not show full charge

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Tue Mar 10 19:45:12 CET 2015


https://bugzilla.xfce.org/show_bug.cgi?id=11679

            Bug ID: 11679
           Summary: Battery plugin does not show full charge
    Classification: Panel Plugins
           Product: Xfce4-battery-plugin
           Version: git
          Hardware: PC (x86_64)
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: Medium
         Component: General
          Assignee: goodies-dev at xfce.org
          Reporter: barracuda72 at bk.ru
        QA Contact: goodies-dev at xfce.org

I've upgraded to kernel 4.0.0-rc3 and found minor bug: battery plugin doesn't
show full battery charge. After that I built plugin from GIT tree with
--enable-debug=full and it seems that plugin gets wrong values from ACPI/APM:

DBG[battery.c:321] update_apm_status(): Updating battery status...
DBG:sysfs AC dir->/sys/class/power_supply/AC0
DBG:------------------------
DBG:battery number 0 at:
DBG:sysfs dir->/sys/class/power_supply/BAT0
DBG:------------------------
DBG:sysfs AC dir->/sys/class/power_supply/test_ac
DBG:------------------------
DBG:battery number 1 at:
DBG:sysfs dir->/sys/class/power_supply/test_battery
DBG:------------------------
DBG[battery.c:456] update_apm_status(): method=1, acline=1, time_remaining=0,
charge=99
DBG[battery.c:321] update_apm_status(): Updating battery status...
DBG[battery.c:456] update_apm_status(): method=1, acline=1, time_remaining=0,
charge=99
DBG[battery.c:321] update_apm_status(): Updating battery status...
DBG[battery.c:456] update_apm_status(): method=1, acline=1, time_remaining=0,
charge=99

At the same time, console tools works fine:

user at host /home/user $ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               ODM
  model:                MT50II
  serial:               00001
  power supply:         yes
  updated:              Tue Mar 10 23:15:13 2015 (1826 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    energy:              29.16 Wh
    energy-empty:        0 Wh
    energy-full:         29.16 Wh
    energy-full-design:  47.52 Wh
    energy-rate:         0 W
    voltage:             12.549 V
    percentage:          100%
    capacity:            61.3636%
    technology:          lithium-ion
  History (charge):
    1508348808    33.000    discharging
    1508348688    34.000    discharging
    1508348563    35.000    discharging
  History (rate):
    1508348808    12.506    unknown
    1508348778    12.841    discharging
    1508348637    13.192    discharging

That can I do to help you fix this?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the Goodies-dev mailing list