| Summary: | Battery randomly showing incorrect values | ||
|---|---|---|---|
| Product: | [Unmaintained] plasma4 | Reporter: | Josh Ernzen <jpe.1337> |
| Component: | widget-battery | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | demaledetti.kde, kde |
| Priority: | NOR | ||
| Version First Reported In: | 4.10.1 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Josh Ernzen
2013-04-25 19:01:47 UTC
Can you check what the output of upower -d is? If that reports the same incorrect values it's probably a hardware and/or kernel problem and nothing we can do about. I have the same hardware, same distro (Gentoo), KDE 4.10.4 and the same problem: KDE battery plasmoid randomly shows incorrect battery charge percentage (both when plugged and when unplugged), especially when initially booted without power plug. I also get "battery running out" notifications when it's actually full.
Surely there is something that can be done about it, because acpi (and gkrellm) shows the correct value all the time:
# upower -d
Device: /org/freedesktop/UPower/devices/line_power_ADP1
native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ADP1
power supply: yes
updated: Thu Aug 1 11:58:35 2013 (1012 seconds ago)
has history: no
has statistics: no
line-power
online: yes
Device: /org/freedesktop/UPower/devices/battery_BAT0
native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0
vendor: SMPNz451ED3LADEF0123456789ABCDE
model: bq20z451ED3LADEF0123456789ABCDE
power supply: yes
updated: Thu Aug 1 12:15:10 2013 (17 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
energy: 37.8 Wh
energy-empty: 0 Wh
energy-full: 644.83 Wh
energy-full-design: 57.7 Wh
energy-rate: 15.741 W
voltage: 12.279 V
percentage: 5.86201%
capacity: 85.182%
History (charge):
1375352110 5.862 charging
1375352080 5.845 charging
1375352050 5.829 charging
1375352020 5.812 charging
History (rate):
1375352110 15.741 charging
1375352080 15.796 charging
1375352050 15.791 charging
1375352020 15.785 charging
Daemon:
daemon-version: 0.9.20
can-suspend: yes
can-hibernate: yes
on-battery: no
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
is-docked: no
# acpi
Battery 0: Charging, 77%, 00:46:48 until charged
Well, that's what upower says: percentage: 5.86201% and that's the value PowerDevil uses. So I guess it's a upower bug then? You're right. Sorry I mistakenly thought upower was part of KDE. I'll report the bug there. Thanks. Thanks for your feedback! For reference, the upstream bug seems to be: https://bugs.freedesktop.org/show_bug.cgi?id=60214 |