Lenovo L14 Gen4

From Gentoo Wiki
Jump to:navigation Jump to:search
Resources

The Lenovo Thinkpad L14 Gen4 is an 14 inch laptop made by Lenovo. Like other members of the ThinkPad line it is semi-rugged and business needs take priority over design aesthetics. As such it is thicker than many modern laptops but has a lot of I/O connectivity options to show for it. Additionally, the laptop is quite easy to service and both the RAM, strange M.2 2242 form factor, smart card reader and LTE upgradable.

Hardware

Class Bus Module Product
Processor - - AMD Ryzen 5 PRO 7530U with Radeon Graphics
Wi-Fi PCI mt7921e MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
Ethernet PCI r8169 Realtek Semiconductor Co., Ltd. RTL8111/8168/8411
Bluetooth USB btusb Foxconn / Hon Hai Wireless_Device (0489:e0d8)
Audio PCI snd_hda_intel Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
Graphics PCI amdgpu Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev d5)
MMC card reader PCI - O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
Smart card reader USB usbfs EMV Smartcard Reader
Finger Print USB usbhid Cypress Semiconductor
RGB Camera USB uvcvideo Integrated RGB Camera
Touchpad I2C i2c_designware ELAN067F:00
Trackpad - mousedev TPPS/2 Elan TrackPoint
root #lspci -nn
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.6 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0 [1022:166a]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1 [1022:166b]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2 [1022:166c]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3 [1022:166d]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4 [1022:166e]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5 [1022:166f]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6 [1022:1670]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7 [1022:1671]
01:00.0 Non-Volatile memory controller [0108]: Transcend Information, Inc. Device [1d79:2263] (rev 03)
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0e)
04:00.0 SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8621] (rev 01)
06:00.0 Network controller [0280]: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter [14c3:0616]
07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] (rev d5)
07:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
07:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
07:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
07:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
07:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01)
07:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
root #lsusb
Bus 004 Device 004: ID 17ef:1020 Lenovo ThinkPad Dock Hub
Bus 004 Device 003: ID 17ef:3062 Lenovo ThinkPad Dock Ethernet [Realtek RTL8153B]
Bus 004 Device 002: ID 17ef:101f Lenovo 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 011: ID 30c9:0050 Luxvisions Innotech Limited Integrated RGB Camera
Bus 003 Device 009: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
Bus 003 Device 005: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 008: ID 1235:8200 Focusrite-Novation Scarlett 2i4 USB
Bus 003 Device 012: ID 17ef:3063 Lenovo ThinkPad Dock Audio
Bus 003 Device 010: ID 04d9:0125 Holtek Semiconductor, Inc. USB Keyboard
Bus 003 Device 007: ID 17ef:1021 Lenovo ThinkPad Dock Hub [Cypress HX2VL]
Bus 003 Device 006: ID 17ef:1026 Lenovo 
Bus 003 Device 004: ID 17ef:3060 Lenovo ThinkPad Dock
Bus 003 Device 002: ID 17ef:1025 Lenovo 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 06cb:00f9 Synaptics, Inc. 
Bus 001 Device 002: ID 0489:e0d8 Foxconn / Hon Hai Wireless_Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root #i2cdetect -l
i2c-0   i2c             Synopsys DesignWare I2C adapter         I2C adapter
i2c-1   i2c             Synopsys DesignWare I2C adapter         I2C adapter
i2c-2   i2c             AMDGPU DM i2c hw bus 0                  I2C adapter
i2c-3   i2c             AMDGPU DM i2c hw bus 1                  I2C adapter
i2c-4   i2c             AMDGPU DM i2c hw bus 2                  I2C adapter
i2c-5   i2c             AMDGPU DM i2c hw bus 3                  I2C adapter
i2c-6   i2c             AMDGPU DM aux hw bus 0                  I2C adapter
i2c-7   i2c             AMDGPU DM aux hw bus 2                  I2C adapter
i2c-8   i2c             AMDGPU DM aux hw bus 3                  I2C adapter
i2c-9   i2c             DPMST                                   I2C adapter
i2c-10  i2c             DPMST                                   I2C adapter

