Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rikvanderkemp/561448440cd0986cb252d5e45e1c8aae to your computer and use it in GitHub Desktop.
Save rikvanderkemp/561448440cd0986cb252d5e45e1c8aae to your computer and use it in GitHub Desktop.
Setting up the Lenovo Thinkpad X1 Carbon Extreme (gen2) for usage with Linux
These are my findings of helpful changes to make to Linux (I use Manjaro) to get the most out of this laptop,
# Kernel Modules
install acpi_call:
```
sudo pacman -S linux54-acpi_call
```
Where `linux54` is your current kernel version.
Make sure the proper modules are enabled:
```
$ sudo vim /etc/mkinitcpio.conf
# change MODULES="" to:
MODULES=(battery acpi_call)
```
# ACPI_OSI
I've found enableing this to be helping in power management:
http://iam.tj/prototype/enhancements/acpi_osi.sh
It's easy to enable by using `grub-customizer`
```
$ sudo pacman -S grub-customizer
```
Start it and edit your first menu item. You will see a line similar to this:
```
linux /boot/vmlinuz-5.4-x86_64
```
Make sure to add `acpi_osi=! "acpi_osi=Windows 2015"`
Your line will now look like this (mind the space bewtween settings):
```
linux /boot/vmlinuz-5.4-x86_64 root=UID_CODE_HERE rw quiet cryptdevice=IF_YOU_HAVE_CRYPT root=/dev/mapper/luks-406 acpi_osi=! "acpi_osi=Windows 2015"
```
# TLP and power management
I have disabled cpupower and use `tlp-gui` to set power management.
```
$ sudo systemctl disable cpupower
$ sudo pacman -S tlp tlpui
```
Set the processor to the following:
```
CPU_SCALING_GOVERNOR_ON_AC = ondemand
CPU_SCALING_GOVERNOR_ON_BAT = ondemand
```
Set the Thinkpad battery to:
```
START_CHARGE_THRESH_BAT0 = 85
STOP_CHARGE_THRESH_BAT0 = 90
```
See https://support.lenovo.com/nl/en/solutions/ht078208 for possible best practices.
# Powertop
Install powertop for some tuning:
```
$ sudo pacman -S powertop
``
run powertop as root and navigate to tunables and make sure `bad` is `good` by selecting and pressing enter.
Go to wakeup and disable wake-on-lan`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment