2025-03-14 21:59:59 -06:00
|
|
|
# evtest
|
|
|
|
|
|
|
|
|
|
> Display information from input device drivers.
|
|
|
|
|
> More information: <https://manned.org/evtest>.
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- List all detected input devices and select one for monitoring:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`sudo evtest`
|
|
|
|
|
|
|
|
|
|
- Display events from a specific input device:
|
|
|
|
|
|
|
|
|
|
`sudo evtest /dev/input/event{{number}}`
|
|
|
|
|
|
|
|
|
|
- Grab the device exclusively, preventing other clients from receiving events:
|
|
|
|
|
|
|
|
|
|
`sudo evtest --grab /dev/input/event{{number}}`
|
|
|
|
|
|
|
|
|
|
- Query the state of a specific key or button on an input device:
|
|
|
|
|
|
|
|
|
|
`sudo evtest --query /dev/input/event{{number}} {{event_type}} {{event_code}}`
|