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