# Lenovo ThinkPad X1 Carbon (Gen 2)

Related articles

- Lenovo ThinkPad X1 Carbon
- Lenovo ThinkPad X1 Carbon (Gen 3)
- Lenovo ThinkPad X1 Carbon (Gen 4)

## Model description

Lenovo ThinkPad X1 Carbon, Gen 2 (X1C). Comes without optical drive. There is also a touch version. Has UEFI BIOS with BIOS-legacy fallback mode.

To ensure you have this version, try running dmidecode:

    # dmidecode -t system | grep Version
    Version: ThinkPad X1 Carbon 2nd

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

### Legacy-BIOS

This article or section needs expansion.

Reason: TODO (Discuss in Talk:Lenovo ThinkPad X1 Carbon (Gen 2)#)

### UEFI

Installing the system from an Archboot device just works.

Alteratively, to manually install using `efibootmgr` (see Unified Extensible Firmware Interface#efibootmgr), you can run this:

    # efibootmgr -c -d /dev/sda -p 1 -l /EFI/arch_grub/grubx64.efi -L "Arch"

This assumes that you are using GRUB with /dev/sda1 as your ESP. If you are using a different partition change the arguments to `-d` and `-p` arguments.

Note:

This may not work from the Archiso image, in which case you will need to use the EFI shell built into the archiso image.

Reboot the computer and drop into the EFI shell at the menu, then run these commands:

    > bcfg boot add 0 fs0:\EFI\arch_grub\grubx64.efi "Arch"

Make sure you are using the correct disk (`fs0`) and bootloader location (`\EFI\arch_grub\grubx64.efi`).

## Hardware

Almost everything works out of the box. Most of the hardware is based on the Intel Lynx Point reference design.

### Power Management

The kernel module `thinkpad_acpi` picks up most of the sensors. The kernel module `tp_smapi` is not currently supported. PCIe ASPM does not currently work.

Udev does not not notify whenever battery discharges by 1%, but it does notify at 80%, 20%, 5%, 4% and 0%. To take advantage of this, see (Suspend On Low Battery Laptop#hibernate on low battery level)

### Wake From Suspend

Wake from suspend can be buggy with earlier versions of the bios, see: [1]

This can be solved by flashing the bios to a version >=1.13. Look here for Lenovo's bios versions: [2]

A guide how to make a bootable BIOS key drive can be found here: [3]

And some fairly old help from lenovo here: [4]

If the function keys fail to wake after suspend, ensure you have a kernel version >=3.15.

If you build your own kernels, make sure to either enable TPM (Trusted Platform Module) drivers or disable the Security Chip in the BIOS.

### Keyboard

On kernel 3.14 and lower the adaptive panel at the top of the keyboard is locked to function mode.

From kernel 3.15, Home mode is also available which allows access to screen brightness and other controls.

If you wish to remap keys to get back to a sane keyboard layout, you can use either xmodmap or xkb. The difference is largely user preference.

#### Remapping keys using xmodmap

To get the tilde key back to a sane location on the keyboard you can use xmodmap Xmodmap to remap Shift-Esc to '~'. Install xorg-xmodmap and generate a custom key map:

    $ xmodmap -pke > ~/.Xmodmap

Then edit your key map:

    ~/.Xmodmap

    ...
    keycode   9 = Escape asciitilde Escape
    ...

Make sure xmodmap loads your new keymap on login:

    ~/.xinitrc

    ...
    if [ -s ~/.Xmodmap ]; then
           xmodmap ~/.Xmodmap
    fi
    ...

#### Remapping keys using xkb

The factual accuracy of this article or section is disputed.

Reason: This is not the intended usage of XKB, these changes will be lost on every update of xkeyboard-config package which owns the files. (Discuss in Talk:Lenovo ThinkPad X1 Carbon (Gen 2)#)

##### Backtick (`) and Tilde (~)

To get the backtick/tilde back to a normal location, add the following definition for the Escape button:

    /usr/share/X11/xkb/symbols/pc

    key <ESC>  { [ grave, asciitilde ] };

##### Home and End

You may also wish to remap the 'Home' and 'End' button back to Caps Lock, or Escape. Change the lines for HOME and END as follows:

    /usr/share/X11/xkb/symbols/pc

    key <HOME> { [ Caps_Lock ] };
    key  <END> { [ Caps_Lock ] };

or to make 'Home' and 'End' be Escape:

    /usr/share/X11/xkb/symbols/pc

    key <HOME> { [ Escape ] };
    key  <END> { [ Escape ] };

##### BackSpace and Delete

If you find yourself accidentally hitting the delete key instead of backspace, you may wish to make both backspace and delete be 'BackSpace', while functioning as 'Delete' when you hold down shift:

    /usr/share/X11/xkb/symbols/pc

    key <BKSP> { [ BackSpace, Delete ] };
    key <DELE> { [ BackSpace, Delete ] };

### Trackpad

To enable Trackpad support you need to install xf86-input-synaptics.

#### Lock-ups on click

There are significant issues with the trackpad locking up on click. This is due to the trackpad operating in buggy PS/2 mode.

One alternative is to abandon the trackpad completely and use the trackpoint. Make sure xf86-input-synaptics is not installed - the trackpad will still register button one mouse clicks. Using xbindkeys Xbindkeys and xdotool, right button clicks can be mapped to some other event. For example:

    ~/.xbindkeysrc

    # Emit a right click on Alt + trackpad click
    "xdotool click 3"
      Mod1 + b:1 + Release

#### Tweaking trackpad behavior

The behavior of the trackpad by default can be contrary to your expectations, particularly if you are coming from an OS X style trackpad. The following settings can help significantly:

    /etc/X11/xorg.conf.d/99-x1carbon.conf

    # Copy this to /etc/X11/xorg.conf.d/99-x1carbon.conf
     Section "InputClass"
         Identifier "X1 carbon stuff"
         MatchIsTouchpad "on"
         MatchDevicePath "/dev/input/event*"
         Driver "synaptics"

         # Enable two finger scrolling vertically, disable horizontally
         Option "VertTwoFingerScroll" "1"
         Option "HorizTwoFingerScroll" "0"

         # No scrolling along the edge
         Option "VertEdgeScroll" "0"
         Option "HorizEdgeScroll" "0"

         Option "LockedDrags" "0"
         Option "FingerPress" "1"

         # Turn off the blasted corners as buttons
         Option "RTCornerButton" "0"
         Option "RBCornerButton" "0"
         Option "LTCornerButton" "0"
         Option "LBCornerButton" "0"

         # Ignore "taps" and listen for "clicks"
         Option "TapButton1" "0"
         Option "TapButton2" "0"
         Option "TapButton3" "0"
         Option "ClickFinger1" "1" # Left click one finger
         Option "ClickFinger2" "3" # Right click two fingers
         Option "ClickFinger3" "0" # Three finger click disabled

         Option "TapAndDragGesture" "0"

         # No circular scrolling
         Option "CircularScrolling" "0"
     EndSection

If you are using gnome-shell, you may need to tell the settings app not to overwrite our changes:

    gsettings set org.gnome.settings-daemon.plugins.mouse active false

### Keyboard backlight

Works out of the box. there is a button on the soft keyboard to toggle it between off, low, and high brightness.

### Audio

Sound works out of the box. Uses the snd_hda_intel kernel module.

You may need to add default sound card options to the module.

In /etc/modprobe.d/alsa-base.conf include the following line:

options snd_hda_intel index=1

### Network

#### Wired

There is a small port on the right side for Ethernet. An adaptor is required. In case of loss of the adaptor, the part number is for ordering is 04X6435.

#### Wireless

Works out of the box. The module `iwlwifi` should be automatically loaded by udev.

    $ lspci

    Network controller: Intel Corporation Wireless 7260 (rev 83)

### Display

#### Touchscreen

Works out of the box as single touch. The hardware is multitouch, but current stable drivers only support left-click mouse emulation.

#### GPU

The video card installed is an integrated Intel Haswell GPU. See intel for more info.

#### HiDPI

Since the display has such a high pixel density, you might encounter problems. See here: HiDPI

#### Xbindkeys

For alternative window managers (Fluxbox, etc..), try installing xbindkeys and adding the following to `~/.xbindkeysrc`

    "xbacklight -dec 5"
      XF86MonBrightnessDown
    "xbacklight -inc 5"
      XF86MonBrightnessUp

### KMS

Get KMS working by adding i915 to the modules line

    /etc/mkinitcpio.conf

    MODULES="i915"

Then regenerate your initramfs:

    # mkinitcpio -p linux

### Webcam

Works out of the box.

### Fingerprint Reader

The fingerprint reader is a Validity Sensors model (138a:0017) also used on the Thinkpad X240 and T440. ThinkFinger does NOT support this reader.

This fingerprint reader requires libfprint to be build from the current git (https://github.com/ars3niy/fprint_vfs5011.git ) as yet no stable fprint release supports it.

### WWAN (Mobile broadband)

The SIM-card must be inserted in the back of the laptop.

This is usually a Sierra Wireless EM7345. It uses the cdc_mbim kernel module from kernel 3.14 forward. Since Gnome 3.14.1 it works with NetworkManager after installing modemmanager.

### GPS

This is provided by the Sierra Wireless EM7345. mbim_gpsd is required as well as a udev rule.

Untested

### Bluetooth

Works out of the box after enabling bluetooth.service.

## Other hardware

### Docking

This model comes with a OneLink dock port, next to the power adaptor. Out of the box, it is covered with a rubber cap that can be removed easily. Tested with OneLink Pro dock.

#### Audio

Audio works out of the box, but presents as a separate sound card.

#### Video

The dock has DisplayPort and DVI on the back, and either work, but only one at a time. Second external monitor can still be connected to the mini-DisplayPort directly on the laptop.

#### Other ports

All other ports on the dock work as expected.

Category:

- Lenovo

Hidden categories:

- Pages or sections flagged with Template:Expansion
- Pages or sections flagged with Template:Accuracy