It:Enable tapping on Synaptic Touchpads

From Sabayon Wiki
Jump to: navigation, search
Stop.png
Attenzione prestare molta cura a come si modifica il file xorg.conf e, possibilmente, farne prima una copia di backup, una modifica errata o un errore potrebbe impedire l'avvio del server X (e quindi dell'interfaccia grafica)!

Abilitare il tapping sui touchpad Synaptic

Per abilitare il tapping è sufficiente editare il file /etc/xorg.conf.

 
su
nano /etc/X11/xorg.conf
 

Sul terminale apriranno il file con l'editor. Per salvare il file una volta modificato utilizzare Control+O, per uscire Control+X.

Le modifiche da effettuare sono due. Anzi tutto va aggiunta una sezione di tipo "InputDevice":

 
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

Quindi va modificata la sezione ServerLayout aggiungendo la riga che consente di caricare questo device, senza ovviamente cancellare quelle già presenti:

 
Section "ServerLayout"
        ...
        ...
        InputDevice "Synaptics Touchpad" "SendCoreEvents"
EndSection

Allego di seguito il mio file xorg.conf, che mi consente l'uso del tapping su un portatile ACER 5920G.

File: xorg.conf
Section "Module"
    SubSection  "extmod"
       Option    "omit xfree86-dga"
    EndSubSection
    Load    "i2c"
    Load    "ddc"
    Load    "vbe"
    Load    "dri"
    Load    "glx"
    Load    "synaptics"
EndSection

Section "ServerFlags"
     Option    "AllowMouseOpenFail"    "true"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    VertRefresh    43 - 60
    HorizSync      28 - 80
EndSection


Section "Device"

    Identifier  "SabayonVga0"
    Driver      "nvidia"
    #BusID    "PCI:01:00"
    #Option "RenderAccel" "on"
    #Option "XAANoOffscreenPixmaps"
    #Option "BusType" "PCI"
    #Option "ColorTiling" "on"
    #Option "EnablePageFlip" "on"
    Option "UseEvents" "True"
    Option "LogoPath" "/usr/share/backgrounds/sabayonlinux-nvidia.png"
    Option "NoLogo" "true"
    Option "CursorShadow" "true"
EndSection

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

Section "Screen"

    Identifier    "Screen 0"
    Device        "SabayonVga0"
    Monitor       "Generic Monitor"
    Option       "AddARGBGLXVisuals" "true"

    DefaultDepth 24

    SubSection "Display"
        Depth           8
        ViewPort        0 0
        #Modes          "1024x768" "800x600" "640x480"
    EndSubsection

    SubSection "Display"
        Depth           16
        ViewPort        0 0
        #Modes          "1024x768" "800x600" "640x480"
    EndSubsection

    SubSection "Display"
        Depth           24
        ViewPort        0 0
        #Modes          "1024x768" "800x600" "640x480"
    EndSubsection

EndSection


Section "DRI"
    Mode 0666
EndSection

Section "ServerLayout"
    Identifier   "Main Layout"
    Screen 0    "Screen 0"
    InputDevice "Synaptics Touchpad" "SendCoreEvents"
EndSection

Section "Extensions"
   #Option "Composite" "Enable"
EndSection