2011/12/16

How to disable touchpad when mouse is plugged in on linux.

Hi, everyone. Today, I have a new trick for disable touchpad on your laptop when mouse is plugged in on linux.

Follow me.

Open your terminal now. And type this below on your shell.
$: xinput -list
Output should be above figure.



In this case the name of touchpad is "ETPS/2 Elantech Touchpad". And next-step we will disable touchpad by use the name above-mentioned. You can view properties list of touchpad device by use this command.
$: xinput -list-prop "ETPS/2 Elantech Touchpad"

And then.

$: xinput --set-prop "ETPS/2 Elantech Touchpad" "Device Enabled" 1

Now, your touchpad has been disabled already.
If you want to enable touchpad device, you just change from 0 to 1 in this command option:

$: xinput --set-prop "ETPS/2 Elantech Touchpad" "Device Enabled" 0

Finally, I hope everyone to understand my explanation of this page.
GoodBye.