#!/bin/bash

# thinkpad
echo 95 > /sys/class/power_supply/BAT0/charge_stop_threshold ; echo 90 > /sys/class/power_supply/BAT0/charge_start_threshold
/usr/sbin/tlp  setcharge 90 95

# Dell
# https://www.dell.com/community/en/conversations/linux-general/setting-the-battery-charge-level-within-linux/647f7222f4ccf8a8defc7422
# https://github.com/glynhudson/dell-charge-limit/issues/3
# from https://www.dell.com/support/article/en-uk/sln311302/dell-command-configure?lang=en
#/opt/dell/dcc/cctk --primarybatterycfg=Adaptive 
/opt/dell/dcc/cctk --primarybatterycfg=Express

