! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Battery plugin does not show full charge
Status:
RESOLVED: INVALID
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Alex 2015-03-10 19:45:12 CET
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@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?
Comment 1 Alex 2015-03-10 19:49:25 CET
F**K, I am very sorry! It seems to be kernel misconfiguration on my side!

Bug #11679

Reported by:
Alex
Reported on: 2015-03-10
Last modified on: 2015-03-10

People

Assignee:
Xfce-Goodies Maintainers
CC List:
0 users

Version

Attachments

Additional information