петък, 3 декември 2010 г.

How to enable tapping on Synaptic Touchpads

Today I discovered I cannot tap on my touchpad. Don't ask how come I didn't realist that earlier, I just didn't.
So, here's the solution as suggested by Sabayon Wiki. It's in Italian, for unknown reasons.
So, it turns out, you need to add few lines to /etc/X11/xorg.conf
Before you proceed, make a backup of xorg.conf, because we all know how easy it is to mess things up.
So
sudo cp xorg.conf xorg.conf.bck
sudo nano xorg.conf
After the end of your Device section, paste the following new section:

Section "InputDevice"
        Identifier "Synaptics Touchpad"
        Driver "synaptics"
        Option "AlwaysCore" "true" # send events to CorePointer
        #Option "Device" "/dev/input/mice"
        Option "Device" "/dev/psaux"
        Option "Protocol" "auto-dev"
        Option "SHMConfig" "false" # configurable at runtime? security risk
        Option "LeftEdge" "1700" # x coord left
        Option "RightEdge" "5300" # x coord right
        Option "TopEdge" "1700" # y coord top
        Option "BottomEdge" "4200" # y coord bottom
        Option "FingerLow" "25" # pressure below this level triggers release
        Option "FingerHigh" "30" # pressure above this level triggers touch
        Option "MaxTapTime" "180" # max time in ms for detecting tap
        Option "VertEdgeScroll" "true" # enable vertical scroll zone
        Option "HorizEdgeScroll" "true" # enable horizontal scroll zone
        Option "CornerCoasting" "true" # enable continuous scroll with finger in corner
        Option "CoastingSpeed" "0.30" # corner coasting speed
        Option "VertScrollDelta" "100" # edge-to-edge scroll distance of the vertical scroll
        Option "HorizScrollDelta" "100" # edge-to-edge scroll distance of the horizontal scroll
        Option "MinSpeed" "0.75" # speed factor for low pointer movement
        Option "MaxSpeed" "4.50" # maximum speed factor for fast pointer movement
        Option "AccelFactor" "0.0020" # acceleration factor for normal pointer movements
        Option "VertTwoFingerScroll" "true" # vertical scroll anywhere with two fingers
        Option "HorizTwoFingerScroll" "true" # horizontal scroll anywhere with two fingers
        Option "EmulateTwoFingerMinZ" "120" # this may vary between different machines
        Option "TapButton1" "1"
        Option "TapButton2" "2"
        Option "TapButton3" "3"
EndSection


Also, add in the section ServerLayout a line, so that it becomes:
Section "ServerLayout"
        ...
        ...
        InputDevice "Synaptics Touchpad" "SendCoreEvents"
EndSection


Save (ctrl+o) and exit (ctrl+x).
You'll need to restart xorg.conf in order for the changes to take effect. To do that use your favorite way to restart X or simply Reboot. If something's not working, just use your old xorg.conf. Also, take a look in the example xorg.conf in the source page to make sure that you pasted the lines on the right place.

Няма коментари:

Публикуване на коментар