⚠️ Note:This will install packages from
bionic
repositories. E.g.: Linux Mint 19, Ubuntu 18.04.For
xenial
, check out thexenial
branch.
⚠️ Note: Brightness scripts are implemented onlightdm
. It won't work ongdm
.I haven't worked with Ubuntu 18.04/gdm (yet) because I consider it broken for now.
ℹ️ Note: Extra packages have been moved to a different repository:
This playbook was made for and tested on my Lenovo ThinkPad X1 Yoga (2nd gen) JD series with UHD OLED panel.
Basically for when I was switching between different distros, but it crystallized into a playbook for Linux Mint 18.3 codename sylvia
. Some others wanted to use it, so I put it here.
There's really not a lot of fine-tuning, so you best download this repo and remove all the things you don't want:
git clone https://github.com/Redsandro/thinkpad-x1-yoga.git /tmp/thinkpad-x1-yoga
Most importantly, this contains a workaround for OLED Brightness Control through the Fn Keys.
- Change brightness through Fn Keys
- Set default Brightness
- Install
tlp
Advanced Power Management - Install Official packages (Skip with
--skip-tags packages
) - Install Extra packages (Skip with
--skip-tags extras
)
Get the latest ansible
:
sudo apt-add-repository ppa:ansible/ansible
sudo apt update && sudo apt install ansible
sudo env ANSIBLE_NOCOWS=1 ansible-playbook x1yoga.yml --skip-tags="packages,extras"
sudo env ANSIBLE_NOCOWS=1 ansible-playbook x1yoga.yml --skip-tags packages
Or simply for updating your configuration.
sudo env ANSIBLE_NOCOWS=1 ansible-playbook x1yoga.yml --tags tlp
sudo env ANSIBLE_NOCOWS=1 ansible-playbook x1yoga.yml --tags grub
sudo env ANSIBLE_NOCOWS=1 ansible-playbook x1yoga.yml --tags firefox
The tlp
power management is configured to keep the battery below fully charged to improve battery life. So before you get on an airplane, it makes sense to fully charge the battery once:
sudo tlp fullcharge
For more power management options, see the tlp
manual.
Use at your own risk. For advanced users only. Inspect the source before using. Worst case scenario: If something is conflicting or incompatible with your environment, your display manager might fail. You might have to log into textmode and undo related things.
Please if you have some ThinkPad X1 Yoga specific tweaks to make this laptop work better and last longer, contribute those tasks.
Ƀ 1Dj21fUCtt3RXBWuoJ2TpzAyNmh2BU5YSL