How to disable/enable touchpad in Ubuntu

tipsThere is a simple way to disable/enable your laptop's touchpad in Ubuntu without removing synaptics driver,so when you want to enable your touchpad ,you no need to re-install the driver:

Edit your xorg.conf file: sudo gedit /etc/X11/xorg.conf ,then add a line: Option "SHMConfig" "on" below Section  "InputDevice" as below :

Section "InputDevice"

Identifier "Synaptics Touchpad"

Driver "synaptics"

Option "SendCoreEvents" "true"

Option "Device" "/dev/psaux"

Option "Protocol" "auto-dev"

Option "HorizEdgeScroll" "0"

Option "SHMConfig" "on"

SHMConfig on indicates that configuration permission for touchpad 's parameters has been started,you can already use below commands to control your touchpad:

command:synclient touchpadoff=1 --disable touchpad

command:synclient touchpadoff=0 --enable touchpad

hhaa,my touchpad was disabled:

ubuntu-touchpad1

:),my touchpad was enabled again:

ubuntu-touchpad21

Creative Commons License
linuxine.com's blog posts is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License