Enable/Disable your Trackpad in Linux

Here's a small post about enabling/disabling a your trackpad, touchpad, or whatever you want to call it in Linux.

First, get to know your stuff with:

This is what my current laptop (Dell M4500) shows. In this case we have three mice devices in the laptop: DualPoint Stick and AlpsPS/2 ALPS DualPoint TouchPad are in the laptop itself, and attached is the Logitech Optical USB Mouse.

Now I want to disable those two devices and leave the Logitech mouse only. To do this simply run the following:

$xinput --set-prop "AlpsPS/2 ALPS DualPoint TouchPad" "Device Enabled" 0
$xinput --set-prop "DualPoint Stick" "Device Enabled" 0

You also might want to add a few lines to your .bashrc like:

Hope this helps!