Difference between revisions of "Lenovo ThinkPad X1 Carbon (Gen 5)"

From ArchWiki
Jump to: navigation, search
(Configuration: add backlight control section)
m (specified how the keyboard backlight can be toggled by the Fn+Space key combination)
Line 88: Line 88:
 
* Fn+B sends Control_L+Break
 
* Fn+B sends Control_L+Break
 
* Fn+K sends Scroll_Lock
 
* Fn+K sends Scroll_Lock
 +
* Fn+Space toggles the keyboard backlight
 
* Fn by itself sends XF86WakeUp (wakes computer from sleep by default)
 
* Fn by itself sends XF86WakeUp (wakes computer from sleep by default)
  

Revision as of 14:24, 5 October 2017

Tip: A great resource for thinkpads is http://www.thinkwiki.org/wiki/ThinkWiki

Model description

Lenovo ThinkPad X1 Carbon, Gen 5.

To ensure you have this version, run dmidecode:

# dmidecode -t system | grep Version

Version: ThinkPad X1 Carbon 5th

Support

Device Working
Intel graphics Yes
Wireless network configuration#iwlwifi Yes
Native Ethernet with Dongle Yes
Mobile broadband Yes
ALSA Yes
Touchpad Yes
TrackPoint Yes
Camera Yes
Fingerprint Reader No
Power management Yes
Bluetooth Yes
microSD card reader Yes

Fingerprint Reader

The fingerprint reader included with this model `138a:0097 Validity Sensors, Inc` currently lacks a linux driver. libfprint bugreport. Synaptics (which has acquired 'Validity Sensors') has unofficially said that they cannot disclose the protocol, but may possibly release a binary driver.

Open source Linux driver is being developed by reverse engineering the Windows driver. [1]

Bug: Fans blowing at max speed after resuming

There is a bug in the current kernel, causing the fans to often go on full throttle non-stop after resuming from suspend-to-ram.

This bug is fixed since the kernel 4.12.4-1.

Set of patches available for older version: https://bugzilla.kernel.org/show_bug.cgi?id=196129#c26

If you have an older version of the kernel, you need to manually patch the kernel or work around the issue by repeatedly suspend (Fn+4) and resume (Fn) until it resumes without the fans starting with a short burst of activity. For me, the issue arises in about 2/3 resumes without the patches and never with kernel 4.12.0-2 with patches.

Bug: Trackpoint/Trackpad not working

There is a bug in Synaptics drivers that prevent both Trackpoint and Trackpad to function properly if Trackpoint is enabled at boot.

You are affected by the bug if you see those with dmesg

kernel: psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
kernel: psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
kernel: psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
kernel: psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
kernel: psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1
kernel: psmouse serio1: issuing reconnect request

Installing linux-tp-x1-carbon-5thAUR fixes this, see https://gist.github.com/ursm/6d1007f44a1d6beeb670b3c3a6a78ea4 .

Configuration

Keyboard Fn Shortcuts

  • Fn+4 sends XF86Sleep (puts computer to sleep by default)
  • Fn+S sends Alt_L+Sys_Req
  • Fn+P sends Pause
  • Fn+B sends Control_L+Break
  • Fn+K sends Scroll_Lock
  • Fn+Space toggles the keyboard backlight
  • Fn by itself sends XF86WakeUp (wakes computer from sleep by default)

Display

There are two options for displays:

  • 14" FHD IPS (1920 x 1080): Works
  • 14" WQHD (2560 x 1440): Works

Backlight Control

By default, no acpi events are generated for Fn+F5 and Fn+F6 keypress because

kernel: thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
kernel: thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
kernel: thinkpad_acpi: Standard ACPI backlight interface available, not loading native one

Setting the acpi_brightness=vendor kernel parameter fixes this.

TrackPoint Scrolling

TrackPoint Scrolling is working out of the box in GNOME and MATE. In some WindowManagers, the TrackPoint middle-button scrolling can be enabled by installing the xorg-xinput package from the official repositories and appending the following line to your .xinitrc:

xinput set-prop "TPPS/2 IBM TrackPoint" "libinput Scroll Method Enabled" 0 0 1

Lenovo ThinkPad Thunderbolt 3 Dockingstation

The USB-C Dock is a Thunderbolt 3 device. Plugging it in results in a whole lot of PCI entries:

06:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
07:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
07:01.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
07:02.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
07:04.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
3c:00.0 USB controller: Intel Corporation Device 15d4 (rev 02)

The dock works nearly perfect out of the box with Kernel 4.10.13. Even hot plugging works: unplugging the dock while a display is connected just lets all the devices disappear. Replugging it later works, all the USB devices come back up automagically, thought you might need to issue a xrandr to get the display showing again (tested with Xorg based i3 setup).


Ethernet

The r8152 based USB Ethernet Port does not work out of the box. It gives the message:

[    7.574773] r8152 4-1.1:1.0 (unnamed net_device) (uninitialized): Unknown version 0x6010

Installing r8152-dkmsAUR fixes this (the DKMS module adds the version 0x6010 to the module).

USB

In order for the internal USB hub in the dock to work without having to boot with the dock connected to your computer, you need to set "Security Level" to "No Security" under Thuderbolt settings in BIOS. Also remember to enable the "Support in pre boot environment" for USB peripherals connected to the dock to work at all.

HP Thunderbolt 3 Dock

The HP Thunderbolt 3 Dock is working out of the box.