Showing results for 
Search instead for 
Did you mean: 
Fanfold Paper
Posts: 4
Registered: ‎03-31-2019
Location: AT
Views: 1,917
Message 1 of 3

Thinkpad X1 Yoga and Ubuntu 19.04 - a tale of woe

Hello, this posting is primarily for documentation purpose in the hope, it may help others on their quest for having a working - at least usable - Linux installation on the X1 Yoga.


First of all, let me say, if you're planning to buy a X1 Yoga and to run Linux on it, i strongly disadvise. Buy another laptop.

It's Ubuntu certified and you find it on the list of Lenovo systems supporting Linux here but obviously that doesn't mean your laptop has to go to sleep, has a working thermal management or the same performance as with windows. Thanks for the certification!


This is a summary of the steps I had to perform, to get a usable system. You won't get any new information you cant't find anywhere else, I didn't find anything of out myself, so the kudos go to all the people sharing their knowledge on the web.


No working S3


The newest X1 don't support S3 sleep state but some Windows Modern Standy stuff, so with Ubuntu sleep doesn't work. Ironically Lenovo released a BIOS update for the X1 Carbon which makes S3 available but they have not (yet?) provided that option in the Yoga's BIOS.



  • Ensure that Boot Mode is set to Quick and not Diagnostic
  • Set Thunderbolt BIOS Assist Mode to Enabled (via Config → Thunderbolt 3).
  • Disable Secure Boot.


curl -O
chmod +x

edit /etc/grub.d/10_linux and change all occurences of initrd  ${rel_dirname}/${initrd} to initrd  /boot/acpi_override ${rel_dirname}/${initrd}


Add mem_sleep_default=deep to GRUB_CMDLINE_LINUX_DEFAULT boot options in /etc/default/grub.



After that S3 should work which leads directly to the next problem:



Touchscreen not working after suspend


My Touchscreen didn't work after waking up from suspend. I found this workaround in the forums, which sends the Yoga for 1 second to S2idle state after waking up, which for whatever reason renables the touchscreen.


Create a file /etc/systemd/system/wake_wacom_hack.service with the following lines:


Description= s2idle fo 1 second after resume

ExecStart=/usr/sbin/rtcwake -m freeze -s 1


and enable the service with



systemctl enable wake_wacom_hack.service

This is not totally reliable, but most times it makes the touchscreen work again and if not, I just have to suspend and wake it up again.




At this point you might think, you've got a working system and might be impressed, by how silent it runs, until you recognize, that the colling is totally broken and the fan just never spins up and the cpu is cooled by throtteling.


Fan not spinning up


At some point in time Lenovo broke the cooling under Linux and the fan just doesn't spin up. To fix this you have to install the thinkfan package.


apt install thinkfan

Edit /etc/thinkfan.conf. Mine looks like this:



hwmon /sys/devices/virtual/thermal/thermal_zone0/temp
(0, 0, 55)
(1, 48, 60)
(2, 50, 61)
(3, 52, 63)
(4, 56, 65)
(5, 59, 66)
(7, 63, 32767)

Finally enable fan control from within the OS



echo "options thinkpad_acpi fan_control=1" > /etc/modprobe.d/thinkfan.conf
systemctl enable thinkfan.service


Now, for the first time, the X1 Yoga is really usable. But after researching that much you surely have already read about the throttling issues: It seems, that under Linux the CPU throttles at lower temperatures als under Windows. I wasn't sure about that problem, since I somewhere read someone claiming, that it's more a Windows problem as the temperature there is too high. Until I found this in Lenovo's README for the BIOS V1.29:

(Fix) Fixed an issue where thermal throttling started to happen at 85C degree.

So, let's go on


CPU Throttling issue


apt install git build-essential python3-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev python3-venv python3-wheel python3-pip
pip3 install --upgrade pip
git clone
cd lenovo-throttling-fix/

systemctl stop thermald.service
systemctl disable thermald.service
systemctl mask thermald.service

All after all that's it for now. My Yoga is now running fine. You might run in other issues I've not experienced like not working like non-working touchpad and trackpoint.


After that experience I'm really wondering, what kind of QA is going on at Lenovo. That's not some kind of cheapo laptop and they keep breaking things with BIOS updates.

At this stage other quirks like no Linux support for the mobile device, Lenovo Vantage reporting wrong BIOS versions, autorotate in Windows sporadically not working, loosing the mapping for the stylus buttons from time to time, not waking up on power button presses (especially annoying in tablet mode) and so on just seem like minor annoyances.


Once again thanks to all the people out there doing Lenovo's work and fixing the Yoga X1.

Paper Tape
Posts: 2
Registered: ‎06-14-2018
Location: US
Views: 1,354
Message 2 of 3

Re: Thinkpad X1 Yoga and Ubuntu 19.04 - a tale of woe

Firstly, thank you so much for the effort you put into making this post. :-)


I just upgraded my new X1 Yoga 3rd Gen from Windows 10 to Ubuntu 19.04, and your input was key in making it go smoothly!!!


That said, I have one tweak to recommend.  In the "No working S3" section, /boot/acpi_override wasn't found on my first boot.  I live edited it out at the grub prompt on the next boot, then tweaked the entry in /etc/grub.d/10_linux.


Instead of:

  initrd /boot/acpi_override ${rel_dirname}/${initrd}


I used:

  initrd ${rel_dirname}/acpi_override ${rel_dirname}/${initrd}


which worked perfectly.  I expect /boot/acpi_override works fine if you don't have a separate /boot partition, FWIW...


Thanks again!


Cheers, -Brian



Fanfold Paper
Posts: 4
Registered: ‎03-31-2019
Location: AT
Views: 1,119
Message 3 of 3

Re: Thinkpad X1 Yoga and Ubuntu 19.04 - a tale of woe

It seems, that Lenovo released a BIOS update with a possible fix for at least the S3 issue, but for some reason the pulled it out.



Check out current deals!

Shop current deals

Top Kudoed Authors