Limit battery charging

I was trying to limit the battery charge end threshold using this link (for upower).

https://www.baeldung.com/linux/limit-battery-charge-level

It seems that adding limits to “/sys/class/power_supply/BAT0/charge_control_end_threshold“ does not help.

Maybe anyone succeeded in this?

On the classic Reform, charging is managed by the LPC. The LPC firmware does not yet have support for adjusting the maximum charge level.

You posted this in the Pocket Reform category, so I assume you have a Pocket. There, charging is managed by the MP2650 which claims it can regulate the battery charge voltage which is I guess what can be abused to implement a cut-off.

Here is the datasheet. I skimmed it but Ctrl+F didn’t allow me to quickly find which register to change to implement this: https://www.monolithicpower.com/en/documentview/productdocument/index/version/2/document_type/Datasheet/lang/en/sku/MP2650GV/document_id/9664/