Unable to update battery charge start threshold on Librem 14

I just received my new librem 14 and I am having a problem with battery not being charged. I see my charge_control_start_threshold is set to 57. I tried changing it to 90 as per instructions I found in other threads. But the value is not getting changed. Any ideas on why I am not able to change the value?
Btw I have updated my system with sudo apt full-upgrade.

What exactly did you try?

sudo apt install librem-ec-acpi-dkms

echo 90 | sudo tee

echo 90 | sudo tee -a /sys/class/power_supply/BAT0/charge_control_start_threshold

Even tried to use β€˜vi’ to edit the file and save it. But the next time I open it it still has the old value. Like something was preventing that file from being overwritten.

I am trying to get my laptop to start charging. From what I read it won’t start charging until battery percentage drop down to that level.

maybe try wrapping the numbers in single quotes, e.g. β€˜90’?

just tried and for me this works: echo '95' | sudo tee -a /sys/class/power_supply/BAT0/charge_control_end_threshold

Tried that too

You need to make sure that start_threshold < end_threshold. Setting values not matching this requirement will not work. So you eventually first have to set the end_threshold to a higher value (like 95) before you can set the start_threshold.

Cheers
nicole

2 Likes

That makes so much sense now. Thanks.