upower shows wrong battery status
Submitted by Stefan Jensen
Assigned to Richard Hughes @hughsient
Description
Upower shows "battery charging", when it is actually not.
I use tlp and have a threshold configured. AC is connected and the battery is around 50% charged and idle.
"tlp-stat -b" shows:
--- TLP 0.9 --------------------------------------------
+++ ThinkPad Extended Battery Functions
tp-smapi = active
tpacpi-bat = inactive (unsupported hardware)
+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/devices/platform/smapi/BAT0/manufacturer = SANYO
/sys/devices/platform/smapi/BAT0/model = 45N1170
/sys/devices/platform/smapi/BAT0/manufacture_date = 2013-04-12
/sys/devices/platform/smapi/BAT0/first_use_date = 2016-04-08
/sys/devices/platform/smapi/BAT0/cycle_count = 4
/sys/devices/platform/smapi/BAT0/design_capacity = 93960 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capacity = 97030 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capacity = 55080 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_percent = 57 [%]
/sys/devices/platform/smapi/BAT0/remaining_running_time_now = not_discharging [min]
/sys/devices/platform/smapi/BAT0/remaining_charging_time = not_charging [min]
/sys/devices/platform/smapi/BAT0/power_now = 0 [mW]
/sys/devices/platform/smapi/BAT0/power_avg = 0 [mW]
/sys/devices/platform/smapi/BAT0/state = idle
/sys/devices/platform/smapi/BAT0/start_charge_thresh = 45 [%]
/sys/devices/platform/smapi/BAT0/stop_charge_thresh = 55 [%]
/sys/devices/platform/smapi/BAT0/force_discharge = 0
Charge = 56.8 [%]
Capacity = 103.3 [%]
"upower -d" shows:
Device: /org/freedesktop/UPower/devices/line_power_AC
native-path: AC
power supply: yes
updated: Mi 02 Nov 2016 14:43:51 CET (3479 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: yes
icon-name: 'ac-adapter-symbolic'
Device: /org/freedesktop/UPower/devices/battery_BAT0
native-path: BAT0
vendor: SANYO
model: 45N1170
serial: 463
power supply: yes
updated: Mi 02 Nov 2016 15:39:55 CET (115 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
warning-level: none
energy: 55,08 Wh
energy-empty: 0 Wh
energy-full: 97,03 Wh
energy-full-design: 93,96 Wh
energy-rate: 0 W
voltage: 11,357 V
percentage: 56%
capacity: 100%
technology: lithium-ion
icon-name: 'battery-good-charging-symbolic'
Device: /org/freedesktop/UPower/devices/mouse_0003o046DoC52Fx0002
native-path: /sys/devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.1/0003:046D:C52F.0002
vendor: Logitech, Inc.
model: M280/320/275
serial: 103DDB68
power supply: no
updated: Mi 02 Nov 2016 15:39:52 CET (118 seconds ago)
has history: yes
has statistics: no
mouse
present: yes
rechargeable: yes
state: unknown
warning-level: none
percentage: 0%
icon-name: 'battery-missing-symbolic'
Device: /org/freedesktop/UPower/devices/DisplayDevice
power supply: yes
updated: Mi 02 Nov 2016 15:03:55 CET (2275 seconds ago)
has history: no
has statistics: no
battery
present: yes
state: charging
warning-level: none
energy: 55,08 Wh
energy-full: 97,03 Wh
"upower --version"
UPower client version 0.99.5 UPower daemon version 0.99.5
Edited by Bastien Nocera