Home > Máy tính > Disable touchpad in Linux Mint

Disable touchpad in Linux Mint

November 2nd, 2010 Leave a comment Go to comments

Laptop users often have this desire: disable touchpad when usb mouse is connected to machine. For Windows, we can do this by installing Synaptics utility, then turning on the right feature. For Linux Mint / Ubuntu, there are tools to do so but that may not work stably all the time. I try GPointing Device, the touchpad is suddenly turned ON after a while I turn it OFF. That’s really headache when you work with your laptop for hours.

Some solution refers to modifying /etc/X11/xorg.conf but this file does not exist in Linux Mint 9, even if I add it and use synclient command, this way dooes not work for me.

Finally I find out a useful command, xinput, which can totally disable touchpad in a session. If you’re in same situation like me and looking for a solution that works, read on. If you’d like to learn more, read this Ubuntu wiki: https://wiki.ubuntu.com/X/Config/Input#Dynamic%20Input%20Configuration%20with%20xinput.

First, list all current input devices.

administrator@linuxmint ~ $ xinput list
⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
⎜   ↳ Logitech USB Laser Mouse                    id=10    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                  id=12    [slave  pointer  (2)]
⎜   ↳ Macintosh mouse button emulation            id=13    [slave  pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
↳ Power Button                                id=6    [slave  keyboard (3)]
↳ Video Bus                                   id=7    [slave  keyboard (3)]
↳ Sleep Button                                id=8    [slave  keyboard (3)]
↳ USB 2.0 Camera                              id=9    [slave  keyboard (3)]
↳ AT Translated Set 2 keyboard                id=11    [slave  keyboard (3)]
↳ Asus Laptop extra buttons                   id=14    [slave  keyboard (3)]

List properties of specific device.

administrator@linuxmint ~ $ xinput list-props “SynPS/2 Synaptics TouchPad”
Device ‘SynPS/2 Synaptics TouchPad’:
Device Enabled (140):    0
Device Accel Profile (257):    0
Device Accel Constant Deceleration (258):    1.000000
Device Accel Adaptive Deceleration (260):    1.000000

Set property “Device Enabled” to 0 to disable the device.

administrator@linuxmint ~ $ xinput set-prop “SynPS/2 Synaptics TouchPad” “Device Enabled” 0

It works instantly without restarting :D . You can save the last command line as a an executable script, put it on Desktop, click whenever you want.

Now you feel better  yet? Or still don’t like to type command line? Then this wiki may be helpful https://help.ubuntu.com/community/SynapticsTouchpad. There is section about how to disable touchpad that really works.

  1. August 16th, 2011 at 15:26 | #1

    it’s work
    thanks bro

  2. August 28th, 2013 at 16:54 | #2

    This simple solution works on Olivia (HP ProBook 4520s). Thanks!

  3. Zach
    September 3rd, 2013 at 00:14 | #3

    Thanks so much!
    Works on my asus g73jw laptop

  1. No trackbacks yet.