1EVTEST(1)                       [FIXME: manual]                      EVTEST(1)
2
3
4

NAME

6       evtest - Input device event monitor and query tool
7

SYNOPSIS

9       evtest /dev/input/eventX
10
11       evtest --query /dev/input/eventX <type> <value>
12

DESCRIPTION

14       The first invocation type displayed above ("capture mode") causes
15       evtest to display information about the specified input device,
16       including all the events supported by the device. It then monitors the
17       device and displays all the events layer events generated.
18
19       In the second invocation type ("query mode"), evtest performs a
20       one-shot query of the state of a specific key value of an event type.
21
22       type is one of: EV_KEY, EV_SW, EV_SND, EV_LED (or the numerical value)
23
24       value can be either a decimal representation (e.g. 44), hex (e.g.
25       0x2c), or the constant name (e.g. KEY_Z) of the key/switch/sound/LED
26       being queried.
27
28       If the state bit is set (key pressed, switch on, ...), evtest exits
29       with code 10. If the state bit is unset (key depressed, switch off,
30       ...), evtest exits with code 0. No other output is generated.
31
32       evtest needs to be able to read from the device; in most cases this
33       means it must be run as root.
34
35       evtest is commonly used to debug issues with input devices in X.Org.
36       The output of evtest shows the information presented by the kernel;
37       based on this information it can be determined whether a bug may be a
38       kernel or an X.Org issue.
39

DIAGNOSTICS

41       If evtest does not show any events even though the device is being
42       used, the device may be grabbed by a process (EVIOCGRAB). This is
43       usually the case when debugging a synaptics device from within X. VT
44       switching to a TTY or shutting down the X server terminates this grab
45       and synaptics devices can be debugged.
46

EXIT CODE

48       evtest returns 1 on error.
49
50       When used to query state, evtest returns 0 if the state bit is unset
51       and 10 if the state bit is set.
52

SEE ALSO

54       inputattach(1)
55

AUTHOR

57       evtest was written by Vojtech Pavlik <vojtech@suse.cz[1]>.
58
59       This manual page was written by Stephen Kitt <steve@sk2.org[2]>, based
60       on that present in the lineakd package, for the Debian GNU/Linux system
61       (but may be used by others).
62

NOTES

64        1. vojtech@suse.cz
65           mailto:vojtech@suse.cz
66
67        2. steve@sk2.org
68           mailto:steve@sk2.org
69
70
71
72[FIXME: source]                   09/01/2011                         EVTEST(1)
Impressum