commands.sh

evtest

linux

Display information from input device drivers.

More info →

Examples (4)

List all detected input devices

Display events from a specific input device

sudo evtest /dev/input/eventnumber

Grab the device exclusively, preventing other clients from receiving events

sudo evtest --grab /dev/input/eventnumber

Query the state of a specific key or button on an input device

sudo evtest --query /dev/input/eventnumber event_type event_code
made by @shridhargupta | data from tldr-pages