Summary: | Support 60% Charge Limit threshold for Lenovo Ideapad and Legion laptops | ||
---|---|---|---|
Product: | [Unmaintained] Powerdevil | Reporter: | Tornado99 <richrocksmyworld> |
Component: | general | Assignee: | Fabian Arndt <fabian.arndt> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | bugseforuns, butirsky, fabian.arndt, fouad.fakih, kde, kde, linux, mysignup27, natalie_clarius, nate, postix, spamless.9v5xj, thenerdiestguy, tinozzo123 |
Priority: | NOR | ||
Version First Reported In: | 5.24.0 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=471900 | ||
Latest Commit: | https://invent.kde.org/plasma/powerdevil/-/commit/53f688de8eff37a52efed55b52d9e51f5217a185 | Version Fixed In: | 6.1 |
Sentry Crash Report: |
Description
Tornado99
2021-08-16 19:37:39 UTC
I worked on an implementation some time ago, but it needs further testing, polish and maybe a port to Plasma 6. It also lacks a feature that restores the setting on reboot, as the conservation mode gets reset sometimes. One further question: Is there any way to know the target state of charge? Or can you set multiple targets? My laptop (15IAH7H) charges to 80%, not 60%. This should be represented by the UI, if possible. I will open a merge request the coming days. I hope it makes the Plasma 6 release. > the conservation mode gets reset sometimes That's a BIOS bug, can be fixed by reverting to an older version. > know the target state of charge Only works if your machine has the proper full version that allows you to limit it to any value you want and not just "conservation mode on/off", which is not the case for the Legion series. Although you can likely guess it by how much it charges. Quick update, the merge request has landed some weeks ago: https://invent.kde.org/plasma/powerdevil/-/merge_requests/248 ------ (In reply to FreeLibre from comment #2) > That's a BIOS bug, can be fixed by reverting to an older version. Hm.. I didn't know that, but I'm already working on a restore function: https://invent.kde.org/plasma/powerdevil/-/merge_requests/253 The Thinkpad implementation also resets the charge thresholds. So it is a good thing to have, nonetheless. I wonder why the behaviour should differ though. > Only works if your machine has the proper full version that allows you to > limit it to any value you want and not just "conservation mode on/off", > which is not the case for the Legion series. I know, but it would be nice to have some indicator. The driver does not offer this information and there is no documentation from Lenovo. https://github.com/johnfanv2/LenovoLegionLinux: > Lenovo Legion Linux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. It allows you to control features like the fan curve, power mode, power limits, rapid charging, and more. This has been achieved through reverse engineering and disassembling the ACPI firmware, as well as the firmware and memory of the embedded controller (EC). @Fabian Arndt Could you make a feature request in the above repo? Maybe they could extract the battery threshold from the embedded controller. It will be submitted for upstream Linux after the 2022 and 2023 Legion models are supported. (In reply to FreeLibre from comment #4) > https://github.com/johnfanv2/LenovoLegionLinux: I found out about the repo yesterday and had a similar idea. I just don't know if there is such information available. Before bothering other people with feature request, I wanted to validate it first. Do you know if the Windows software features anything like this? For example telling you the actual limit? I have never had Windows installed on my laptop. Git commit 53f688de8eff37a52efed55b52d9e51f5217a185 by Jakob Petsovits, on behalf of Fabian Arndt. Committed on 23/05/2024 at 01:39. Pushed by jpetso into branch 'master'. Added setting for battery conservation mode (Lenovo) The setting is not consistently persistent, it resets occasionally after power loss and/or reboot. It might be a good idea to implement a toggle for restoring the setting on reboot. The path is fixed for now, as there is no evidence of a device that differs from it. At least I wasn't able to find one after a quick search. FIXED-IN: 6.1 M +16 -0 daemon/chargethreshold_helper_actions.actions M +52 -0 daemon/chargethresholdhelper.cpp M +4 -0 daemon/chargethresholdhelper.h M +6 -0 daemon/dbus/org.kde.Solid.PowerManagement.xml M +30 -0 daemon/powerdevilcore.cpp M +4 -0 daemon/powerdevilcore.h M +117 -41 kcmodule/profiles/ExternalServiceSettings.cpp M +20 -0 kcmodule/profiles/ExternalServiceSettings.h M +6 -0 kcmodule/profiles/PowerKCM.cpp M +3 -0 kcmodule/profiles/PowerKCM.h M +14 -2 kcmodule/profiles/ui/GlobalConfig.qml https://invent.kde.org/plasma/powerdevil/-/commit/53f688de8eff37a52efed55b52d9e51f5217a185 |