1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 00:42:08 +02:00
tldr/pages/linux/evtest.md
2024-04-21 14:24:19 +08:00

20 lines
525 B
Markdown

# evtest
> Display information from input device drivers.
> More information: <https://manned.org/evtest>.
- List all detected input devices:
`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}}`