Ubuntu – How to disable Elantech Touchpad while typing on Ubuntu 12.10

12.10elantechmousemulti-touchtouchpad

I have an Asus laptop (non zenbook) which I purchased last week. It has an Elantech Touchpad on it. Here's what's working:

  • Edge scrolling or Two Finger Scrolling.
  • Three finger and Two finger.
  • Left Click and Right Click and double tap.

The only thing keeping this from being perfect is that when I'm typing sometimes my palm hits the touchpad just right and then things get crazy. That can be a real bother when writing code.

Can someone help?

Here's the output of xinput list:

 Virtual core pointer                       id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=12   [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)]
    ↳ ASUS USB2.0 Webcam                        id=9    [slave  keyboard (3)]
    ↳ Asus WMI hotkeys                          id=10   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)]

output of: ps aux | grep syndaemon

jason 2911 0.0 0.0 20208 948 ? S Feb13 0:53 syndaemon -i 2.0 -K -R -t

jason 10256 0.0 0.0 13584 928 pts/2 S+ 14:18 0:00 grep syndaemon

Best Answer

I know it's not what you really want (completely automatic?), but there is an easy to make keyboard shortcuts to disable and enable the touchpad.

From your xinput list, the id for your touchpad is 12. Use this command to disable it:

xinput set-prop 12 "Device Enabled" 0

Use this to enable it:

xinput set-prop 12 "Device Enabled" 1

Bind these commands to your custom shortcuts (Keyboard / Shortcuts / Custom Shortcuts). Perhaps this can be made to a script?