(i) We have connected a USB mouse, so we do not want to use touchpad for now.
(ii) While typing, there is no use of touchpad, if touchpad is too sensitive, the cursor keeps on jumping due to slight touch of palm or finger.
I have written a script to disable/enable touchpad (which is using synaptics driver).
## Disable touchpad if USB Mouse is attached
if [[ "$SYNAPTICS" == "" ]]
echo "$0: please install synaptics touchpad driver."
echo "Also make sure that 'Option \"SHMConfig\" \"on\"'"
echo " is added in Touchpad device Section in /etc/X11/xorg.conf"
USB_mouse_present=`grep -ic "usb.*mouse" /proc/bus/input/devices`
# if no USB Mouse; enable touchpad
if [ $USB_mouse_present -eq 0 ]
# if any parameter [on|off] is given, override previous command
if [ $# -ge 1 ]
if [ "$1" = "on" ]
Turn on touchpad
$ ./touchpad.sh on
Turn off touchpad
$ ./touchpad.sh off
If we have plugged USB mouse, then just give following command
On removing USB mouse, give following, the touchpad will be enabled automatically. :)
PS: The configuration for synaptics driver can be referred from here or here.