I know that I can reboot and change the battery max charge level in the BIOS menu, but would there be a way to do it (on Linux) without rebooting?
Typical use case would be, I am working on a project with many terminal tabs open, etc (I really do not want to reboot), but then I decide to prepare to work outside for a while in the afternoon, and so I realize that I now want a full charge instead of the normal 60%.
To answer to myself, yes it works without restarting any service!
The only detail to be aware of:
there seems to be a minimum difference between the target charge and the current charge, to trigger charging.
For example, if I am at 21% charge, and if I set the charge limit to 25%, it will still be discharging. But if I set the charge limit to 30%, it will start charging.
The ectool commands are a bit confusing. chargecurrentlimit limits the charging current. So you reduced the current to at most 100 mA but the battery was not charged, because the maximum charge level remained at 60%. To encrease it to 100% the correct command would have been
Which version are you using?
I used the EmbeddedController Github repo, in the hx20 branch, latest commit.
Compiled ectool with make utils.
Should I try the hx30 branch instead?
Hello. Would you know if there is a way of doing the same in Windows? Happy to start a new thread in the correct section if that’s more appropriate. Thanks
Okay but now, following this thread without reading it fully first, I used the ectool chargecurrentlimit and now I don’t know how to reset its default value anyone knows about this? because I don’t know if there is a safe default value. I fear setting a very high limit (so, current is not really limited) and damaging the battery for getting too fast charging or something like that…
You can simply set to 9999 and the battery itself will control the safe current
You can ectool battery and the Desired current is the value controlled by the battery
If you ectool fwchargelimit to change the charge percentage cap, after shutting down the limit is set back to the BIOS value. The same goes for LED lighting, fanduty, etc. ectool is only on userspace