Skip to content

Instantly share code, notes, and snippets.

@eleloya23
Created April 9, 2014 21:40
Show Gist options
  • Save eleloya23/10320210 to your computer and use it in GitHub Desktop.
Save eleloya23/10320210 to your computer and use it in GitHub Desktop.
Fixes Lenovo Thinkpad Yoga S1 weird touchpad issues.
# The default mouse/touchpad configuration for some thinkpads and ideapads is very buggy.
#
# The pointer jump's when clicking
# Pointer movement is very jerky
# The touchpad is very sensitve
# This configuration file attemps to fix it.
# My laptop is: Lenovo Thinkpad Yoga
# My OS: Ubuntu 12.04 precise
# Save this under: /usr/share/X11/xorg.conf.d/lenovo.conf
Section "InputClass"
Identifier "InputClass"
Driver "synaptics"
MatchIsTouchpad "on"
#Map N-fingers touch gesture to specific mouse button
# 1 touch = Left Click
# 2 touchs = Right Click
# 3 touchs = Middle button
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
# Set to 0 means it will stop dragging when you release the finger from the touchpad
# Set to 1 menas it will not stop dragging until you tap the touchpad.
Option "LockedDrags" "0"
# Accurate Tap-To-Click
Option "FingerLow" "35"
Option "FingerHigh" "45"
# prevents too many intentional clicks
Option "PalmDetect" "0"
#Scrolling configuration
Option "VertEdgeScroll" "off"
Option "VertTwoFingerScroll" "on"
Option "HorizEdgeScroll" "off"
Option "HorizTwoFingerScroll" "on"
#By setting minspeed and maxspeed to the same value it disables acceleartion
Option "MinSpeed" "1"
Option "MaxSpeed" "1"
#Touchpad Areas
Option "LeftEdge" "1768"
Option "RightEdge" "5406"
Option "TopEdge" "1640"
Option "BottomEdge" "4498"
#Problem: The mouse pointer jumps when clicking
#Solution: Disables movement for the bottom part of the touchpad (the clicking area)
Option "AreaLeftEdge" "0"
Option "AreaRightEdge" "0"
Option "AreaTopEdge" "0"
Option "AreaBottomEdge" "4100"
# This fixes jerky/jumpy mouse movement
# Bug reference: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/1042069
Option "VertResolution" "100"
Option "HorizResolution" "65"
Option "AccelerationProfile" "2"
Option "ConstantDeceleration" "16"
Option "AdaptiveDeceleration" "16"
Option "VelocityScale" "256"
#some of the comments said this helps. Although it didn't help in my case.
#noise cancellation
#Option "HorizHysteresis" "50"
#Option "VertHysteresis" "50"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment