Bug 360800 - Battery applet wrong status reporting with Lenovo thresholds
Summary: Battery applet wrong status reporting with Lenovo thresholds
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-battery (other bugs)
Version First Reported In: unspecified
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-20 22:13 UTC by noric
Modified: 2018-06-08 18:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description noric 2016-03-20 22:13:07 UTC
I've noticed that when the AC power is plugged in, the battery applet in the system tray always reports "charging", even when the battery charge reaches the set threshold and the battery actually stops charging. The notebook is a Lenovo E520, and I set the battery charge threshold with tpacpi (or Lenovo Power Manager in Windows).
While the applet incorrectly shows "charging", the command line reports the correct situation:

    user@PC:~ > cat /proc/acpi/battery/BAT0/state
    present:                 yes
    capacity state:          ok
    charging state:          charged
    present rate:            0 mW
    remaining capacity:      17270 mWh
    present voltage:         10860 mV



Everything else works correctly. It reports "discharging" when the AC power is unplugged, and so on.

I've tried to charge the battery up to 100% and the applet correctly reports "not charging". The same happens if I set a very high thresolds (like 99 or 98).

So the problem only shows when I set a relatively low charge threshold (like 90%): the bios stops charging the battery at the set charge threshold, but the applet still says "charging". 

This is on KDE 4.14.2. 

Reproducible: Always

Steps to Reproduce:
1. Plug the AC cord.
2. Let the battery charge up to set threshold.
3. The battery stops charging at the set threshold.

Actual Results:  
The battery widget still says "charging" (even after reboot).

Expected Results:  
The battery widget should say "not charging".
Comment 1 Nate Graham 2018-06-08 18:19:46 UTC
Hello!

This bug report was filed for KDE Plasma 4, which reached end-of-support status in August 2015. KDE Plasma 5's desktop shell has been almost completely rewritten for better performance and usability, so it is likely that this bug has already been resolved in Plasma 5.

Accordingly, we hope you understand why we must close this bug report. If the issue described  here is still present in KDE Plasma 5.12 or later, please feel free to open a new ticket in the "plasmashell" product after reading https://community.kde.org/Get_Involved/Bug_Reporting

If you would like to get involved in KDE's bug triaging effort so that future mass bug closes like this are less likely, please read https://community.kde.org/Get_Involved#Bug_Triaging

Thanks for your understanding!

Nate Graham