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
Connected to a USB C port on port 1 which is connected to a Dell U3219Q monitor with Power Delivery (this is how the laptop is charged).
All other ports are disconnected.
Standalone Operation
Are you running your mainboard as a standalone device. Is standalone mode enabled in the BIOS?
Yes
No
Describe the bug
BIOS Battery Charge limit settings below 100% are not adhered to. Instead it charges to 100%.
Steps To Reproduce
Steps to reproduce the behavior:
Installed bios 3.07 from 3.06, with charge limit set at 65%
After restarting, the charge started rising above. I noticed it at 80%
I found on the 3.07 release page that others had success to get the charge limit back by setting the limit to 100%, rebooting, then setting back down to the desired %. I did this, and afterwards I found it stopped charging and dropped back to my limit.
The next day I found that the battery was charged to 100% again (perhaps I restarted it, or it hibernated). So I repeated the above step (reboot twice to set the limit to 100% then back down to my desired % - this time I chose 80% arbitrarily, and it's now staying limited to 80%, for the time being.
At first I had the battery extender enabled, but I believe I have experienced the issue regardless of whether battery extender is enabled or not.
Operating System (please complete the following information):
OS/Distribution: Windows 11 Pro
Version: 24H2, 26100.3194
Additional context
Many others are having this issue, and have expressed their situation on the 3.07 release page
Reacted by LinuxOnTheDesktop, dimitris-personal, Brian Gregory, James Mudge, inffy, conradsnicta, Grégoire Stein Greyxor, Lee245, sgilder1, Kan-Ru Chen and 24 more
When you set the charge limit, do you disable the battery extender at the same time?
Here's what I did this morning - hopefully this answers your question:
My charge limit had been correctly adhered to yesterday, plugged in with charge limit enabled to 80% and the battery extender disabled. I then closed the lid to sleep it and then unplugged it.
My laptop had been sleeping, unplugged for 18h+
I first plugged it in, then pressed the power button. Upon waking, the framework logo showed. So it was in a deep sleep / hibernation.
after 10 min or so plugged in, it passed my charge limit. This was now the 2nd time since upgrading to 3.07 where I had had the charge limit working, but then it stopped working.
I rebooted and swapped both charge settings: I limited the charge to 100%, and enabled battery extender.
I rebooted again, and only changed the charge limit to 75%. After booting though, it was still charging past 75%.
I rebooted again, and limited the charge to 100% and disabled the battery extender.
I rebooted again, and only changed the charge limit to 75%. After booting, it stopped charging and began to discharge to 75%.
We found a known issue that "If the battery extender mode is disabled, and charge limit is set below 100%, the charge limit will not be enforced causing the battery to charge to 100%."
You could try to enable battery extender first, then see whether the charge limit works normally or not.
We found a known issue that "If the battery extender mode is disabled, and charge limit is set below 100%, the charge limit will not be enforced causing the battery to charge to 100%."
The issue is reproducible both with and without the battery extender mode enabled.
Reacted by Tim Wenger, conradsnicta, Ilesh Thiada, Michael Robbins, Xavier Vello, twoprops, CD, fmendezp, akrocynova, SimonSays01 and 1 more
Hi,
I don’t have a FW13 AMD, but I do have a FW16.
I have not observed the battery problem. I limit mine to 70% and it stays at 70%. I disable the battery safe feature because I don’t need it. If you power off and unplug the laptop every night, it never will trigger the battery save feature.
But, my understanding is that battery charge/control is done by the EC (embedded controller) which is 100% open source. So, if people are seeing battery charge problems, they could look at the source code and suggest fixes. I have made changes to the EC code that fix some bugs in the EC, but none of those are charge related.
Algorithmically, the battery needs some input parameters:
Fixed set by user in the BIOS:
global charge limit
battery save enable/disabled
battery save trigger setting.
Measured values:
4) battery current charge level
5) EC uptime.
State that must survive a power off of the EC / laptop
6) state of hysteresis cycle.
1-charging to the limit, and switch to state 2 when charge limit reached.
2-stay idle while AC plugged in, unless the charge has dropped below "limit -5", then switch to state 1
Note: There appears to be a bug in the current EC code, that causes state 2 to actually discharge, instead of stay idle.
The rules:
Say you have set the global limit to 80%.
That is fine until the uptime triggers the battery save. It then is looking to use the 98%, then less over time.
That set of rules is odd and suspect in my opinion, but is consistent with what problems people are reporting. I would have chosen a different set of rules.
My suggested work around is therefore to never trigger the battery save function or set the global limit to 100%. Then reset the EC so the uptime is reset to zero and not triggering the battery save function.
To reset the EC:
power off the laptop, not suspend.
unplug the PSU for 2 minutes.
plug power back in.
power on laptop.
use ectool console to check the uptime has been reset.
Summary: unplugging the power for a few seconds does NOT reset the EC.
Hi Everyone,
We have reproduced this issue and have a fix that we will be releasing to stable before the end of march.
Reacted by Ilesh Thiada, Boris Fersing, Pascal Gauthier, Tim Wenger, conradsnicta, Nessotrin, Julien Elbaz, dimitris-personal, Daniel Hast, Dmitry Elsakov and 9 more
Reacted by Marco Giuliani, Martin Pärtel, Samy Lahfa and Michael Robbins
@timwenger Thanks for the feedback. Assuming you've disabled the battery extender in the BIOS, the battery limit should work correctly on your system with version 3.08. Just sharing below information. I'll close this issue tracker and follow up on the other open one regarding the related issue.
We have identified an issue in version 3.08: when the battery charge limit is set below 100% and the battery extender is enabled, the device incorrectly charges to 100% after AC power is disconnected for more than 30 minutes. We are prioritizing a resolution for this issue.
To use the battery limit function, disable the battery extender and then set your desired charge limit.
Just wanted to say that I'm having the same bug on BIOS 3.07! Frustrating to say the least, especially since I was instructed by FW support to upgrade BIOS version after receiving a faulty replacement part. When will 3.08 reach stable?
@timwenger Thanks for the feedback. Assuming you've disabled the battery extender in the BIOS, the battery limit should work correctly on your system with version 3.08. Just sharing below information. I'll close this issue tracker and follow up on the other open one regarding the related issue.
We have identified an issue in version 3.08: when the battery charge limit is set below 100% and the battery extender is enabled, the device incorrectly charges to 100% after AC power is disconnected for more than 30 minutes. We are prioritizing a resolution for this issue. To use the battery limit function, disable the battery extender and then set your desired charge limit.
@quinchou77 Yes, battery extender is disabled and the battery limit is working correctly on my system in 3.08. Thanks for also informing users of the outstanding 3.08 issue when the battery extender is also enabled.
Since the posts here are all about Windows, I want to note that I'm seeing this with Ubuntu as well. Since the 3.07 upgrade, the laptop charges to 100% despite the limit set to 80%.
This release modifies the battery charge limit functionality to add a 5% float range. [..] the battery will not start to charge until the battery has dropped 5% below the charge limit.
Yet, once the battery charge has reached the limit I have set in the bios, the charge alternates between charge and not charge every 30s - 1min.
I was able to notice this since my Fedora system plays a small sound notification each time the system charge or stop to charge. For now, I have disabled system sound as it is very annoying.
I post my issue here as the problem is directly related to this first issue, but if you prefer, I can open a new issue.
Don't hesitate to ping me if you need more information.
BIOS 3.09 beta for the Laptop13 with Ryzen 7040 processors is now available. This update resolves a bug affecting the battery charge limit, ensuring it works correctly whether a battery extender is enabled or disabled. #
With BIOS upgraded to 3.09 I don't have charge_control_{start,end}_threshold for /sys/class/power_supply/BAT1 anymore. And hence tlp is not able to function. This worked just fine before upgrading.
sudo tlp-stat -s -b
Password:
--- TLP 1.8.0 --------------------------------------------
+++ System Info
System = Framework A7 Laptop 13 (AMD Ryzen 7040Series)
BIOS = 03.09
OS Release = Gentoo Linux
Kernel = 6.14.6-gentoo #1 SMP PREEMPT_DYNAMIC Mon May 12 08:18:15 CEST 2025 x86_64
/proc/cmdline = BOOT_IMAGE=/vmlinuz-6.14.6-gentoo root=/dev/mapper/vg0-root ro rd.luks.allow-discards quiet splash
Init system = openrc
Boot mode = UEFI
Suspend mode = [s2idle]
+++ TLP Status
State = enabled
RDW state = enabled
Last run = 11:16:21, 21 sec(s) ago
Mode = AC
Power source = AC
+++ Battery Care
Plugin: generic
Supported features: none available
+++ Battery Status: BAT1
/sys/class/power_supply/BAT1/manufacturer = NVT
/sys/class/power_supply/BAT1/model_name = FRANGWA
/sys/class/power_supply/BAT1/cycle_count = 18
/sys/class/power_supply/BAT1/charge_full_design = 3915 [mAh]
/sys/class/power_supply/BAT1/charge_full = 4121 [mAh]
/sys/class/power_supply/BAT1/charge_now = 4119 [mAh]
/sys/class/power_supply/BAT1/current_now = 0 [mA]
/sys/class/power_supply/BAT1/status = Not charging
/sys/class/power_supply/BAT1/charge_control_start_threshold = (not available)
/sys/class/power_supply/BAT1/charge_control_end_threshold = (not available)
/sys/class/power_supply/BAT1/charge_behaviour = (not available)
Charge = 100.0 [%]
Capacity = 105.3 [%]
Since the posts here are all about Windows, I want to note that I'm seeing this with Ubuntu as well. Since the 3.07 upgrade, the laptop charges to 100% despite the limit set to 80%. [me on April 12]
I never got 3.08, but I upgraded to 3.09 yesterday, and now it's respecting the charge limit set in the BIOS again.
Activity
quinchou77 commentedon Mar 12, 2025
When you set the charge limit, do you disable the battery extender at the same time?
timwenger commentedon Mar 12, 2025
Here's what I did this morning - hopefully this answers your question:
quinchou77 commentedon Mar 13, 2025
We found a known issue that "If the battery extender mode is disabled, and charge limit is set below 100%, the charge limit will not be enforced causing the battery to charge to 100%."
You could try to enable battery extender first, then see whether the charge limit works normally or not.
Stebalien commentedon Mar 13, 2025
The issue is reproducible both with and without the battery extender mode enabled.
conradsnicta commentedon Mar 14, 2025
@quinchou77 @kiram9 @JohnAZoidberg There are many confirmed reports of the broken charge limit at the Ryzen BIOS 3.07 BETA announcement thread:
https://community.frame.work/t/framework-laptop-13-ryzen-7040-bios-3-07-release-beta/65582
sgilder1 commentedon Mar 14, 2025
And Framework have shipped 3.07 as stable, even with this known regression....
jcdutton commentedon Mar 14, 2025
Hi,
I don’t have a FW13 AMD, but I do have a FW16.
I have not observed the battery problem. I limit mine to 70% and it stays at 70%. I disable the battery safe feature because I don’t need it. If you power off and unplug the laptop every night, it never will trigger the battery save feature.
But, my understanding is that battery charge/control is done by the EC (embedded controller) which is 100% open source. So, if people are seeing battery charge problems, they could look at the source code and suggest fixes. I have made changes to the EC code that fix some bugs in the EC, but none of those are charge related.
Algorithmically, the battery needs some input parameters:
Fixed set by user in the BIOS:
Measured values:
4) battery current charge level
5) EC uptime.
State that must survive a power off of the EC / laptop
6) state of hysteresis cycle.
1-charging to the limit, and switch to state 2 when charge limit reached.
2-stay idle while AC plugged in, unless the charge has dropped below "limit -5", then switch to state 1
Note: There appears to be a bug in the current EC code, that causes state 2 to actually discharge, instead of stay idle.
The rules:
Say you have set the global limit to 80%.
That is fine until the uptime triggers the battery save. It then is looking to use the 98%, then less over time.
That set of rules is odd and suspect in my opinion, but is consistent with what problems people are reporting. I would have chosen a different set of rules.
My suggested work around is therefore to never trigger the battery save function or set the global limit to 100%. Then reset the EC so the uptime is reset to zero and not triggering the battery save function.
To reset the EC:
Summary: unplugging the power for a few seconds does NOT reset the EC.
kiram9 commentedon Mar 15, 2025
Hi Everyone,
We have reproduced this issue and have a fix that we will be releasing to stable before the end of march.
jcdutton commentedon Mar 15, 2025
@kiram9
If the fix is a change to the EC. Please point me to the git commit so I can have a look.
mercertom commentedon Mar 27, 2025
Is this still happening? March is almost up.
quinchou77 commentedon Mar 31, 2025
@mercertom 3.08 beta has been posted to forum https://community.frame.work/t/framework-laptop-13-ryzen-7040-bios-3-08-release-beta/66858
8 remaining items
quinchou77 commentedon Apr 9, 2025
@timwenger Thanks for the feedback. Assuming you've disabled the battery extender in the BIOS, the battery limit should work correctly on your system with version 3.08. Just sharing below information. I'll close this issue tracker and follow up on the other open one regarding the related issue.
We have identified an issue in version 3.08: when the battery charge limit is set below 100% and the battery extender is enabled, the device incorrectly charges to 100% after AC power is disconnected for more than 30 minutes. We are prioritizing a resolution for this issue.
To use the battery limit function, disable the battery extender and then set your desired charge limit.
kenneth-ge commentedon Apr 9, 2025
Just wanted to say that I'm having the same bug on BIOS 3.07! Frustrating to say the least, especially since I was instructed by FW support to upgrade BIOS version after receiving a faulty replacement part. When will 3.08 reach stable?
timwenger commentedon Apr 9, 2025
@quinchou77 Yes, battery extender is disabled and the battery limit is working correctly on my system in 3.08. Thanks for also informing users of the outstanding 3.08 issue when the battery extender is also enabled.
balpha commentedon Apr 12, 2025
Since the posts here are all about Windows, I want to note that I'm seeing this with Ubuntu as well. Since the 3.07 upgrade, the laptop charges to 100% despite the limit set to 80%.
Will try if 3.08 fixes that once it's available.
Thanks for being transparent!
Olybo commentedon Apr 23, 2025
Hello,
I have updated from 3.07 to 3.08.
With battery extender disabled, the battery limit is working correctly.
However, here it is indicated :
Yet, once the battery charge has reached the limit I have set in the bios, the charge alternates between charge and not charge every 30s - 1min.
I was able to notice this since my Fedora system plays a small sound notification each time the system charge or stop to charge. For now, I have disabled system sound as it is very annoying.
I post my issue here as the problem is directly related to this first issue, but if you prefer, I can open a new issue.
Don't hesitate to ping me if you need more information.
Thanks in advance,
jcdutton commentedon Apr 23, 2025
I have seen the mini-cycle behavior on my FW16.
There are a number of edge cases, here are a few:
These are all fixable by fixing bugs in the EC source code.
quinchou77 commentedon May 7, 2025
BIOS 3.09 beta for the Laptop13 with Ryzen 7040 processors is now available. This update resolves a bug affecting the battery charge limit, ensuring it works correctly whether a battery extender is enabled or disabled. #
sdlarsen commentedon May 15, 2025
With BIOS upgraded to 3.09 I don't have charge_control_{start,end}_threshold for /sys/class/power_supply/BAT1 anymore. And hence tlp is not able to function. This worked just fine before upgrading.
t-8ch commentedon May 15, 2025
I guess it is FrameworkComputer/EmbeddedController@1d7bcf1 interacting badly with https://github.com/torvalds/linux/blob/v6.14/drivers/mfd/cros_ec_dev.c#L263
balpha commentedon May 17, 2025
I never got 3.08, but I upgraded to 3.09 yesterday, and now it's respecting the charge limit set in the BIOS again.
Thanks for the fix!
johansmitsnl commentedon May 17, 2025
How do you get the 3.09 because fwupdate gives me still 3.08 when i updated to the beta.
balpha commentedon May 17, 2025
I got the notification that it's ready to install a day or two ago. Maybe it's a staggered rollout?
sdlarsen commentedon May 17, 2025
@johansmitsnl You may need to do a
fwupdmgr refreshto get the latest versionquinchou77 commentedon Jul 11, 2025
3.09 is in stable and it fixes the issue. Closed.