baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

LENOVO Thinkpad t440s, t450s battery power charging settings, remap trackpad (mouse) buttons

#!/bin/bash

# remap middle to left trackpad button
xinput list
xinput set-button-map 10 1 1 3

# BATTERY SETTINGS:
cd tpacpi-bat/
sudo ./tpacpi-bat -s ST 1 95 # load internal battery when below 15%
sudo ./tpacpi-bat -s SP 1 99 # stop charging at 95%
sudo ./tpacpi-bat -s IC 1 99 # stop charging at 95%
sudo ./tpacpi-bat -s ST 2 85 # when is external battery loaded?
sudo ./tpacpi-bat -s SP 2 99 #99 # when is external battery loaded?
sudo ./tpacpi-bat -s IC 2 99 # when is external battery loaded?
tlp-stat --battery
cd ..

Comments are currently closed.