Configurazione dinamica

È possibile agire sulla configurazione del touchpad anche dinamicamente, ad esempio per effettuare test o per evocare configurazioni differenti in base all'utente. I comandi disponibili a cui fare riferimento sono:

Esistono anche tool grafici che non ho mai testato (GPointing Device Settings).

Elenco caratteristiche pad

   1 $ xinput -list
   2 $ xinput list-props "ETPS/2 Elantech Touchpad" | grep Capabilities
   3   Synaptics Capabilities (294):   1, 0, 1, 1, 1, 1, 1

Dove in ordine:

Impostazione caratteristiche

   1 $ xinput --set-prop 'SynPS/2 Synaptics TouchPad' "Synaptics Two-Finger Scrolling" 1 1
   2 synclient CircularScrolling=1

(Entrambi i metodi sono equivalenti)

Oppure (per abilitare il click al tocco):

xinput set-int-prop "ETPS/2 Elantech Touchpad" "Synaptics Tap Action" 8 0 0 0 0 1 3 2

Configurazione statica

File di esempio in /etc/X11/xorg.conf.d/50-synaptics.conf (vedi esempio in /usr/share/X11/xorg.conf.d):

   1 #  Additional options may be added in the form of
   2 #    Option "OptionName" "value"
   3 # 
   4 Section "InputClass"
   5   Identifier "touchpad catchall"
   6   Driver "synaptics"
   7   MatchIsTouchpad "on"
   8 # This option is recommend on all Linux systems using evdev, but cannot be
   9 # enabled by default. See the following link for details:
  10 # http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
  11         MatchDevicePath "/dev/input/event*"
  12         Option "SHMConfig" "On"
  13         Option "TapButton1" "1"
  14 #       TapButton2=2
  15 #       TapButton3=3
  16 EndSection
  17 
  18 Section "InputClass"
  19   Identifier "touchpad ignore duplicates"
  20   MatchIsTouchpad "on"
  21   MatchOS "Linux"
  22   MatchDevicePath "/dev/input/mouse*"
  23   Option "Ignore" "on"
  24 EndSection
  25 
  26 # This option enables the bottom right corner to be a right button on
  27 # non-synaptics clickpads.
  28 # This option is only interpreted by clickpads.
  29 Section "InputClass"
  30   Identifier "Default clickpad buttons"
  31   MatchDriver "synaptics"
  32   Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
  33 EndSection
  34 
  35 # This option disables software buttons on Apple touchpads.
  36 # This option is only interpreted by clickpads.
  37 Section "InputClass"
  38   Identifier "Disable clickpad buttons on Apple touchpads"
  39   MatchProduct "Apple|bcm5974"
  40   MatchDriver "synaptics"
  41   Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
  42 EndSection

Sitografia

MyWiki: Server X/Touchpad (last edited 2015-10-07 22:37:36 by risca)