Hello there, I want to change some battery settings using software TLP-Utility. For changing the charge-thersholds they differentiate between EC-Firmware V2 and V3 (Battery Care Vendor Specifics — TLP 1.8.0 documentation). Now I looked around a little bit about the Firmware but I´m not quite confident enough building it myself and flashing it. So I wonder how to find out which version is installed right now?
@dumdidu
That is actually a bit of a difficult question to answer.
The EC has many different API calls.
E.g. to read the smart battery, to get the temperature sensors etc.
Each API call has a “version” parameter.
The EC then can handle multiple different versions by looking at the “version” parameter in the API call.
My suggestion, is just to try the tool set at V3, and if it does not work, try V2.
I have not used TLP, but it looks to me that it is expecting the following to be present:
tlp-stat -b
…
/sys/class/power_supply/BAT1/charge_control_end_threshold
If you don’t have that file, it might not work.
You can also use a tool called “ectool” to set the battery thresholds.
Although I have experience writing EC firmware, none of what you need should require new EC firmware.