tux-debianwww.palmix.orgtux-debian


  HOME  GUIDE  ARTICOLI  DOWNLOADS  LINKS ENGLISH

 
ABILITARE IL MULTITOUCH SUL TOUCHPAD (SYNAPTIC)
by Francesco Palmisano

touchpad

Recentemente Synapitc ha rilasicato dei driver per Linux in grado si supportare il mutlitouch sui pad dei notebook.
In sostanza si tratta (per alcuni modelli di touchpad) di poter utilizzare una, due o tre dita per eseguire comandi differenti su un touchpad...similmente a ciò che accade sui pad Apple.

N.B. Non tutti i touchpad , anche se prodotti da Synaptic, supportano il multitouch!

Procediamo:

inazitutto apportiamo una piccola modifica (da root) al file /etc/X11/xorg.conf ; andate alla sezione "InputDevice" ed aggiungete la seguente riga:

    Option         "SHMConfig" "on"

in modo da ottenere qualcosa di simile a questo:

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "synaptics"
    Option         "SendCoreEvents" "true"
    Option         "Protocol" "auto-dev"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "HorizScrollDelta" "0"
    Option         "SHMConfig" "on"
EndSection

salvate e chiudete il file (ovviamente il tutto con i permessi di root).

Create (sempre da root) il file /etc/hal/fdi/policy/11-x11-synaptics.fdi con il seguente contenuto:

?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
 <device>
   <match key="info.capabilities" contains="input.touchpad">
       <merge key="input.x11_driver" type="string">synaptics</merge>
       <merge key="input.x11_options.SHMConfig" type="string">On</merge>
       <merge key="input.x11_options.VertEdgeScroll" type="string">On</merge>
       <merge key="input.x11_options.EmulateTwoFingerMinZ" type="string">40</merge>
       <merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>
       <merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge>
       <merge key="input.x11_options.TapButton1" type="string">1</merge>
       <merge key="input.x11_options.TapButton2" type="string">3</merge>
       <merge key="input.x11_options.TapButton3" type="string">2</merge>
       <merge key="input.x11_options.RTCornerButton" type="string">3</merge>
        <merge key="input.x11_options.RBCornerButton" type="string">2</merge>
   </match>
 </device>
</deviceinfo>

ora assicuriamoci di poter usare la shared memory con synclient ed editiamo /etc/fstab aggiungendo la seguente riga (o verificandone la presenza):

tmpfs /dev/shm tmpfs defaults 0 0

Fatto! Ora non vi resta che riavviare il server X con i tasti Ctrl+Alt+Backspace.
Aprite quindi una console (shell) e date il seguente comando:

synclient -m 100

dovreste ottenere un output simile al seguente:

     time       x    y         z f  w  l r u d m     multi  gl gm gr gdx gdy
       0.000     1 5855   0 0  0  0 0 0 0 0  00000000   0  0  0   0   0
   1.402  3431 2988  53 1  4  0 0 0 0 0  00000000   0  0  0   0   0
   1.503  3675 2656  56 1  4  0 0 0 0 0  00000000   0  0  0   0   0
   1.603  3704 2709  63 1  4  0 0 0 0 0  00000000   0  0  0   0   0
   1.703  3717 2707  63 1  4  0 0 0 0 0  00000000   0  0  0   0   0
   1.803  3714 2706  65 2  4  0 0 0 0 0  00000000   0  0  0   0   0
   1.903     1 5855       2 1  5  0 0 0 0 0  00000000   0  0  0   0   0
   2.004     1 5855       0 0  0  0 0 0 0 0  00000000   0  0  0   0   0
   2.104     1 5855       1 1  5  0 0 0 0 0  00000000   0  0  0   0   0
   2.404     1 5855       0 0  0  0 0 0 0 0  00000000   0  0  0   0   0
   2.605     1 5855       1 1  5  0 0 0 0 0  00000000   0  0  0   0   0
   2.705     1 5855       0 0  0  0 0 0 0 0  00000000   0  0  0   0   0

Toccando con le dita il tpuchpad l'output aumenterà, controllate la colonna f (che ho evidenziato in rosso sopra), tale colonna indica con quante dita state toccando il touchpad.
Tale operazione vi consete di capire se il vostro touchpad supporta il multitouch oppure no.



torna ad inizio pagina - torna alle guide