Skip to content
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

Charge Limit not preserved after reboot #25

Open
stefanhoelzl opened this issue Feb 3, 2024 · 4 comments
Open

Charge Limit not preserved after reboot #25

stefanhoelzl opened this issue Feb 3, 2024 · 4 comments

Comments

@stefanhoelzl
Copy link

When using framework_tool to set a charge limit it is not preserved after reboot.
After rebooting the charge limit is always 100%.

I am running it on a Framework 13 AMD and Fedora 39 Silverblue with these kernel patches

@DeflateAwning
Copy link
Contributor

As a temporary workaround until an option to save the configuration is added, I added the following to my /etc/rc.local file:

cat /etc/rc.local
#!/bin/sh -e

# By default this script does nothing.

# Set the Framework charge limit to 90%
/usr/local/bin/framework_tool --charge-limit 90

exit 0

This works on Linux Mint, at least.

@JohnAZoidberg
Copy link
Member

I debugged this and the reason is that the BIOS overwrites your setting on every boot.
You can go into the BIOS settings to make it persistent.

We're investigating how to best fix this.

@xamindar
Copy link

It needs to write its update to the bios value. Any other route is just a workaround to this bug.

@leiserfg
Copy link

leiserfg commented May 7, 2024

I feel it's a https://xkcd.com/1172/ case, cause I like that it sets the value only temporarily, so I can set the limit to 80% in the BIOS and upgrade it to 100% only when I'm in a long travel. So if changed, please make it so writing to BIOS is only optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants