Advertisement
Guest User

Untitled

a guest
Dec 29th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Section "InputClass"
  2.         Identifier "synap touchpad catchall"
  3.         Driver "synaptics"
  4.         MatchIsTouchpad "on"
  5.         MatchDevicePath "/dev/input/event*"
  6.         # Enabling tap-to-click is a perilous choice that begets needing to set up palm detection/ignoring. Since I am fine clicking my touchpad, I sidestep the issue by disabling tapping.
  7.         Option "TapButton1" "0"
  8.         Option "TapButton2" "0"
  9.         Option "TapButton3" "0"
  10.         # Using negative values for ScrollDelta implements natural scroll, a la Macbook default.
  11.         Option "VertScrollDelta" "50"
  12.         Option "HorizScrollDelta" "50"
  13.         # https://wiki.archlinux.org/index.php/Touchpad_Synaptics has a very buried note about this option
  14.         # tl;dr this defines right button to be rightmost 7% and bottommost 5%
  15.         Option "SoftButtonAreas" "93% 0 95% 0 0 0 0 0"
  16.         Option "PalmDetect" "1"
  17. EndSection
  18.  
  19. # This option enables the bottom right corner to be a right button on
  20. # non-synaptics clickpads.
  21. # This option is only interpreted by clickpads.
  22. Section "InputClass"
  23.         Identifier "Default clickpad buttons"
  24.         MatchDriver "synaptics"
  25.         Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
  26.         Option "SecondarySoftButtonAreas" "58% 0 0 8% 42% 58% 0 8%"
  27. EndSection
  28.  
  29. # This option disables software buttons on Apple touchpads.
  30. # This option is only interpreted by clickpads.
  31. Section "InputClass"
  32.         Identifier "Disable clickpad buttons on Apple touchpads"
  33.         MatchProduct "Apple|bcm5974"
  34.         MatchDriver "synaptics"
  35.         Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
  36. EndSection
  37.  
  38. # Quirks for special touchpads
  39.  
  40. # The Cypress touchpads provide BTN_RIGHT in firmware, together with
  41. # clickfinger, and two-finger scrolling. Disable Clickpads, otherwise we
  42. # get flaky button behaviour.
  43. # https://bugs.freedesktop.org/show_bug.cgi?id=70819
  44. # https://bugs.freedesktop.org/show_bug.cgi?id=76341
  45. #
  46. # This really is a kernel issue, as the kernel should simply not report these
  47. # as clickpads. This has been fixed in 3.13.9 and later, this section
  48. # should be removed in the future
  49. Section "InputClass"
  50.         Identifier "Disable clickpad for CyPS/2 Cypress Trackpad"
  51.         MatchProduct "CyPS/2 Cypress Trackpad"
  52.         MatchDriver "synaptics"
  53.         Option "ClickPad" "off"
  54. EndSection
  55.  
  56. # Some devices have the buttons as part of the lower edge of the
  57. # touchpad.  Pressing a button moves the cursor, causing cursor jumps and
  58. # erroneous clicks.
  59. # Use the synaptics area property to work around this, udev labels these
  60. # devices for us as touchpad_button_overlap.
  61. # Affected: Dell Mini
  62. Section "InputClass"
  63.         Identifier "touchpad button overlap"
  64.         MatchIsTouchpad "on"
  65.         MatchTag "touchpad_button_overlap"
  66.         Option "AreaBottomEdge" "4000"
  67. EndSection
  68.  
  69. # Some devices have the buttons on the top of the touchpad. For those, set
  70. # the secondary button area to exactly that.
  71. # Affected: All Haswell Lenovos and *431* models
  72. #
  73. # Note the touchpad_softbutton_top tag is a temporary solution, we're working
  74. # on a more permanent solution upstream (likely adding INPUT_PROP_TOPBUTTONPAD)
  75. Section "InputClass"
  76.         Identifier "Lenovo TrackPoint top software buttons"
  77.         MatchDriver "synaptics"
  78.         MatchTag "touchpad_softbutton_top"
  79.         Option "HasSecondarySoftButtons" "on"
  80. EndSection
  81.  
  82. Section "InputClass"
  83.         Identifier "Lenovo *50 and Carbon 3rd trackpoint buttons"
  84.         MatchDriver "synaptics"
  85.         MatchTag "has_trackpoint_buttons"
  86.         Option "HasTrackpointButtons" "on"
  87. EndSection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement