Lenovo ThinkPad X1 Yoga (Gen 5)

From ArchWiki
Jump to navigation Jump to search

The Lenovo ThinkPad X1 Yoga, 5th generation is a 2-in-1 convertible laptop introduced in eary 2020. Its design is closely related to the Lenovo ThinkPad X1 Yoga (Gen 4). It features a 14" screen, 10th-gen Intel Core processors and integrated Intel UHD 620 graphics.

To ensure you have this version, install the package dmidecode and run:

# dmidecode -t system | grep Version
        Version: ThinkPad X1 Yoga Gen 5
Device Working Modules
Intel graphics Yes i915, (intel_agp)
Wireless network Yes iwlmvm
Native Ethernet with dongle (sometimes not included) Yes ?
Mobile broadband Fibocom ? ?
Audio Yes² snd_hda_intel
Microphone ? snd_sof
Touchpad Yes psmouse, rmi_smbus, i2c_i801
TrackPoint Yes psmouse, rmi_smbus, i2c_i801
Camera Yes uvcvideo
Fingerprint reader ? ?
Power management Yes¹ ?
Bluetooth Yes btusb
NFC ? ?
Keyboard backlight Yes thinkpad_acpi
Function/Multimedia keys Yes ?
  1. S3 suspend requires changes to BIOS settings, see section on enabling S3.
  2. Only two of the four speakers are working with the method described in #Audio.


Additional hardware information from lsusb and lspci can be found below when using the linux kernel 5.7.9:

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 06cb:00bd Synaptics, Inc.
Bus 001 Device 004: ID 04f2:b6cb Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 003: ID 056a:51b8 Wacom Co., Ltd Pen and multitouch sensor
Bus 001 Device 006: ID 8087:0026 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ lspci
00:00.0 Host bridge: Intel Corporation Device 9b61 (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Comet Lake Thermal Subsytem
00:13.0 Serial controller: Intel Corporation Comet Lake Integrated Sensor Solution
00:14.0 USB controller: Intel Corporation Device 02ed
00:14.2 RAM memory: Intel Corporation Device 02ef
00:14.3 Network controller: Intel Corporation Wireless-AC 9462
00:15.0 Serial bus controller [0c80]: Intel Corporation Serial IO I2C Host Controller
00:15.1 Serial bus controller [0c80]: Intel Corporation Device 02e9
00:16.0 Communication controller: Intel Corporation Comet Lake Management Engine Interface
00:1d.0 PCI bridge: Intel Corporation Device 02b0 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Device 02b4 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device 0284
00:1f.3 Audio device: Intel Corporation Device 02c8
00:1f.4 SMBus: Intel Corporation Device 02a3
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake SPI (flash) Controller
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (10) I219-V
03:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983



Automatic (Linux Vendor Firmware Service)

In August of 2018 Lenovo has joined the Linux Vendor Firmware Service (LVFS) project, which enables firmware updates from within the OS. BIOS updates (and possibly other firmware such as the Thunderbolt controller) can be queried for and installed through fwupd.

Enabling S3

The BIOS has two "Sleep State" options, called "Windows" and "Linux", which you can find in at Config -> Power -> Sleep State. The Linux option is the traditional S3 power state where all hardware components are turned off except for the RAM, and it should work normally. The Windows option is a newer software-based "modern standby" which works on Linux (despite the name). One possible benefit to the Windows sleep state is faster wake up time, and one possible drawback is increased power usage.

Reboot and verify whether S3 is working by running:

# dmesg | grep -i "acpi: (supports"

You should now see something like this:

 [    0.230796] ACPI: (supports S0 S3 S4 S5)


Install the latest linux-kernel and sof-firmware. Out of the box, without sof-firmware, the internal speakers as well as the microphone are not working.

Note: This method lead to working speakers (at least two out of the four), but without a working microphone.

Add to your kernel parameters the option snd_hda_intel.dmic_detect to 0, for example by adding it to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grubd:

GRUB_CMDLINE_LINUX_DEFAULT="quiet ... snd_hda_intel.dmic_detect=0"

After running update-grub as root and rebooting, the speakers should be working.

Hidden Fn-Keys

Key combination effect
Fn+B Break
Fn+K ScrollLock
Fn+P Pause
Fn+S SysRq
Fn+4 Sleep
Fn+Space toggle keyboard backlight
Fn+Left Arrow Home
Fn+Right Arrow End
Fn+Esc toggle FnLock
Fn+L "low power mode"
Fn+M "normal power mode"
Fn+H "high power mode"


Many of the configuration options can be found in Lenovo ThinkPad X1 Yoga (Gen 4) and Lenovo ThinkPad X1 Carbon (Gen 7), as the X1 Carbon 7 and X1 Yoga 4 have a very similar structure to the X1 Yoga 5.