mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 11:46:28 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/linux/evtest
Normal file
25
tldr/linux/evtest
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user