Skip to content

Instantly share code, notes, and snippets.

@tatumroaquin
Created March 6, 2022 02:05
Show Gist options
  • Save tatumroaquin/ceebff4b32d410dbc2a3e2708745d7f5 to your computer and use it in GitHub Desktop.
Save tatumroaquin/ceebff4b32d410dbc2a3e2708745d7f5 to your computer and use it in GitHub Desktop.
Control Charging Thresholds for Thinkpad T470

TP T470 Charging Threshold

Method 1 - COMM Package

install necessary packages

sudo pacman -S tpacpi-bat

modify config file

sudo nvim /etc/conf.d/tpacpi

# modify the values of start and stop threshold a number between 1-99
BATTERY="0"
START_THRESHOLD="40"
STOP_THRESHOLD="80"

enable the service

sudo systemctl enable tpacpi-bat

Method 2 - AUR Package

install necessary packages

sudo yay -S tp-battery-mode

modify config file

sudo nvim /etc/tp-battery-mode.conf

# modify the following values to your liking
START_THRESHOLD=85
STOP_THRESHOLD=90

enable the service

sudo systemctl start tp-battery-mode

sources:

https://www.thinkwiki.org/wiki/Tpacpi-bat https://github.com/teleshoes/tpacpi-bat https://wiki.archlinux.org/title/Tp-battery-mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment