Nachshon Korem Asked: 2019-12-21 16:35:52 +0800 CST2019-12-21 16:35:52 +0800 CST 2019-12-21 16:35:52 +0800 CST How can I set charge levels on ThinkBook 772 I want to set charge levels on my laptop - lenovo thinkbook 14s with Ubuntu 19.10. I tried installing tcp but it seems as it works only on thinkpads. I also tried tp smapi same results. Happy holidays! lenovo battery charging 19.10 2 Answers Voted Tejas Lotlikar 2019-12-21T22:34:29+08:002019-12-21T22:34:29+08:00 You will have to install and load the tp_smapi kernel module: Install the tp-smapi-dkms module using sudo apt-get install tp-smapi-dkms Now, load the tp-smapi module in the kernel using sudo modprobe tp_smapi and set the thresholds to virtual files in /sys/devices/platform/smapi echo 35| sudo tee /sys/devices/platform/smapi/BAT0/start_charge_thresh echo 75| sudo tee /sys/devices/platform/smapi/BAT0/stop_charge_thresh This setting will make sure that it will stop charging once it reached 75% and only start charging when it drops below 35%. Nachshon Korem 2019-12-24T19:09:08+08:002019-12-24T19:09:08+08:00 dpkg -l tp-s* output : ii tp-smapi-dkms 0.43-1 all ThinkPad hardware/firmware access modules source - dkms version activate sudo modprobe tp_smapi output : modprobe: ERROR: could not insert 'tp_smapi': No such device I think tp_smapi only works on thinkpads and not thinkbook I think it is
You will have to install and load the
tp_smapi
kernel module: Install thetp-smapi-dkms
module usingNow, load the
tp-smapi
module in the kernel usingand set the thresholds to virtual files in
/sys/devices/platform/smapi
This setting will make sure that it will stop charging once it reached 75% and only start charging when it drops below 35%.
output :
activate
output :
I think
tp_smapi
only works on thinkpads and not thinkbook I think it is