Installing Fedora 24 on a ThinkPad X1 Yoga

From ThinkWiki
Jump to navigation Jump to search
NOTE!
This is based on the x86-64 workstation version of Fedora 24 with the default GNOME desktop. Your experience with a different edition may be different.
Help needed
Not all models of this ThinkPad are equal, you may have a different WiFi adapter or display, or some options I did not have. If you tested them, please add their status down below.

New in this release

New in this Fedora release, with regards to this model ThinkPad is the following;

  • Better support for Multi-monitor HiDPI, when using the Wayland option

Regressions;

  • Touch screen is flaky. Sometimes it works, sometimes it does not

Success Chart - Out of the box experience

ItemWorkingNotes
Installation Local CD/DVD installunknowndid not test
Network Installationunknowndid not test
USB Installationyesdid not test, but should required passing the boot parameter intel_pstate=disable
Display - Intel HD Graphics Laptop Screenyes
VGAunknownI do not have the VGA OneLink+ dongle
Displayportunknowndid not test
HDMIyes
Power Management Software Suspend (hibernate)unknown
Suspend to Memory (ACPI sleep)yes
Intel HD Audioyes
Web Camyes
WirelessWiFi - Intel 8260 ACyes
WiFi - Intel 18260 AC + WiGigunknown
Bluetooth 4.1yes
WWAN - Sierra Wireless EM7455unknown
WWAN - Huawei 4Gunknowndid not test, but is detected
Input Keyboardyes
TrackPointpartialYes, but does not get disabled in tablet mode!
TouchPadpartialYes, but does not get disabled in tablet mode!
Extra keysyessee ThinkPad Extra keys section below
Fingerprint readernodoes not work
Pen Pro (Wacom)yes
Touch screennosometimes it works, sometimes it does not
Automatic screen rotationnoWhile the capability seems to be detected, it does not actually rotate
Ambient light sensorno
Ports Intel Ethernetyesvia OneLink+ dongle
MicroSD readeryes
USByes
TPMunknowndid not test, but tpm kernel modules are being loaded
DockingyesOneLink+ dock works fine

Tested and Verified on Fedora 24

Information in this section has been tested and verified using Fedora 24.

BIOS

In the BIOS (F1 to enter during boot), be sure to disable secure boot.

Security > Secure Boot > Secure Boot = Disabled

Also, if your planning to run any kind of virtual machines, make sure you enable the CPU virtualization support.

Security > Virtualization > Intel (R) Virtualization Technology = Enabled

And while your in the BIOS setup you may also want to immediately change the default Function key behaviour. On this ThinkPad by default the function keys will not work as one would expect. When pressing F1 you do not get F1, but you get Mute. To get F1 you need to press Fn-F1 or you first need to enable the FnLk (Fn-ESC). To reverse this behaviour back to how to should be, change the setting in the BIOS.

Config > Keyboard/Mouse > F1-F12 as Primary Function = Enabled

Installation

By default, the installation will hang immediately after the bootloader with a black screen. It is necessary to edit the boot options and add "intel_pstate=disable" to the end of the line of options.

After this, installation is straight forward; you can follow the generic Fedora install instructions.

Configuration

Kernel

As root, edit /etc/default/grub and adding the option intel_pstate=disable which will prevent a hang at boot. After adding this, update the grub configs with the following (assuming default uEFI setup);

grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

There is a work around for this BIOS bug in the 4.6 kernel, if you have already installed a newer kernel this step is not needed.

X Server - Intel HD Graphics

Works out of the box.

If you have the HiDPI display option, it brings with it a whole lot of issues. Most of them are covered here; ArchLinux HiDPI.

Basically everything is quite large as it tries to scale everything 2x when a HiDPI display is detected. In fact a bit too large to my liking. On the archlinux website there are some hints and tips on how to scale things down a bit again, but it is really a hack and far from ideal. After experimenting with various options, I decided to use the default 2x scaling in Gnome, but change the zoom option in the webbrowser to scale everything a bit smaller since that is what I use most.

Also having a HiDPI primary display causes everything on external non-HiDPI displays to appear huge as they will receive the same scaling factor. This is a limitation of the X11 windowing system. The long term solution would be to switch to a Wayland desktop which is able to handle multiple displays with various DPI settings.

ThinkPad Extra keys

ThinkPad keys are handled by a mixture of the thinkpad_acpi, acpi button, acpi dock and acpi video drivers.

KeyFunctionHandled byEventWorksNotes
FnESCFnLkunknownyesLocks Fn key state
FnF1Muteyesyes
FnF2Volume -yesyes
FnF3Volume +yesyes
FnF4Mic Muteyesyes
FnF5brightness downyesyes
FnF6brightness upyesyes
FnF7presentation modeunknownyesCycles through External Only, mirror and dual display
FnF8Wireless KillyesyesNo OSD, but kills wireless
FnF9SettingsyesyesOpens Gnome settings panel
FnF10FindyesyesOpens Gnome find
FnF11?unknownunknownDoes not seem to do anything
FnF12?yesyesOpens Gnome Places
FnSpacekeyboard light-unknownyesno OSD.
PowerPower buttonacpi buttonyesyesNeed to press button for ~1 second to trigger a Suspend event.
Volume keys on sideVolumeyesyes
LidLid buttonacpi buttonyesyesTriggers suspend event