From c88a9d34194accf40da430349250136135dcb7ee Mon Sep 17 00:00:00 2001 From: TiynGER Date: Wed, 8 Apr 2020 17:32:58 +0200 Subject: [PATCH] x220 guide and new structure --- calendar.md => applications/calendar.md | 0 contacts.md => applications/contacts.md | 0 mail.md => applications/mail.md | 0 .../tablecalculation.md | 0 devices/thinkpad_x220.md | 64 +++++++++++++++++++ thinkpad.md | 26 -------- 6 files changed, 64 insertions(+), 26 deletions(-) rename calendar.md => applications/calendar.md (100%) rename contacts.md => applications/contacts.md (100%) rename mail.md => applications/mail.md (100%) rename tablecalculation.md => applications/tablecalculation.md (100%) create mode 100644 devices/thinkpad_x220.md delete mode 100644 thinkpad.md diff --git a/calendar.md b/applications/calendar.md similarity index 100% rename from calendar.md rename to applications/calendar.md diff --git a/contacts.md b/applications/contacts.md similarity index 100% rename from contacts.md rename to applications/contacts.md diff --git a/mail.md b/applications/mail.md similarity index 100% rename from mail.md rename to applications/mail.md diff --git a/tablecalculation.md b/applications/tablecalculation.md similarity index 100% rename from tablecalculation.md rename to applications/tablecalculation.md diff --git a/devices/thinkpad_x220.md b/devices/thinkpad_x220.md new file mode 100644 index 0000000..5914140 --- /dev/null +++ b/devices/thinkpad_x220.md @@ -0,0 +1,64 @@ +# Thinkpad X220 + +These are a bunch of useful programs if you own a thinkpad X220. +This guide is done in collaboration with [rvbg.eu](https://wiki.rvbg.eu). + +## Install Gfx drivers + +`yay -S xf86-video-intel` + +## Fan controlling + +- ` yay -S lm_sensors thinkfan` - Install the needed utilities + +- `sudo modprobe thinkpad_acpi` - After that load the kernel module thinkpad_acpi + +- `sudo cp /usr/share/doc/thinkfan/examples/thinkfan.conf.simple /etc/thinkfan.conf` - Copy and configure the config file + +- `systemctl start thinkfan` - Start the thinkfan service + +- `sudo thinkfan -n` - Check the output + +`systemctl enable thinkfan.service` - enable the thinkfan service + +## Change brightness via keyboard + +- `sudo vim /boot/loader/entries/arch.conf` - Open the bootloader configuration +- Go to the `options` line. +Append the following. +``` +acpi_osi="!Windows 2012" +``` +- `shutdown -r now` - Reboot the system + +## Activate battery options + +- `yay -S tlp` - Install the service +- `yay -S acpi_call` - Enables battery charging stop at given capacity +- `sudo vim /etc/tlp.conf` - Open the battery options +- Change the following lines +``` +START_CHARGE_THRESH_BAT0=80 +STOP_CHARGE_THRESH_BAT0=90 +``` + +The battery will start charging at 80 percent and stop charging at 90. +- `sudo tlp start` - Start service and save changed options +- `sudo systemctl enable tlp.service` - Enable the service + +## Setup Thinkpad Dock + +- `yay -S dockd` - Install the docking service +- `yay -S xrandr arandr` - Instll multimonitor tools +- Dock the system +- `arandr` - Setup the monitor configuration +- `dockd --config docked` - Save the changes (has to maybe be stopped by `CTRL + C`) +- Undock the system +- `arandr` - Setup the monitor configuration +- `dockd --config undocked` - Save the changes (has to maybe be stopped by `CTRL + C`) +- `systemctl enable acpid` - Activate ACPI listener +- `systemctl start acpid` - Start ACPI listener + +Scripts to change configuration at docking/undocking +- For the docked configuration use `vim /etc/dockd/dock.hook` +- For the undocked configuration use `vim /etc/dockd/undock.hook` diff --git a/thinkpad.md b/thinkpad.md deleted file mode 100644 index e1f6a9b..0000000 --- a/thinkpad.md +++ /dev/null @@ -1,26 +0,0 @@ -# Thinkpad -These are a bunch of useful programs if you own a thinkpad. - -| program | description | -| ---------- | ------------------------------------------------ | -| lm_sensors | utility for hardware monitoring and SMBus access | -| thinkfan | utility to control fanspeeds | - -## installation -After installing both lm_sensors and thinkfan activate thinkpad_acpi. - -```sudo modprobe thinkpad_acpi``` - -Then copy and configure the config file. - -```sudo cp /usr/share/doc/thinkfan/examples/thinkfan.conf.simple /etc/thinkfan.conf``` - -Enable it. - -```systemctl enable thinkfan``` - -After that check and if correct enable the thinkfan service. - -```sudo thinkfan -n``` - -```systemctl enable thinkfan.service```