tux-debianwww.palmix.orgtux-debian


  HOME  TUTORIALS  ARTICLES  DOWNLOADS  LINKS  ITALIANO

 
DISABILE AND ENABLE TOUCHPAD WITH LINUX
by Francesco Palmisano

   touch  


Some notebook (as Vaio FZ) don't have a key or a botton to swich on/off the touchpad.
But, with Linux, you can do it anyway!

Lest's see:

First you need to change the file /etc/X11/xorg.conf ; go to "InputDevice" and add:

    Option         "SHMConfig" "on"

like this:

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

save and close the file (as root).

Open a new text file with a text editor an write:

#!/bin/bash
synclient TouchpadOff=0

close and save as touch_on.sh

Open a second new text file with a text editor an write:

#!/bin/bash
synclient TouchpadOff=1

close and save as touch_off.sh

Now give the executable right to the files with:

chmod a+x
 touch_on.sh
chmod a+x  touch_off.sh

Done! Restart the X server with Ctrl+Alt+Backspace.
Now you can use the scripts to disable/enable your touchpad.


Back on topBack to tutorials