Summary: | Charging rate always negative, no matter whether charging or discharging | ||
---|---|---|---|
Product: | [Frameworks and Libraries] ksystemstats | Reporter: | Benjamin <helium314> |
Component: | General | Assignee: | KSysGuard Developers <ksysguard-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ahiemstra, davor.virag, nate, plasma-bugs |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/ksystemstats/-/commit/220bcc14422de9f1fc849bdec60a20d0792962f5 | Version Fixed In: | 6.2.0 |
Sentry Crash Report: |
Description
Benjamin
2023-07-25 04:54:58 UTC
*** Bug 492159 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/plasma/ksystemstats/-/merge_requests/87 Git commit 220bcc14422de9f1fc849bdec60a20d0792962f5 by Arjen Hiemstra. Committed on 04/09/2024 at 08:59. Pushed by ahiemstra into branch 'master'. plugins/power: Check battery state when reporting energy rate According to the documentation of both Solid and UPower enrgy rate should be positive when discharging and negative if charging, but that seems to be incorrect in at least some systems. So use the battery state to make sure we have the right sign for charge/discharge rate. M +12 -2 plugins/power/power.cpp https://invent.kde.org/plasma/ksystemstats/-/commit/220bcc14422de9f1fc849bdec60a20d0792962f5 |