From e689a47d53b5779648c85ddb4ad1d37fc5ad5a83 Mon Sep 17 00:00:00 2001 From: plastik-flasche <102389009+plastik-flasche@users.noreply.github.com> Date: Sun, 21 Apr 2024 08:24:19 +0200 Subject: [PATCH] evtest: add page (#12657) --- pages/linux/evtest.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/evtest.md diff --git a/pages/linux/evtest.md b/pages/linux/evtest.md new file mode 100644 index 0000000000..675b6396d0 --- /dev/null +++ b/pages/linux/evtest.md @@ -0,0 +1,20 @@ +# evtest + +> Display information from input device drivers. +> More information: . + +- 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}}`