Ubuntu – set threshold for battery

sudo tlp start

udo tlp-stat -s -c -b

To change trashold

sudo vi /sys/class/power_supply/BAT0/charge_stop_threshold