Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using ubuntu 11.04 on my system. I want to disable the touchpad of the laptop, and for that I need the device id. Can anybody explain how to find the device ID of my device?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You can get a list of devices with the xinput list command. This should give output something like this (note the device IDs):

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=8    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=9    [slave  pointer  (2)]
⎜   ↳ Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint    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)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ Logitech Logitech USB Headset             id=10   [slave  keyboard (3)]
    ↳ Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint    id=11   [slave  keyboard (3)]

You can disable a device by floating it. For example, I can disable the TrackPoint on my system with:

xinput float 12

You can re-enable a device by attaching it to the corresponding master device:

xinput reattach 12 2

It is also possible to use the device names instead of numeric IDs (e.g. "Virtual core pointer" instead of 2) with both of these commands if you want to write a script that is independent of the numeric IDs.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.