These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.0 KiB

  1. # Thinkpad X220
  2. These are a bunch of useful programs if you own a thinkpad X220.
  3. This guide is done in collaboration with [rvbg.eu](https://wiki.rvbg.eu).
  4. ## Install Gfx drivers
  5. `yay -S xf86-video-intel`
  6. ## Fan controlling
  7. - ` yay -S lm_sensors thinkfan` - Install the needed utilities
  8. - `sudo modprobe thinkpad_acpi` - After that load the kernel module thinkpad_acpi
  9. - `sudo cp /usr/share/doc/thinkfan/examples/thinkfan.conf.simple /etc/thinkfan.conf` - Copy and configure the config file
  10. - `systemctl start thinkfan` - Start the thinkfan service
  11. - `sudo thinkfan -n` - Check the output
  12. `systemctl enable thinkfan.service` - enable the thinkfan service
  13. ## Change brightness via keyboard
  14. - `sudo vim /boot/loader/entries/arch.conf` - Open the bootloader configuration
  15. - Go to the `options` line.
  16. Append the following.
  17. ```
  18. acpi_osi="!Windows 2012"
  19. ```
  20. - `shutdown -r now` - Reboot the system
  21. ## Activate battery options
  22. - `yay -S tlp` - Install the service
  23. - `yay -S acpi_call` - Enables battery charging stop at given capacity
  24. - `sudo vim /etc/tlp.conf` - Open the battery options
  25. - Change the following lines
  26. ```
  27. START_CHARGE_THRESH_BAT0=80
  28. STOP_CHARGE_THRESH_BAT0=90
  29. ```
  30. The battery will start charging at 80 percent and stop charging at 90.
  31. - `sudo tlp start` - Start service and save changed options
  32. - `sudo systemctl enable tlp.service` - Enable the service
  33. ## Setup Thinkpad Dock
  34. - `yay -S dockd` - Install the docking service
  35. - `yay -S xrandr arandr` - Instll multimonitor tools
  36. - Dock the system
  37. - `arandr` - Setup the monitor configuration
  38. - `dockd --config docked` - Save the changes (has to maybe be stopped by `CTRL + C`)
  39. - Undock the system
  40. - `arandr` - Setup the monitor configuration
  41. - `dockd --config undocked` - Save the changes (has to maybe be stopped by `CTRL + C`)
  42. - `systemctl enable acpid` - Activate ACPI listener
  43. - `systemctl start acpid` - Start ACPI listener
  44. Scripts to change configuration at docking/undocking
  45. - For the docked configuration use `vim /etc/dockd/dock.hook`
  46. - For the undocked configuration use `vim /etc/dockd/undock.hook`