-
Notifications
You must be signed in to change notification settings - Fork 0
Unsupported userspace charge control #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, I've been going through this issue here. The TLDR version is you need this kernel patch and probe_with_fwk_charge_control=1. So should be fixed in kernel 6.15. |
Oh thanks, I haven't seen that. |
My bad, made the assumption that it had landed... |
Thanks. Applied on top of v6.14.7. Works for me:
Although the start threshold seems to be ignored - it hovers around 80% /cc @t-8ch. |
@tlvince since you're also using charge control, could you please confirm a separate issue? |
What do you expect to happen? What's the purpose of setting them to the same number?
Yes, it's not implemented in the EC |
My expectation is for the charge level to stay at that percentage while on AC. right now I have start 79%, end 80%. |
Also the KDE UI sort of leads to setting them to the same number. https://github.com/user-attachments/assets/0e87663a-878d-407c-805c-edf7da307e81 |
But it's enough to set the maximum, no? Then the system charges until that number, stops and stays there |
The reason I reported this it is that I just scrolled the max down to 80% in the KDE UI (which set the min to 80%, hadn't even thought about setting that), applied. |
Please consider implementing this 😄
Setting both to the same value doesn't make sense, IMO. Sounds like a validation bug. Although not charging at all sounds like its triggering another bug. Either way, I think we can close this issue. |
Yes, we're planning to retire our own host commands eventually and use the battery limit/saver commands of chromium ec.
Great, thanks, good that it's wroking now. |
Device Information
System Model or SKU
Please select one of the following
BIOS VERSION
3.03
DIY Edition information
Port/Peripheral information
Standalone Operation
Describe the bug
Loading
cros_charge-control
with probe_with_fwk_charge_control=1 should provide/sys/class/power_supply/BAT1/charge_control_{start,end}_threshold
for userspace charge control e.g. GNOME 48's Preserve Battery Health feature.This doesn't work on the AI 300 series (BIOS 3.03). On the 7040's, BIOS 3.09 caused a regression.
Operating System (please complete the following information):
The text was updated successfully, but these errors were encountered: