Thursday, April 25, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 10526  / 2 Years ago, wed, april 13, 2022, 3:49:45

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?


More From » ubuntu-netbook

 Answers
1

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.


[#44959] Wednesday, April 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
amelican

Total Points: 162
Total Questions: 116
Total Answers: 108

Location: Guam
Member since Mon, May 29, 2023
12 Months ago
amelican questions
Sun, Aug 14, 22, 01:26, 2 Years ago
Mon, Apr 24, 23, 18:12, 1 Year ago
Wed, Apr 5, 23, 04:30, 1 Year ago
Thu, Sep 1, 22, 02:14, 2 Years ago
Mon, Sep 19, 22, 23:08, 2 Years ago
;