Thinkpad X220

These are a bunch of useful programs if you own a thinkpad X220.
This guide is done in collaboration with rvbg.eu.

Install Gfx drivers

yay -S xf86-video-intel

Fan controlling

systemctl enable thinkfan.service - enable the thinkfan service

Change brightness via keyboard

Activate battery options

START_CHARGE_THRESH_BAT0=80
STOP_CHARGE_THRESH_BAT0=90

The battery will start charging at 80 percent and stop charging at 90.

Setup Thinkpad Dock

Scripts to change configuration at docking/undocking