# \[Solved\] - Puzzling Battery Threshold Behavior

**URL:** <https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941>\
**Category:** Community Support\
**Tags:** other-issues, amd-7040\
**Created:** [August 7, 2026, 12:33am UTC](https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941 "2026-08-07T00:33:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hojjat\_Abdollahi](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/hojjat_abdollahi/32/49884_2.png) [@Hojjat\_Abdollahi](https://community.frame.work/u/Hojjat_Abdollahi)\
**Post date:** [August 7, 2026, 12:34am UTC](https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941/1 "2026-08-07T00:34:00Z")

</div>

I enabled the battery charge threshold using `framework_tools` and set it to 80%.

Based on the ec source code I found on github, it looks like it’s supposed to do this:

```auto
0 ---------- 75 ------- 80 --------100
    Normal IDLE discharge

```

It does work normally below 75%. It does discharge the battery if it’s more than the threshold of 80%. But when it gets to 80% it doesn’t IDLE, it’s still pulling power from the battery. In IDLE mode I lose 1% of the battery per hour, so you’d assume it’ll take 5 hours to go from 80% to 75%, but it takes less than an hour, so it’s constantly charging and discharging the battery.

I also tested using the BIOS, and set the threshold to 60%, and saw the exact same issue.

This doesn’t make any sense to me, does anybody else see the same issue? It’s pulling a constant 5W-7W from the battery (the system is using more, so it drains slower than if it were not connected to the AC, but you’d assume in IDLE mode, it pull ~0W from the battery).

[The image is my current test with threshold at 60% via BIOS, you see it drained faster when it was above the threshold, and slowed down when it got to 60, but it’s charging and recharging that 5% every hour]

 ![image](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/3X/2/f/2f6b348c153f42ba9a043cc67d0cef640a24f0ad.png)

Here’s another image showing battery draining at 6W:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/3X/8/c/8c44657ecb7ede6967cb1ba06915c3df8e996e51.jpeg)

It looks like that only at 60% and at 56% it was actually IDLE:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/3X/0/7/0745a47627754cf2a17dc2fed138084f6398c375.png)

I turned off Battery Extender in the BIOS. Didn’t change anything.

system info:  
Vendor: INSYDE Corp.  
Version: 03.20  
Release Date: 06/23/2026  
Address: 0xE0000  
product: AMD Ryzen 7 7840U w/ Radeon 780M Graphics  
vendor: Advanced Micro Devices [AMD]  
physical id: 4  
bus info: cpu@0  
version: 25.116.1  
I’m on PopOS 24.04

---

<div class="post-metadata">

