Difference between revisions of "Lenovo ThinkPad T420"

From ArchWiki
Jump to: navigation, search
(Fans)
Line 97: Line 97:
  
 
Adjust to your own needs. Read [[Touchpad_Synaptics]] for more information.
 
Adjust to your own needs. Read [[Touchpad_Synaptics]] for more information.
 +
 +
=== NVIDIA Optimus ===
 +
[[Bumblebee|Bumblebee]] works as intended on models with NVIDIA Optimus
 +
 +
=== Optional kernel boot arguments ===
 +
Using the following kernel boot parameters [[http://www.phoronix.com/scan.php?page=article&item=intel_i915_power&num=1| drastically reduces battery drain]]:
 +
{{hc||<nowiki>
 +
pcie_aspm=force
 +
i915.i915_enable_rc6=1
 +
i915.i915_enable_fbc=1
 +
i915.lvds_downclock=1
 +
</nowiki>}}
 +
  
 
== Troubleshoots ==
 
== Troubleshoots ==

Revision as of 10:30, 5 March 2012

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Lenovo ThinkPad T420#)

This article covers the installation and configuration of Arch Linux on a Lenovo T420 laptop.

Installation

This laptop supports UEFI as well as the traditional BIOS.

There are no issues with installing Arch Linux with the latest Archiso.

The rest of the installation process can be followed with the official install guide.

Hardware

All hardware not listed below works out-of-the-box.

Webcam

The integrated webcam uses the uvcvideo module which should load automatically. If not, add it to the MODULES array in /etc/rc.conf.

FingerPrint Reader

FingerPrint reader works great with fprint and PAM (installation of fingerprint-gui recommended).

See Fprint#Setup_fingerprint-gui for more information.

Untested

  • eSATA
  • Firewire

Laptop Settings

ACPI

ACPI is well supported here. No obvious troubleshoots.

Tp_smapi

Unfortunately, tp_smapi is only partially supported on the Thinkpad T420. A number of features work since version 0.41. For example, the hard drive protection mechanism HDAPS now works well. See the linked wiki entry.

Some features like setting the starting threshold for charging the battery do not yet work. To control the battery charging thresholds, install the Perl script tpacpi-batAUR from the AUR.

Insert the acpi_call kernel module by running

modprobe acpi_call

or by adding it to the MODULES array in /etc/rc.conf.

Manually set the thresholds by calling

perl /usr/lib/perl5/vendor_perl/tpacpi-bat -v startChargeThreshold 0 40
perl /usr/lib/perl5/vendor_perl/tpacpi-bat -v stopChargeThreshold 0 80

The example values 40 and 80 given here are in percent of the full battery capacity. Adjust them to your own needs. You may also want to add these lines to /etc/rc.local to set them at startup. While these values should be permanent, they will be reset any time the battery is removed.

Also, if you are dual booting with Windows, you can still control the battery charging thresholds with Lenovo's Power Manager which communicates directly to the battery controller.

CPU Frequency Scaling

CPU frequency scaling is fully supported with all of the available processor models with this laptop.

Fans

The thinkpad_acpi kernel module needs to be configured so user space programs can control the fan speed.

/etc/modprobe.d/modprobe.conf
options thinkpad_acpi fan_control=1

The thinkfan configuration file also needs to know how to set the fan speed. Replace the default sensor settings with the following.

/etc/thinkfan.conf
sensor /sys/devices/virtual/thermal/thermal_zone0/temp

You can add or remove services by editing the DAEMONS array in your /etc/rc.conf file. It will initially look something like this:

DAEMONS=(...@thinkfan...)

Laptop Mode Tools

No significant issues were found using Laptop Mode Tools.

PM-Utils

Suspending and hibernating with pm-utils works as intended.

Synaptics

TouchPad and TrackPoint do work out of the box, but the TouchPad is way too sensitive (i.e. fast) to be usable, since it is recognized as a mouse. To fix this, install the xf86-input-synaptics package and add the following two files to your /etc/X11/xorg.conf.d/ directory:

50-thinkpad-trackpoint.conf
 Section "InputClass"
        Identifier      "ThinkPad TrackPoint"
        MatchProduct    "TPPS/2 IBM TrackPoint"
        MatchDevicePath "/dev/input/event*"
        Option          "EmulateWheel"          "true"
        Option          "EmulateWheelButton"    "2"
        Option          "XAxisMapping"          "6 7"
        Option          "YAxisMapping"          "4 5"
 EndSection
50-twofingerscroll.conf
 Section "InputClass"
        Identifier      "two finger scrolling"
        Driver          "synaptics"
        MatchProduct    "SynPS/2 Synaptics TouchPad"
        MatchDevicePath "/dev/input/event*"
        Option          "VertTwoFingerScroll"   "on"
        Option          "HorizTwoFingerScroll"  "on"
        Option          "EmulateTwoFingerMinW"  "8"
        Option          "EmulateTwoFingerMinZ"  "40"
        Option          "TapButton1"            "1"
 EndSection

Adjust to your own needs. Read Touchpad_Synaptics for more information.

NVIDIA Optimus

Bumblebee works as intended on models with NVIDIA Optimus

Optional kernel boot arguments

Using the following kernel boot parameters [drastically reduces battery drain]:


pcie_aspm=force
i915.i915_enable_rc6=1
i915.i915_enable_fbc=1
i915.lvds_downclock=1 


Troubleshoots

Media Keys

Media keys that work out of the box:

  • Wireless On/Off
  • Backlight Brightness settings
  • Thinklight
  • Mute

You must find a workaround and bind the keys yourself for the rest of them.

Rebind Forward and Back keys

Keys forward and back (next to cursor keys) can be easily remapped to PageDown/PageUp.

Install xmodmap with the package xorg-server-utils

Create a ~/.Xmodmap file with content:

keysym XF86Back = Page_Up
keysym XF86Forward = Page_Down

Add this line to your ~/.xinitrc to make it work:

xmodmap ~/.Xmodmap

You can also re-map AudioPrev (Template:Keypress) and AudioNext (Template:Keypress) to Home/End:

keysym XF86AudioNext = End
keysym XF86AudioPrev = Home
Note: You have to log out for the changes to take effect.
Note: The keys should work out of the box, at least on KDE.

Shutdown on Battery

One user has reported that his T420 was rebooting on shutdown on battery power. This was fixed by disabling the module ehci_hcd. See Kernel_modules#Blacklisting for more information.

Hang on Reboot

This is a problem on many laptops and can be fixed by blacklisting the e1000e kernel module.

No Backlight Controls

One user has reported that the brightness controls (fn+home, fn+end) did not work in some desktop environments. This could be fixed by adding the following kernel options:

acpi_backlight=vendor acpi_osi=Linux

See also