Lenovo Yoga Duet 7 13IML05

From ArchWiki
Hardware PCI/USB ID Working?
GPU 8086:9b41 Yes
Touchpad 17ef:60f8 Yes
Webcam front 1bcf:2cc6 Yes
Webcam rear 0bda:5613 Yes
Wireless 8086:02f0 Yes
Bluetooth 8087:0026 Yes
Audio 8086:02c8 Yes
Touchscreen Yes
MicroSD card reader 1217:8621 Untested
Sensors 8086:02fc Yes

The Lenovo Yoga Duet 7 13IML05 is a 2-in-1 convertible laptop introduced in late 2019. It features a 13" 16:10 2160x1350 WQHD multi-touch touchscreen, Intel 10th-gen Comet Lake Core processors and integrated Intel UHD 620 graphics. Its detachable keyboard/touchpad unit features Bluetooth connectivity and may be used detached from the main tablet unit.

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

# dmidecode -t system | grep Version
       Version: Yoga Duet 7 13IML05

Firmware

The BIOS is accessed by repeatedly pressing the F2 key during system boot when the display powers up and before the Lenovo logo is displayed on the screen.

The boot menu to choose the boot device is accessed by repeatedly pressing the F12 key during system boot when the display powers up and before the Lenovo logo is displayed on the screen.

Accessibility

The BIOS user interface is graphical. An option to switch to a text-based GUI is not provided. However, the options may be selected with the arrow keys and the values changed with the F5 and F6 keys.

Suspend / Standby

The system supports the traditional S3 Sleep power state where all hardware components are turned off except for the RAM, as well as a newer software-based Modern Standby (S0iX). One possible benefit to the Modern Standby sleep state is faster wake up time, and one possible drawback is increased power usage.

To check which standby mode is currently active on your system:

# cat /sys/power/mem_sleep
       [s2idle] deep

s2idle means Modern Standby, deep means S3 Sleep.

Enabling S3 Sleep

Merge-arrows-2.pngThis article or section is a candidate for merging with Power management/Suspend and hibernate.Merge-arrows-2.png

Notes: The issue is not unique to this particular hardware. It is better to document in one place. (Discuss in Talk:Lenovo Yoga Duet 7 13IML05)

To enable S3 Sleep instead of Modern Standby, add mem_sleep_default=deep to the kernel options.

Audio

The speakers, the headphones connector and the microphones work out of the box starting with the Arch Linux kernel 5.18.8-arch1.

Note: The Lenovo Yoga Duet 7 13IML05 requires all the ALSA firmware packages and alsa-tools in order for the sound card to work.

Due to this bug, a kernel patch is required to have working audio on kernels older than 5.18.8-arch1. To that end, the kernel source file /sound/pci/hda/patch_realtek.c needs to be patched.

Search for this line:

	SND_PCI_QUIRK(0x17aa, 0x3818, "Lenovo C940", ALC298_FIXUP_LENOVO_SPK_VOLUME),

And replace it with the following line:

	SND_PCI_QUIRK(0x17aa, 0x3818, "Yoga Duet 7 13IML05", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS),

Please refer to Kernel#Compilation and Patching packages for instructions on applying a kernel patch and compiling a custom kernel or kernel module.

With the patched kernel and additional firmware, all audio components including the speakers, headphones and microphones work.

Enabling automatic screen rotation under GNOME and Wayland

Install the iio-sensor-proxy package. The screen will now automatically rotate and keyboard/touchpad input will be disabled when the keyboard/touchpad unit is folded back in tablet mode. If the screen does not rotate automatically, try running

$ gsettings set org.gnome.settings-daemon.peripherals.touchscreen orientation-lock false

Alternatively, use Super+o to toggle lock state.

Note: GNOME 40 has a regression in the mutter package that prevents screen rotation from working. See https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1846 for more information.

Function keys

Key Visible?1 Marked?2 Effect
Esc No Yes Enables Fn lock
F1 Yes Yes XF86AudioMute
F2 Yes Yes XF86AudioLowerVolume
F3 Yes Yes XF86AudioRaiseVolume
F4 Yes Yes XF86AudioMicMute
F5 Yes Yes XF86MonBrightnessDown
F6 Yes Yes XF86MonBrightnessUp
F7 Yes Yes XF86Display
F8 Yes Yes XF86RFKill, toggles soft-block wifi and bluetooth
F9 Yes Yes XF86Tools
F10 Yes Yes XF86Lock
F11 No Yes Ctrl+Alt+Tab
F12 Yes Yes XF86Calc
Fn+4 Yes3 No XF86Sleep
Fn+Space No Yes Toggle Keyboard Backlight
Fn+Left Arrow Yes Yes Home
Fn+Right Arrow Yes Yes End
Fn+Up Arrow Yes Yes Home
Fn+Down Arrow Yes Yes End
  1. The key is visible to xev and similar tools
  2. The physical key has a symbol on it, which describes its function
  3. systemd-logind handles this by default