I have a FW16 and would like to set the maximum battery charge level from OS instead of reboot/bios config. I found this thread from 2022 on FW13 and tried to apply but without success: https://community.frame.work/t/solved-changing-the-maximum-battery-charge-without-rebooting/25555. That link points to a github repo that appears to be for chromeos. I was able to do make utils
and use the ectools binary it generates but got this output:
$ sudo ./ectool fwchangelimit 80
Missing Chromium EC memory map.
Cannot find I2C adapter
Unable to establish host communication
Couldn't find EC
Ideally this sort of support ends up in standard distro kernel/tools (perhaps it already has?) Any suggestions?
EDIT: Sorry, ignore everything below. The problem is that the thread you linked is about FW13 Intel, whereas FW16 only exists (for now) with AMD, which uses a different version of ectool
.
###############
Former answer:
Hi, you should try to use this repo: GitHub - DHowett/framework-ec: Embedded Controller firmware for the Framework Laptop
Is it the one you tried?
Also (but this is not the cause of the error you encountered), the correct command is not exactly the one you type, but this one:
sudo ./ectool fwchargelimit 80
Ah that makes sense! For the record, that is the repo i tried, I should have mentioned that in my post. Hopefully there is an update somewhere for FW16?
Sorry that I am not an expert on the question (as I only own a FW13), but it looks like some people in this thread are using ectool
on FW16: Exploring the Embedded Controller