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

  4. Wilf’s Donut World
    May 17th, 2014 at 23:28 | #4

    Thank you Vaji, works a treat on my ultra cheapo Gigabyte Netbook running Petra.

    No more touchpad woe.


  5. August 3rd, 2014 at 17:23 | #5

    Thanks a bunch, works wonders!
    NOTE: while copy-pasting commands – watch out for quote signs

  6. Nguyen
    December 21st, 2015 at 00:09 | #6

    It works like a charm!
    Mine is HP 14 with Linux Mint 17.2.
    Thank you so much.

  7. nick braud
    July 2nd, 2016 at 14:33 | #7

    You are the man, you just saved me from needing a new laptop. I was ready to throw this thing, worst trackpad ever on this pavilion g7, jumps all over the place all the time. This worked great, instantly disabled. Thank you!

  8. steve
    September 9th, 2016 at 22:53 | #8

    Personally I’d use:

    xinput disable “SynPS/2 Synaptics TouchPad” and xinput enable “SynPS/2 Synaptics TouchPad” since that’s specifically what those commands are for. But that’s just me. 🙂

  9. Vishnu
    May 28th, 2017 at 05:03 | #9

    it says ,unable to find device SynPS/2
    unable to find device Synaptics
    unable to find device TouchPad

  10. elgo
    January 4th, 2018 at 21:40 | #10

    Thank you for pointing how to work with xinput. Btw, xinput enable/disable “SynPS/2 Synaptics TouchPad” is now available, instead of dealing with set-prop.

  1. No trackbacks yet.