Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

yoga: Lenovo ThinkPad X1 Yoga 4th Gen

20200502 A top of the range laptop to handle heavy workloads and able to travel well with good battery life, as well as a touch screen that can flip to become a tablet with a pen.


Install Date: 2020-02-25
Machine: Lenovo ThinkPad X1 Yoga 4th, model 20QFCTO1WW
CPU: 8 x Intel Core i7-8665U CPU @ 1.90GHz
Performance: PassMark = 8607, BogoMIPS = 4200 x 8
Memory: 2x8GiB (4x32Gbx32) LPDDR3 Synchronous 2133MHz (0.5 ns)
Disk: NVMe 2280 512GB SSD
Wireless: Cannon Point-LP CNVi
Display: 309mmx174mm 2560x1440 14.0WQHD IPS AR/AS 300N MT
Video: Intel Corporation UHD Graphics 620 (Whiskey Lake) (rev 02) (i915)
Camera: IR&HD Camera with 4 Microphones
Audio: Cannon Point-LP High Definition Audio
Battery: 4Cell 51Wh
Boot: Grub2
Kernel: 4.15.0-72-generic

The 4th generation Thinkpad X1 Yoga from Leonovo is a top end device ideal to support a data scientist on the go. It has a good amount of memory (16GB) and disk (512GB SSD) and a good CPU (i7 8th gen). Press F12 after powering up the machine to find the boot menu to choose to boot from USB. Ubuntu 19.10 was installed by booting from a USB stick with the iso image. Secure Boot was requested by default to install drivers and a password supplied. The whole disk is encrypted using a passphrase. Installation was about 15 minutes.

A Lenovo ThinkPad Thunderbolt 3 Dock USB is used. With a single USB-C connection, a 34 inch monitor connected through HDMI, USB connections, and a headphone jack are all being run.

As with other Lenovo laptops the keyboard has the physical location of the Fn and Ctrl keys swapped which can be changed in the BIOS. The Function keys (F1-F12) can also be set to either issue the Function or the icon action by default with my typical preference being to issue the Function rather than the Action, and so perform the Action on pressing the Fn key (which might be swapped with Ctrl). The default behaviour can be swapped in the BIOS.

Support: Arch Linux, Lenovo, Ubuntu

Upgrade Ubuntu 19.10 to 20.04 20200502 Update from Ubutnu 19.10 to 20.04. Began by checking home folder for anything to back up first. Should really not be anything - keeping project work on git repositories, configurations in a git repository, and project and important files on a nextcloud server.

$ wajig update
$ wajig distupgrade
$ sudo reboot
$ wajig install update-manager-core
$ sudo do-release-upgrade -d
All went smoothly and after removing snd_hda_intel.dmic_detect=0 from /etc/default/grub sound was fully functional, including the microphones for the first time, noting that the required module snd_soc_skl_hda_dsp was loaded at boot.

Firmware Update 20200406

$ fwupdmgr update
Downloading 44.00 for ThinkPad X1 Yoga 4th / Carbon 7th Thunderbolt Controller...
Fetching firmware https://fwupd.org/downloads/
Downloading.             [**********************************] Less than one minute remaining.
Decompressing.           [**********************************]
Authenticating.          [**********************************]
Updating ThinkPad X1 Yoga 4th / Carbon 7th Thunderbolt Controller.
Restarting device.       [***************************************]
Downloading 0.1.30 for 20QFCTO1WW System Firmware...
Fetching firmware https://fwupd.org/downloads/e9a40c560e37e076c85198403
Downloading.             [**********************************] Less than one minute remaining.
Decompressing.           [**********************************]
Authenticating.          [**********************************]
Updating 20QFCTO1WW System Firmware.************************]
Scheduling.              [**********************************]
No upgrades for UEFI Device Firmware, current is 192.49.1534: 192.47.1524=older
No upgrades for UEFI Device Firmware, current is 0.1.15: 0.1.15=same, 0.1.14=older,
                                      0.1.13=older, 0.1.12=older, 0.1.10=older
No upgrades for WDC PC SN730 SDBQNTY-512G-1001, current is 11130101: 11130101=same

Audio Fail on Kernel Upgrade 20200322 An upgrade of the kernel on Ubuntu 19.10 from 5.3.0-40 to 5.3.0-42 (and then 5.3.0-45) resulted in the audio (speaker, hub headphones, and HDMI monitor) not working. Bluetooth headphones remained working, including microphone. Computer microphone was not working irrespective. Under kernel 5.3.0-40 /proc/asound/cards had two cards listed (PCH and USB). Research suggested the issue is with the SND_HDA_INTEL_DETECT_DMIC configuration which was enabled in the kernel updates. Disabling it fixed the issue and can be done by adding a kernel option to GRUB in /etc/default/grub (see Section 12.1):

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash snd_hda_intel.dmic_detect=0"
$ sudo update-grub

Microphone Fail 20200225 The four built-in microphones along the top of the screen were not working on the default Ubuntu 19.10 install. An external microphone is required for voice communications. After upgrading to Ubuntu 20.04 with the new kernel support of SOF the microphones were working for the first time. The MIC is KIOXIA Corporation supported in kernel module sof-skl_hda_card, same as in the Lenovo ThinkPad X1 Carbon 7th Gen Laptop.

Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.