Browse Source

evtest: add page (#12657)

plastik-flasche 10 months ago
parent
commit
e689a47d53
1 changed files with 20 additions and 0 deletions
  1. 20 0
      pages/linux/evtest.md

+ 20 - 0
pages/linux/evtest.md

@@ -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}}`