1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 11:19:46 +01:00

evtest: add page (#12657)

This commit is contained in:
plastik-flasche 2024-04-21 08:24:19 +02:00 committed by GitHub
parent aec9737314
commit e689a47d53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

20
pages/linux/evtest.md Normal file
View file

@ -0,0 +1,20 @@
# 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}}`