Lenovo ThinkPad T14 (AMD) Gen 3

HardwarePCI/USB IDWorking?
GPU1002:1681Yes
Wireless17cb:1103Yes
Bluetooth17cb:1103Yes
Webcam04f2:b74fYes
TrackPointYes
Touchpad06cb:00f9Yes
Fingerprint readerYes
Smartcard reader058f:9540Yes
Mobile broadband2c7c:030aYes

This article covers the installation and configuration of Arch Linux on a Lenovo Thinkpad T14 (AMD) Gen 3 21CFCT01WW laptop. Everything seems to work pretty much out the box with linux≥5.19.0, except the keyboard does not feel the same as the first generation and the battery life is not great.

For a general overview of laptop-related articles and recommendations, see Laptop.

Firmware

Warning:
  • If you run system firmware version 0.1.17 do not set the suspend mode in UEFI setup to Linux (S3). This sleep mode is not supported by the CPU. If you set S3 mode and upgrade the system firmware you need to do a downgrade to 0.1.17 to change it back, because the option is removed in newer firmware. If you set S3 mode nevertheless and try to suspend to mem/S3 mode the system will crash and you need to reset it by holding the power button for a few seconds. s2Idle works even in S3 mode but the power consumption is much higher with 4W instead of 0.5W and would drain the battery very fast.
  • If you already set the firmware to S3 mode and upgrade to a newer firmware, you can find the older firmware upgrade iso image on the lenovo support page for your device under bios. There you need to click on the small document symbol named "details" to see the older versions. Before you can do a downgrade you have do disable the UEFI rollback prevention under security in the UEFI setup.
  • If you are on firmware version 0.1.49 or above, you will NOT be able to downgrade prior to 0.1.49, which includes firmware version 0.1.17. This is due to "AMD Secure Processor Rollback protection" being enabled, which disallows a user to downgrade to a system firmware once you have one with a security vulnerability fix, even if you have "Secure Rollback Prevention" disabled in the UEFI setup. There's currently no known way to disable it.

fwupd

fwupd supports the UEFI BIOS, the webcam, the touchpad, the CPU/GPU, TPM and the NVMe controller.

Sleep to idle (s2idle, S0ix)

According to Lenovo staff the CPU generation in this device only supports s2idle and not S3 sleep.

See Power management/Suspend and hibernate#Changing suspend method.

Suspend/Hibernate

There is a known bug in the ath11k kernel module that could block the resume process, freeze the graphics interface and cause loss of wireless card interface. A manual fix is to disable the ath11k_pci module before hibernate and re-enable it after resume.

This also seems to fix an intermittent issue causing the laptop to immediately wake up after suspend.

See Dell XPS 13 (9310)#Wi-Fi for a systemd service to automate this procedure.

This can be automated via sleep hooks - if the module is unloaded before hibernating or suspending it unloads immediately with no delay, and the resume kernel bug does not happen:

/etc/systemd/system/ath11k-suspend.service
[Unit]
Description=Suspend: rmmod ath11k_pci
Before=sleep.target

[Service]
Type=oneshot
ExecStart=/usr/bin/rmmod ath11k_pci

[Install]
WantedBy=sleep.target
/etc/systemd/system/ath11k-resume.service
[Unit]
Description=Resume: modprobe ath11k_pci
After=suspend.target suspend-then-hibernate.target hibernate.target hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/usr/bin/modprobe ath11k_pci

[Install]
WantedBy=suspend.target suspend-then-hibernate.target hibernate.target hybrid-sleep.target

You need to enable ath11k-suspend.service and ath11k-resume.service.

Disable wakeup from sleep on touchpad activity

Use the following to disable wake-up events caused by the touchpad. Note that this only applies to the touchpad itself and the integrated buttons for left/right click at its bottom, not the 3 buttons at its top or any other input.

/etc/udev/rules.d/99-disable-touchpad-wakeup.rules
KERNEL=="i2c-ELAN0678:00", SUBSYSTEM=="i2c", ATTR{power/wakeup}="disabled"
Tip: You can find the device name with grep -i touchpad -A 1 /proc/bus/input/devices.

Quectel EM05-G 4G LTE Modem

The integrated modem is supported by default, but you need a custom FCC unlock script for ModemManager. This script should be located at /usr/share/ModemManager/fcc-unlock.available.d/2c7c and has to be linked from /etc/ModemManager/fcc-unlock.d/2c7c:030a

/usr/share/ModemManager/fcc-unlock.available.d/2c7c
 #!/bin/bash

# SPDX-License-Identifier: CC0-1.0
# 2022 Leah Oswald <[email protected]>
#
# Queltec EM05-G FCC unlock mechanism
#

# require program name and at least 2 arguments
[ $# -lt 2 ] && exit 1

# first argument is DBus path, not needed here
shift

# second and next arguments are control port names
for PORT in "$@"; do
  # match port name
  echo "$PORT" | grep -q cdc-wdm && {
    CDC_WDM_PORT=$PORT
    break
  }
done

# fail if no cdc-wdm port exposed
[ -n "$CDC_WDM_PORT" ] || exit 2

# run mbimcli operation
mbimcli --device-open-proxy --device="/dev/$CDC_WDM_PORT" --quectel-set-radio-state=on
exit $?

Then link them:

# ln -s /usr/share/ModemManager/fcc-unlock.available.d/2c7c /etc/ModemManager/fcc-unlock.d/2c7c:030a

After that everything should work normal.

There is an issue at the ModemManager Gitlab to add this script to make this obsolete in the future.

Function keys

Key Visible?1 Marked?2 Effect
FnYesNoXF86WakeUp
Fn+EscNoYesToggles the Fn lock
Fn+F1YesYesXF86AudioMute
Fn+F2YesYesXF86AudioLowerVolume
Fn+F3YesYesXF86AudioRaiseVolume
Fn+F4YesYesXF86AudioMicMute
Fn+F5YesYesXF86MonBrightnessDown
Fn+F6YesYesXF86MonBrightnessUp
Fn+F7YesYesXF86Display
Fn+F8YesYesXF86WLAN
Fn+F9YesYesXF86NotificationCenter
Fn+F10YesYesXF86PickupPhone
Fn+F11YesYesXF86HangupPhone
Fn+F12YesYesXF86Favorites
Fn+EndYesNoInsert
Fn+4YesNoXF86Sleep
Fn+TabYesNoXF86FullScreen
Fn+sYesNoAlt_L Alt_L+Sys_Req
Fn+dNoNoToggles the PrivacyGuard feature
Fn+kYesNoScroll_Lock
Fn+pYesNoPause
Fn+bYesNoPause
Fn+Right ShiftYesNoXF86FnRightShift
Fn+SpaceNoYesControls the keyboard backlight
Fn+PrintYesNoXF86SelectiveScreenshot
Fn+Left ArrowYesNoHome
Fn+Right ArrowYesNoEnd
  1. The key is visible to xev and similar tools
  2. The physical key has a symbol on it, which describes its function

Mute Mic LED always on

There is an issue where the LED light on the mic button is always on.

Using alsamixer (from alsa-utils)

Select the Realtek ALCXXX sound card (with F6). The card label may be "HD-Audio Generic" (it should have 5 channels). Disable Auto-Mute Mode.

Use Fn+F4 to test the mute/unmute functionality for your microphone. The LED should now properly toggle on and off as expected. If it doesn’t work, try rebooting.

Keep the state of Auto-Mute Mode disabled, do not re-enable it.

Audio

Install sof-firmware.

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.