Skip to content

Instantly share code, notes, and snippets.

@lholden
Created April 14, 2012 06:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lholden/2382480 to your computer and use it in GitHub Desktop.
Save lholden/2382480 to your computer and use it in GitHub Desktop.
Samsung Series 9 ClickPad
Section "InputClass"
Identifier "np900x4b clickpad"
MatchIsTouchpad "on"
Driver "synaptics"
# Enable the clickpad and set click actions
Option "ClickPad" "1"
Option "ClickFinger1" "1"
Option "ClickFinger2" "1"
Option "ClickFinger3" "1"
Option "SoftButtonAreas" "1950 0 1900 0 0 0 0 0"
Option "TapAndDragGesture" "0"
# Pressure required to move the cursor
Option "FingerHigh" "15"
Option "FingerLow" "15"
# Allow a bit of error before the cursor moves.
Option "HorizHysteresis" "17"
Option "VertHysteresis" "17"
# Mouse speed
Option "MinSpeed" "1"
Option "MaxSpeed" "5"
Option "AccelFactor" "0.05"
# Two Finger scroll speed
Option "VertScrollDelta" "30"
Option "HorizScrollDelta" "30"
# Enable palm detection and set palm senstitivity
Option "PalmDetect" "1"
Option "PalmMinWidth" "5"
Option "PalmMinZ" "40"
EndSection
@lholden
Copy link
Author

lholden commented Jul 26, 2012

Hi there!

Super glad that your clickpad is working better now :D I'm finding that it works better in Linux now then it does in Windows!

SoftButtonAreas defines the locations that the right and middle buttons exist on the clickpad.

If you run:
synclient | grep -i edge
The numbers you will care about most are the RightEdge, and BottomEdge. You can use these numbers to figure out about where the right click should start and end. (I usually define it closer to the right side as I end up accidently right clicking a lot otherwise!)

The numbers for SoftButtonAreas go like this:
RightButtonLeft RightButtonRight RightButtonTop RightButtonBottom MiddleButtonLeft MiddleButtonRight MiddleButtonTop MiddleButtonBottom

if you use a value of 0, it generally means "the max value". So in this case, RightButtonRight would be all the way to the right on my clickpad.

If you just want to adjust the location of the right click, then you could adjust the first and third numbers to be some fraction of the edge values from above.

The all 0s for middle button means that it's not defined at all. You are welcome to define those too if you would like middle click to work.

TapAndDragGesture is for using literal finger taps (vs a click) for dragging. I like to disable all of the tap stuff just as a sanity check... though it's not likely needed at all.

You can find tons of information on the configuration options by doing:

man synaptics

Hope this has helped!

@helgatheviking
Copy link

thanks lori! definitely helps alot, i'll have to play with it. this is the first bit of code that got my notebook working in linux so i'm much closer to being able to abandon windows entirely now. you should share this around on the ubuntu/mint forums b/c there are a lot of people looking for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment