Posts: 28
Threads: 6
Joined: Dec 2023
Reputation:
1
Hi folks!
I am not a Linux-Crack, it's just copying Code that i almost understand ;-)
I discovered the event-number with the command:
cat /proc/bus/input/devices
The output is a bit difficult to read, it should look like this..
I: Bus=0003 Vendor=0513 Product=0318 Version=0110
N: Name="HID 0513:0318"
P: Phys=usb-0000:01:00.0-1.3/input0
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:0513:0318.0001/input/input0
U: Uniq=
H: Handlers=sysrq kbd leds event0
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff800000000007ff febeffdff3cfffff fffffffffffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=0513 Product=0318 Version=0110
N: Name="HID 0513:0318 Mouse"
P: Phys=usb-0000:01:00.0-1.3/input1
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:0513:0318.0002/input/input1
U: Uniq=
H: Handlers=mouse0 event1
B: PROP=0
B: EV=17
B: KEY=1f0000 0 0 0 0
B: REL=1943
B: MSC=10
The upper one is my keyboard, it is "event0", which can be seen in the line beginning with H:
You should search for "HID" HumanInterfaceDevice oder keyboard, or something with USB:...
Now, we know which device should be used, and we can change the "event" in the command
sudo thd --dump /dev/input/event0
to the device we need.
Then the command should work..
Greets, Thomas
Posts: 28
Threads: 6
Joined: Dec 2023
Reputation:
1
Hi Kent,
Thank you for your help, i will add that command to my "favorite copied commands" selection ;-)
Greets, Thomas
Posts: 6,030
Threads: 177
Joined: Apr 2018
Reputation:
235
PS - even if there are multiple input devices attached and more than one is accidentally pressed/released/moved/etc., it should be pretty easy to tell which events are associated with which device, and then filter accordingly.