You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@tlvince since you're also using charge control, could you please confirm a separate issue?
When I set the start and end thresholds to the same number, it never starts charging. The discharge rate slows down to a minimum when it hits that percentage, but level still falls.
When I set the start and end thresholds to the same number, it never starts charging. The discharge rate slows down to a minimum when it hits that percentage, but level still falls.
What do you expect to happen? What's the purpose of setting them to the same number?
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.
Then in the morning found the AC connected laptop discharged to about 60% - under both thresholds. Found the behaviour to be very surprising, so reporting it.
This may be because powerdevil sets both numbers, while the EC expectation is that only one will be set?
When I set the start and end thresholds to the same number, it never starts charging
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.
BIOS 03.04 06/10/2025 , kernel 6.15.8, charge limit sort of works.
I think it is only the BIOS limit that is respected though, changing the min/max values from userspace doesn't seem to do anything.
And because I'm an idiot who deleted the old kernels almost immediately, checking that a previous version works remains on my TODO list :/
My gut tells me it's coming from the patches not being correct anymore.
Yeah, I'm using the EC charge limiter for now. It can be controlled via ectool, but its less convenient. I've pinged the driver maintainer in the meantime.
Activity
Serafean commentedon May 27, 2025
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.
JohnAZoidberg commentedon May 27, 2025
Oh thanks, I haven't seen that.
But 6.15 was already released without this patch.
Serafean commentedon May 27, 2025
My bad, made the assumption that it had landed...
Good to know.
tlvince commentedon May 28, 2025
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.
Serafean commentedon May 29, 2025
@tlvince since you're also using charge control, could you please confirm a separate issue?
When I set the start and end thresholds to the same number, it never starts charging. The discharge rate slows down to a minimum when it hits that percentage, but level still falls.
JohnAZoidberg commentedon May 29, 2025
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
Serafean commentedon May 29, 2025
My expectation is for the charge level to stay at that percentage while on AC.
right now I have start 79%, end 80%.
Serafean commentedon May 29, 2025
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
Manually set max to 83, min to 82, then used scroll wheel in "stop charging at" . Note how they're tied.
JohnAZoidberg commentedon May 29, 2025
But it's enough to set the maximum, no? Then the system charges until that number, stops and stays there
Serafean commentedon May 29, 2025
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.
Then in the morning found the AC connected laptop discharged to about 60% - under both thresholds. Found the behaviour to be very surprising, so reporting it.
This may be because powerdevil sets both numbers, while the EC expectation is that only one will be set?
tlvince commentedon May 29, 2025
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.
JohnAZoidberg commentedon Jun 7, 2025
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.
tlvince commentedon Jul 22, 2025
@JohnAZoidberg unfortunately 3.04 seems to have broken this. With the BIOS charge limit and extender options disabled and mfd: cros_ec: Separate charge-control probing from USB-PD applied to 6.15.7 as before, GNOME/upower detects the charge limit, but it keeps charging past 80%:
Could this issue be reopened? @Serafean can you reproduce?
Serafean commentedon Jul 22, 2025
Yes, I can, kernel 6.15.7, but I'm still on 3.03
DMI: Framework Laptop 13 (AMD Ryzen AI 300 Series)/FRANMGCP09, BIOS 03.03 03/10/2025I also note that you have
Which are the exact same numbers I show, but aren't the limits I have set.
Serafean commentedon Jul 22, 2025
The output is a upower discrepancy, the
cat /sys/class/power_supply/BAT1/charge_control_{start,end}_thresholdfiles report the set values correctly.tlvince commentedon Jul 22, 2025
Thanks. I can reproduce on 6.15.5 with 3.04, but couldn't with 6.15.5 with 3.03
Serafean commentedon Jul 27, 2025
BIOS 03.04 06/10/2025, kernel 6.15.8, charge limit sort of works.I think it is only the BIOS limit that is respected though, changing the min/max values from userspace doesn't seem to do anything.
And because I'm an idiot who deleted the old kernels almost immediately, checking that a previous version works remains on my TODO list :/
My gut tells me it's coming from the patches not being correct anymore.
tlvince commentedon Jul 28, 2025
Yeah, I'm using the EC charge limiter for now. It can be controlled via
ectool, but its less convenient. I've pinged the driver maintainer in the meantime.tlvince commentedon Jul 29, 2025
With the BIOS limiter set to 100% and extender disabled and
cros_charge-controlenabled, in the EC logs, I see:... which suggests the limits are being passed through correctly, but then being reset.
This looks like the culprit: FrameworkComputer/EmbeddedController@d2a654b#diff-c97fadb96709544efeb068ef6acb07cc573d36d2b4498033b7d5f84b8a24ae41L85-L141
@JohnAZoidberg could you take a look? Perhaps this could be solved by an explicit charge limit toggle in the BIOS.