LinuxCommandLibrary

evtest

Display information from input device drivers.

TLDR

List all detected input devices

$ sudo evtest
copy


Display events from a specific input device
$ sudo evtest /dev/input/event[number]
copy


Grab the device exclusively, preventing other clients from receiving events
$ sudo evtest --grab /dev/input/event[number]
copy


Query the state of a specific key or button on an input device
$ sudo evtest --query /dev/input/event[number] [event_type] [event_code]
copy

Copied to clipboard