Monday, May 19, 2014

Trackpad Lenovo Thinkpad X1 Carbon w/Linux

I just got a new Thinkpad X1 Carbon and wiped Windows in order to install Arch Linux. The trackpad did not work at all out of the box. The only thing that worked was left click (I was not even able to move the mouse with the trackpad; mouse pointer worked, though).

With the help of http://who-t.blogspot.com.au/2014/03/xorg-synaptics-support-for-lenovo-t440.html and http://major.io/2012/12/28/handy-settings-for-the-touchpadclickpad-in-the-lenovo-x1-carbon/ I was able to generate an appropriate config file that allows for two-finger scrolling, as well as left and right click and mouse pointer navigation using the trackpad. The middle button (necessary for mouse pointer scrolling) is still not working. With two-finger scrolling, I do not need any middle button scrolling, though.

config file (90-synaptics-clickpad.conf):
Section "InputClass"
        # from http://who-t.blogspot.com.au/2014/03/xorg-synaptics-sup...
        Identifier                        "ClickPad"
        MatchDriver                       "synaptics"
        Option "HasSecondarySoftButtons"  "on"
        # SoftButtonAreas: right-lrtb middle-lrtb; 0 0 0 0 ...
        Option "SoftButtonAreas"          "50% 0 80% 0 0 0 0 0"
        Option "SecondarySoftButtonAreas" "60% 0 0 10% 40% 60% 0 10%"
        Option "AreaTopEdge"              "10%"
        Option "AreaBottomEdge"           "80%"

        # from http://major.io/2012/12/28/handy-settings-for-the-t...
        Option "TapButton1" "1"
        Option "TapButton2" "3"
        Option "TapButton3" "2"
 Option "VertTwoFingerScroll" "on"
 Option "HorizTwoFingerScroll" "on"
 Option "HorizHysteresis" "50"
 Option "VertHysteresis" "50"
EndSection

In order to install my 90-synaptics-clickpad.conf, just replace root_files (cf github repository direcotry structure) with the root directory "/".

1 comment:

  1. Were you able to completely disable touch detection in the SoftButtonAreas? If I have my thumb resting on the soft buttons at the top of the trackpad so I can press down to click, synaptics doesn't register movements on the remainder of the trackpad. I'm assuming it's trying to recognize a multi-touch gesture. Any ideas?

    ReplyDelete