Difference between revisions of "Lenovo ThinkPad X220"

From ArchWiki
Jump to: navigation, search
(update Pkg/AUR templates)
(Tag: wiki-scripts)
 
(36 intermediate revisions by 17 users not shown)
Line 1: Line 1:
 
[[Category:Lenovo]]
 
[[Category:Lenovo]]
{{Stub}}
+
[[ja:Lenovo ThinkPad X220]]
 +
The Lenovo ThinkPad X220 is a small-form-factor laptop with Intel Mobile i5/i7 CPU, and Intel graphics. It has no optical drive. You can see full specs at [http://www.thinkwiki.org/wiki/Category:X220 ThinkWiki].
  
 
== Setup ==
 
== Setup ==
 +
=== Battery ===
 +
Battery functions like charging thresholds can be controlled using the script {{Pkg|tpacpi-bat}} together with the kernel module {{AUR|acpi_call-git}}{{Broken package link|{{aur-mirror|acpi_call-git}}}}. The [[TLP]] power saving tool supports using acpi_call as backend for setting the thresholds as well.
 +
 +
=== Fingerprint reader ===
 +
The Upek fingerprint reader is supported by [[Fingerprint-gui]].
 +
 
=== Graphics ===
 
=== Graphics ===
The graphic card is supported by the xf86-video-intel driver package from the extra repository. The Xorg server makes use of this automatically. There's no need for a Xorg configuration file.
+
The graphics driver is provided by the {{pkg|xf86-video-intel}} package from the [[Official repositories]].
pacman -S xf86-video-intel
 
 
 
== Configuration ==
 
  
=== Heat issues ===
+
=== Trackpoint and Clickpad ===
  
According to a [https://bbs.archlinux.org/viewtopic.php?pid=1030495#p1030495 forum post] you should set some power saving options in '''/etc/modprobe.d/modprobe.conf''' or add them to your ''kernel'' line in your '''menu.lst'''. We use rc6=7 for deepest sleep mode.
+
See [[TrackPoint]].
options i915 modeset=1
 
options i915 i915_enable_rc6=7
 
options i915 i915_enable_fbc=1
 
options i915 lvds_downclock=1
 
  
As well you could suffer of [https://bbs.archlinux.org/viewtopic.php?id=150743 Kernel Power Regressions].
+
== Issues ==
 +
=== Boot fails (UEFI/GPT)===
 +
The laptop can not boot from a [[GPT]] disk in {{ic|Legacy BIOS}} mode, it is necessary to either switch to {{ic|UEFI}} booting or create a [[Partitioning#Master_Boot_Record|MBR Partition Table]].
  
=== My laptop gets stuck in a reboot loop if I resume from suspend! Help! ===
+
Additional considerations from ThinkWiki:
 +
* The X220 cannot/will not boot GPT disks using {{ic|Legacy BIOS}}, you must setup {{ic|UEFI}}.
 +
* The X220 will not boot {{ic|/efi/*/*.efi}} unless ''signed(?)'' into BIOS, you have to copy it to {{ic|/efi/boot/bootx64.efi}}.
 +
* Disabling the BIOS setting {{ic|USB UEFI BIOS Support}} disables '''all''' USB booting, ie, both {{ic|UEFI}} and {{ic|Legacy BIOS}}.
  
This can be caused by the EFI storage getting too full. Run the following commands as root to free up some space -
+
=== Reboot loop after resume from suspend ===
 +
This can be caused by the EFI storage getting too full. Run the following commands as root to free up some space.
  
 
   # First clear the pstore
 
   # First clear the pstore
Line 34: Line 40:
  
 
This information was taken from [http://forums.lenovo.com/t5/X-Series-ThinkPad-Laptops/x220-does-not-resume-from-sleep/m-p/1083233/highlight/false#M48825 the Lenovo forums]
 
This information was taken from [http://forums.lenovo.com/t5/X-Series-ThinkPad-Laptops/x220-does-not-resume-from-sleep/m-p/1083233/highlight/false#M48825 the Lenovo forums]
 +
 +
=== Microphone ===
 +
 +
The x220 internal microphone has been the source of many complaints across platforms. Specifically, it can generate a lot of static or hissing on top of any recorded audio. The workaround is to mute the right mic input channel (in audio control programs that allow independent channel setting) or to drag the balance slider in a GUI for the internal mic level fully to the left.
 +
 +
Note also that the audio jack is a combination headset/mic jack and will work with modern smartphone headsets with inline microphones, as an alternative.
 +
 +
=== Multi-monitor setups with X ===
 +
Some window managers, such as [[qtile]] or [[awesome]] don't seem to get along with the {{ic|sna}} acceleration method of the [[intel]] driver, which results in tiled and broken display of the environments, when using a multi-monitor setup (using internal monitor only, works just fine).
 +
 +
[[Intel_graphics#SNA_issues|Switching to uxa]] fixes this [https://bbs.archlinux.org/viewtopic.php?pid=1706248#p1706248].
 +
 +
It seems, that this issue does not occur in other desktop environments, such as [[Xfce]], however.
 +
 +
=== Backlight ===
 +
 +
Since {{ic|linux 3.16}}, some backlight-related kernel parameter defaults have been changed, causing the hardware brightness up/down keys to no longer function automatically. This can be worked around by setting {{ic|acpi_osi}}, e.g.
 +
  acpi_osi="!Windows 2012"
 +
in the [[kernel parameters]]. More details can be found on [[Backlight#Kernel_command-line_options|the Backlight page]].
  
 
==See also==
 
==See also==
Line 42: Line 67:
 
* [https://bbs.archlinux.org/viewtopic.php?id=129885 "Arch By Hand" UEFI GPT SSD LUKS Install Script], built on an x220 tablet with an SSD.
 
* [https://bbs.archlinux.org/viewtopic.php?id=129885 "Arch By Hand" UEFI GPT SSD LUKS Install Script], built on an x220 tablet with an SSD.
 
* [http://forum.notebookreview.com/lenovo-ibm/575569-linux-x220-29.html#post8075286 Power saving options for the X220 - Notebook Review Forum]
 
* [http://forum.notebookreview.com/lenovo-ibm/575569-linux-x220-29.html#post8075286 Power saving options for the X220 - Notebook Review Forum]
 +
* {{aur|thinkpad-scripts}} for ThinkPad X220 Tablet rotation, docking, etc scripts

Latest revision as of 08:17, 3 June 2017

The Lenovo ThinkPad X220 is a small-form-factor laptop with Intel Mobile i5/i7 CPU, and Intel graphics. It has no optical drive. You can see full specs at ThinkWiki.

Setup

Battery

Battery functions like charging thresholds can be controlled using the script tpacpi-bat together with the kernel module acpi_call-gitAUR[broken link: archived in aur-mirror]. The TLP power saving tool supports using acpi_call as backend for setting the thresholds as well.

Fingerprint reader

The Upek fingerprint reader is supported by Fingerprint-gui.

Graphics

The graphics driver is provided by the xf86-video-intel package from the Official repositories.

Trackpoint and Clickpad

See TrackPoint.

Issues

Boot fails (UEFI/GPT)

The laptop can not boot from a GPT disk in Legacy BIOS mode, it is necessary to either switch to UEFI booting or create a MBR Partition Table.

Additional considerations from ThinkWiki:

  • The X220 cannot/will not boot GPT disks using Legacy BIOS, you must setup UEFI.
  • The X220 will not boot /efi/*/*.efi unless signed(?) into BIOS, you have to copy it to /efi/boot/bootx64.efi.
  • Disabling the BIOS setting USB UEFI BIOS Support disables all USB booting, ie, both UEFI and Legacy BIOS.

Reboot loop after resume from suspend

This can be caused by the EFI storage getting too full. Run the following commands as root to free up some space.

 # First clear the pstore
 mkdir -p /dev/pstore
 mount -t pstore pstore /dev/pstore
 ls /dev/pstore # <- Nothing important should be here, but check first anyway
 rm /dev/pstore/*
 # Next some EFI variables. These are used/created by pstore, but I've had them even though 
 #I deleted the pstore data using the above commands. YMMV.
 rm /sys/firmware/efi/efivars/dump-type0-*

This information was taken from the Lenovo forums

Microphone

The x220 internal microphone has been the source of many complaints across platforms. Specifically, it can generate a lot of static or hissing on top of any recorded audio. The workaround is to mute the right mic input channel (in audio control programs that allow independent channel setting) or to drag the balance slider in a GUI for the internal mic level fully to the left.

Note also that the audio jack is a combination headset/mic jack and will work with modern smartphone headsets with inline microphones, as an alternative.

Multi-monitor setups with X

Some window managers, such as qtile or awesome don't seem to get along with the sna acceleration method of the intel driver, which results in tiled and broken display of the environments, when using a multi-monitor setup (using internal monitor only, works just fine).

Switching to uxa fixes this [1].

It seems, that this issue does not occur in other desktop environments, such as Xfce, however.

Backlight

Since linux 3.16, some backlight-related kernel parameter defaults have been changed, causing the hardware brightness up/down keys to no longer function automatically. This can be worked around by setting acpi_osi, e.g.

 acpi_osi="!Windows 2012"

in the kernel parameters. More details can be found on the Backlight page.

See also