Bug 471900 - Charge limit support for the Framework Laptop
Summary: Charge limit support for the Framework Laptop
Status: RESOLVED UPSTREAM
Alias: None
Product: Powerdevil
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: master
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-03 12:44 UTC by Michał
Modified: 2024-09-16 14:29 UTC (History)
5 users (show)

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 Michał 2023-07-03 12:44:05 UTC
SUMMARY
Not an issue, but a feature request.
It'd be nice if I would be able to change the charge limit from within KDE.

STEPS TO REPRODUCE
N/A

OBSERVED RESULT
N/A

EXPECTED RESULT
N/A

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux rolling
(available in About System)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Some of the quirks are:
1. The charge limit is managed by the embedded controller.
2. It can be managed with a fork of ectool (available at https://github.com/FrameworkComputer/EmbeddedController).
3. It resets upon reboot.
4. It does not support setting a start/stop charging threshold, only a percentage at which the battery should be kept.
The current implementation of battery thresholds does not seem well-suited to computers that manage the battery with an EC.
I'm willing to work on this.
This could also help with issue #441057.
Comment 1 Nate Graham 2023-09-01 16:43:53 UTC
Indeed, Bug 441057 seems quite related.

I suppose we can wait for these features to be implemented in the Kernel using the standard stop charging threshold approach, or we can explicitly add support for this style of hardware in our code.
Comment 2 Angus K 2024-09-08 22:37:54 UTC
This is hopefully slated to be released in 6.11 or 6.12: https://lore.kernel.org/lkml/20240610-cros_ec-charge-control-v3-0-135e37252094@weissschuh.net/
Once the EC charge level is exposed this should 'just work', as folks seem to have tested it working fine in upower/Gnome once the kernel patch is applied.
Comment 3 Nate Graham 2024-09-16 14:29:04 UTC
Yup!