You are not logged in.

#1 2011-09-12 13:16:50

damd
Member
Registered: 2011-07-28
Posts: 13

Disable touchpad with xinput

I'm trying to disable my touchpad whenever I hit a key combination because it's annoying as hell when I'm typing. However, I'm not sure how to do it with xinput. This is the output from xinput list:

deniz@brussels:~/lucidlabs/ > xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                   	id=12	[slave  pointer  (2)]
⎜   ↳ PS/2 Generic Mouse                      	id=14	[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)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=9	[slave  keyboard (3)]
    ↳ Laptop_Integrated_Webcam_FHD            	id=10	[slave  keyboard (3)]
    ↳ Logitech USB Receiver                   	id=11	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=13	[slave  keyboard (3)]
    ↳ Dell WMI hotkeys                        	id=15	[slave  keyboard (3)]

Any help appreciated. If it matters, I'm using Gnome 3.

Offline

#2 2011-09-12 13:22:44

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Disable touchpad with xinput

syndaemon is what you want.

Offline

#3 2011-09-12 13:23:40

damd
Member
Registered: 2011-07-28
Posts: 13

Re: Disable touchpad with xinput

Gusar wrote:

syndaemon is what you want.

Thanks, but where do I get that?

Offline

#4 2011-09-12 13:31:50

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Disable touchpad with xinput

You already have it. It's part of the synaptics driver.

Offline

#5 2011-09-12 14:00:43

damd
Member
Registered: 2011-07-28
Posts: 13

Re: Disable touchpad with xinput

Gusar wrote:

You already have it. It's part of the synaptics driver.

deniz@brussels:~/lucidlabs/ > which syndaemon
syndaemon not found

Offline

#6 2011-09-12 14:03:09

damd
Member
Registered: 2011-07-28
Posts: 13

Re: Disable touchpad with xinput

Okay, I installed xf86-input-synaptics and now this:

deniz@brussels:~/lucidlabs/ > syndaemon -d
Unable to find a synaptics device.

Offline

#7 2011-09-12 14:24:15

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Disable touchpad with xinput

Your `xinput list` output lists the touchpad as "PS/2 Generic Mouse", which is wrong. It's detected as "SynPS/2 Synaptics TouchPad" for me.
Try restarting the X server for the synaptics driver to load.

I agree that what you really want may be syndaemon (read the wiki on that), but the xinput method goes like this:

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=13   [slave  pointer  (2)]
<snip>

"SynPS/2 Synaptics TouchPad" has the id 13; query for its properties:

$ xinput list-props 13
Device 'SynPS/2 Synaptics TouchPad':
        Device Enabled (121):   1
<snip>

Disable it:

$ xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0

or using IDs,

$ xinput set-prop 13 121 0

You can disable other input devices such as keyboard this way.

Last edited by lolilolicon (2011-09-12 14:37:32)


This silver ladybug at line 28...

Offline

#8 2011-09-13 07:25:00

damd
Member
Registered: 2011-07-28
Posts: 13

Re: Disable touchpad with xinput

I restarted X, the whole computer in fact, but still I get the PS/2 Generic Mouse. What can I do? I'm using a Dell Latitude E6520.

Last edited by damd (2011-09-13 07:26:00)

Offline

#9 2011-09-13 17:28:13

hellbuster
Member
From: Chile
Registered: 2010-05-18
Posts: 28
Website

Re: Disable touchpad with xinput

Offline

Board footer

Powered by FluxBB