Installation

Installation of Gentoo is straightforward with both OpenRC and systemd. After building base system do not forget to install

root #emerge --ask sys-kernel/linux-firmware

Wifi module and AMDGPU requires external firmware.

Kernel

Standard configuration for your requirements, but for Touchpad you should add some specific configuration. Laptop stable works with version starts from 6.4.3. [Gentoo Sources 6.4.11 config.gz]

Modules

Builded as modules:

root #lsmod
Module                  Size  Used by
dm_crypt               49152  1
onboard_usb_hub        20480  0
xhci_pci               24576  0
xhci_pci_renesas       12288  1 xhci_pci
sp5100_tco             12288  0
mt7921e                32768  0
watchdog               40960  1 sp5100_tco
ucsi_acpi              12288  0
k10temp                12288  0
xhci_hcd              290816  1 xhci_pci
typec_ucsi             49152  1 ucsi_acpi
typec                  98304  1 typec_ucsi
roles                  16384  1 typec_ucsi
dm_mod                167936  3 dm_crypt
dax                    49152  1 dm_mod

Sensors

root #sensors
thinkpad-isa-0000
Adapter: ISA adapter
fan1:        1765 RPM
CPU:          +42.0°C  
GPU:              N/A  
temp3:        +42.0°C  
temp4:         +0.0°C  
temp5:        +42.0°C  
temp6:        +42.0°C  
temp7:        +42.0°C  
temp8:       -108.0°C  

BAT0-acpi-0
Adapter: ACPI interface
in0:          13.00 V  

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +43.4°C  

amdgpu-pci-0700
Adapter: PCI adapter
vddgfx:        1.45 V  
vddnb:       799.00 mV 
edge:         +40.0°C  
PPT:          10.00 W  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +42.0°C  (crit = +128.0°C)

Firmware

I compile all firmware to kernel

KERNEL Firmware
Device Drivers  --->
  Generic Driver Options  --->
    Firmware loader  --->
-*-   Firmware loading facility
        amdgpu/green_sardine_asd.bin amdgpu/green_sardine_ta.bin amdgpu/green_sardine_dmcub.bin amdgpu/green_sardine_pfp.bin amdgpu/green_sardine_me.bin amdgpu/green_sardine_ce.bin amdgpu/green_sardine_rlc.bin amdgpu/green_sardine_mec.bin amdgpu/green_sardine_sdma.bin amdgpu/green_sardine_vcn.bin mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin mediatek/WIFI_RAM_CODE_MT7922_1.bin mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin regulatory.db regulatory.db.p7s

WiFi

KERNEL MEDIATEK Corp. MT7922 802.11ax
Device Drivers  --->
[*] Network Device support --->
[*]  Wireless Lan --->
<*>    Atheros Wireless Cards --->
[*]      MediaTek devices
<*>        MediaTek MT7921E (PCIe) support

Touchpad/Trackpad

KERNEL ELAN067F:00
Device Drivers  --->
[*] Input device support --->
[*]   Mice --->
<*>     PS/2 mouse
[*]       Elantech PS/2 protocol extension
< >     ELAN I2C Touchpad support
[ ]   Touchscreens  ---
[*]   HID bus support
<*>     I2C HID support
< >       Driver for Elan hid-i2c based devices on OF systems
-*- Pin controllers
[*]   AMD GPIO pin control
    I2C suppoer
      I2C Hardware Bus support  --->
[*]     Synopsys DesignWare Slave
<*>     Synopsys DesignWare Platform

LTE

As all modern Laptops Lenovo lock to LTE modules whitelist. I try to use my own Sierra module, but it did not works. I still waiting for native module from Lenovo, but they does not build equipment. Coming soon...

Finger Print reader

Works fine, but can requires some kernel configuration. Look to config.gz attached in [1] section. Fprintd works native.

UEFI support

If you want to directly load the kernel from the UEFI: * Enable UEFI-only loading (no legacy support) * Set an administrator password * Disable secure boot Then follow the instructions from the wiki: EFI stub