So your Lenovo X1 Yoga 3rd Gen has some problems with Linux (Fedora 28 Workstation in particular, though this might work elsewhere). The problems are as follows:
You can't get it to sleep and unsleep properly when the lid closes and
When it wakes up from this non-sleep, the trackpad behaves badly and is unusable.
Here's the two-step process I used (thanks to the investigative work of many others) to test and correct the problem.
While booting press 'e' to edit the kernel boot parameters. Then enter the following after the line that starts "linux16" (source):
Boot and test the modified kernel parameters
- Boot up.
- Log in.
- Close the laptop lid.
- Wait until you enter sleep.
- Open the lid.
- Test the mouse.
If it works―congrats! You should move to the next step to make the changes persist across boots!
I did this manually (per the below), but the guides (source) allow for a commandline entry. What I did is below:
sudo gedit /etc/sysconfig/grub
Find the line that starts with:
Then Insert the following before the final double-quote mark (") on the line:
Run the following command in the terminal to make permanent:
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
You should be good to go!
I've noticed only one remaining oddity―when I open my laptop from sleep the keyboard won't start working until I hit the "left ALT" key on the keyboard (weird, I know). Small concession. I'm very happy to have this working well!