1

Topic: Disable touchpad when usb mouse is plugged in

It is a bit annoying to have to keep your hands propped up, because you don't want to brush your touchpad when you have a mouse installed. Well, the following are really simple steps to automatically disable the touchpad when a mouse is detected:

1. Create a rule in udev:
*Note: This step requires root privileges, if you don't understand what root privileges are, you probably shouldn't be doing this.

vi /etc/udev/rules.d/10-local.rules

*Note: Substitute whatever editor you prefer for vi.

2. Insert the following:

ACTION=="add", SUBSYSTEM=="input", ID_CLASS="mouse", RUN+="/usr/bin/synclient TouchpadOff=1"
ACTION=="remove", SUBSYSTEM=="input", ID_CLASS="mouse", RUN+="/home/todd/.scripts/mouse-touchpad-toggle-on"

3. Restart your X session.

ctrl + alt + bkspc

or if you do not have "zap" enabled in your xorg.conf, simply reboot from your menu or:

*Note: This step requires root privileges, if you don't understand what root privileges are, you probably shouldn't be doing this.

reboot
Faith without works is dead, faith without hearing is deaf. Salvation is dead without Faith and Works. But Salvation is not dependant on Works. You can always have Salvation, you just have to accept the gift that was given in love, from God himself, Jesus Christ. -- Aaron Echols