7 evtest-capture - Input device event capture program
11 evtest-capture "/dev/input/eventX" [evtest-capture.xml]
15 evtest-capture captures the information and events from the input device
16 specified on the command line and writes it to the xml file given. If no
17 filename is given for the output file, evtest-capture.xml is chosen as
20 evtest-capture needs to be able to read from the device; in most cases this means it
23 Together with with evtest-create-device.xsl, a simple uinput-based software
24 input device can be created that replays the events as if the same input was
25 performed on the physical device. This can be useful to replicate bugs with
26 input devices in upper layers of the stack.
28 To convert evtest-capture.xml into such a uinput device, run:
30 xsltproc evtest-create-device.xls evtest-capture.xml > mydevice.c
31 gcc -o mydevice mydevice.c
37 If evtest-capture does not see any events even though the device is being
38 used, the device may be grabbed by a process (EVIOCGRAB). This is usually the
39 case when debugging a synaptics device from within X. VT switching to a TTY or
40 shutting down the X server terminates this grab and synaptics devices can be
49 evtest-capture was written by Peter Hutterer <peter.hutterer@redhat.com>.