**Author:** ![twisted\_nematic57](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/twisted_nematic57/32/38393_2.png) [@twisted\_nematic57](https://community.frame.work/u/twisted_nematic57)\
**Post date:** [August 7, 2026, 2:29am UTC](https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941/2 "2026-08-07T02:29:17Z")

</div>

I know this reply is gonna seem a little far-fetched since I’m on a completely different system (i5 Framework 12) but in my experience, using a very high wattage charger (like 100W) will ensure that 0 watts are actually drawn from the battery at all times regardless of system load. If I use a lower wattage charger like a 45 watt one, which, according to the math, should sustain the entire system at max load, sometimes I catch the battery being drawn from by like 0.5W or so while the system is in heavy load with the 45W charger connected.

I might be spewing nonsense here, but you may want to try using a higher wattage charger before doing anything else.

---

<div class="post-metadata">

**Author:** ![Hojjat\_Abdollahi](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/hojjat_abdollahi/32/49884_2.png) [@Hojjat\_Abdollahi](https://community.frame.work/u/Hojjat_Abdollahi)\
**Post date:** [August 7, 2026, 3:17am UTC](https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941/3 "2026-08-07T03:17:03Z")

</div>

I have a 100W power supply connected, and my system is pulling a lot less (20W max).  
The draw from the battery is a constant 5W or 6W, regardless of the load.  
Looking at the ec console log, it reports the battery “parked” only when the percentage is 60%, as soon as it gets below 60%, it starts drawing (not “parked” anymore, while reporting “not charging”) a constant amount until it gets to 55%.

---

<div class="post-metadata">

**Author:** ![Charlie\_6](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/charlie_6/32/22087_2.png) [@Charlie\_6](https://community.frame.work/u/Charlie_6)\
**Post date:** [August 7, 2026, 4:33am UTC](https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941/4 "2026-08-07T04:33:57Z")

</div>

This is definitely a bug. If you used a 45W or 60W charger and play video games it’ll slowly discharge at about 0.5W until it reaches 5% lower. It’s discharge above 80%, charge below 75% and idle at between 75 to 80%. If you start at 80% and a sharp pulse load drags the battery to 79% it should continue idling at 79%.

In OP’s computer, it can only idle at 80% a sharp pulse load drags the battery to 79%, instead of idling, it changes to discharge and discharges to 75% before changing to normal again. That’s why OP shows 7W drain, identical to idle drain on pure battery, instead of 0.5-ish W drain

---

<div class="post-metadata">

**Author:** ![Hojjat\_Abdollahi](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/hojjat_abdollahi/32/49884_2.png) [@Hojjat\_Abdollahi](https://community.frame.work/u/Hojjat_Abdollahi)\
**Post date:** [August 7, 2026, 6:04am UTC](https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941/5 "2026-08-07T06:04:52Z")

</div>

I think I found the issue.

It looks like when it sets the mode to IDLE it sets current and voltage to 0. Then overwrites the voltage by 1 voltage step, which is not high enough, so as soon as there is a little load, the diode conducts and starts leaking. and since the current is 0 it never gets biased again, until we reach the min we switch to Normal mode, and we’re good.

Setting the min and max both to 60% fixes this issue (you can do it using the kernel driver). The reason that works is because as soon as it goes below 60% the voltage is set to max, so the diode is fine. and IDLE doesn’t leak.

I have confirmed setting 60% as both min and max fixes the issue. And currently am compiling the ec, to flash it with a fix for the scenario where min \< max.

Opened a PR:

> <https://github.com/FrameworkComputer/EmbeddedController/pull/84>
>
> When the battery sustainer parks the pack at a charge limit it enters \`CHARGE\_CO…NTROL\_IDLE\`, which sets manual current and voltage to 0. \`charge\_request()\` then takes the \`!voltage || !current\` path and, on NVDC chargers, requests \`VBAT + one voltage\_step\`. Per the comment on that branch, the margin exists so that "the BGATE FET body diode" does not "conduct and discharge the battery".
> 
> However one voltage\_step does not appear to be enough margin: if the rail sags below VBAT under load the diode conducts and the pack supplies part of the system current. Charge current is pinned at 0 in IDLE, so it is never replenished, SoC falls until it crosses the sustainer's lower threshold and triggers a full recharge.
> 
> This is what I observe: a shallow charge/discharge between min/max charge threshold. The EC automatically sets \`max-5\` as the min. When I set the charge threshold to 60%, it charges to 60%, then goes to IDLE (observed in ec console) but then as soon as there is some load on the system, it starts drawing a constant 5-9W from the battery. Until it gets to 55% and charges back up to 60%.
> 
> \### Stock EC, Min=55%, Max=60% 
> \- Note it stayed parked for some time, but then suddenly started draining at a constant rate
> \<img width="1560" height="900" alt="image" src="https://github.com/user-attachments/assets/eafb5ee7-19d9-4372-8932-2934b30984b6" /\>
> 
> \### Stock EC, Min=Max=60% 
> \- Ignore the first couple of charge/discharges, I was testing something.
> \- Notice how much more it stayed parked, going below 60% switches to Normal mode and replenishes the diode
> \<img width="1560" height="900" alt="image" src="https://github.com/user-attachments/assets/0342bdf5-4b47-451a-8779-032075d1736e" /\>
> 
> 
> \### Patched EC, Min=55%, Max=60%
> \<img width="1560" height="900" alt="image" src="https://github.com/user-attachments/assets/eb8bed41-dda4-4678-87e5-208095e07702" /\>
> 
> 
> This patch potentially applies to other boards too.
> 
> My framework forum post: https://community.frame.work/t/puzzling-battery-threshold-behavior/83941

---

<div class="post-metadata">

**Author:** ![Charlie\_6](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/charlie_6/32/22087_2.png) [@Charlie\_6](https://community.frame.work/u/Charlie_6)\
**Post date:** [August 7, 2026, 8:32am UTC](https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941/6 "2026-08-07T08:32:53Z")

</div>

What happens if a 60W charger is used? Does it going to drag the voltage from max all the way to battery voltage so the battery can supply power during peak loads?

---

<div class="post-metadata">

**Author:** ![Hojjat\_Abdollahi](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/hojjat_abdollahi/32/49884_2.png) [@Hojjat\_Abdollahi](https://community.frame.work/u/Hojjat_Abdollahi)\
**Post date:** [August 7, 2026, 2:03pm UTC](https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941/7 "2026-08-07T14:03:03Z")

</div>

Yeah, works fine. Here I charged to 60% using my SteamDeck charger which is rated 45W. It parked the battery when it got to 60%, I ran a couple of compiles, it pulled from the battery when compiling and parked when finished:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/3X/4/6/466350320caf83c359e5def67cc8381a3af686f5.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/1X/64c81a89f963ddb07633887baceb642a4b056046.png) [@system](https://community.frame.work/u/system)\
**Post date:** [August 9, 2026, 2:03pm UTC](https://community.frame.work/t/solved-puzzling-battery-threshold-behavior/83941/8 "2026-08-09T14:03:17Z")

</div>

Closed on August 9, 2026, 2:03pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
