summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am23
-rw-r--r--tools/evemu-describe.txt44
-rw-r--r--tools/evemu-device.txt38
3 files changed, 105 insertions, 0 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index e845fb2..ca86c07 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -10,3 +10,26 @@ bin_PROGRAMS = \
10INCLUDES=-I$(top_srcdir)/include/ 10INCLUDES=-I$(top_srcdir)/include/
11 11
12AM_LDFLAGS = $(top_builddir)/src/libutouch-evemu.la 12AM_LDFLAGS = $(top_builddir)/src/libutouch-evemu.la
13
14
15# man page generation
16if HAVE_DOCTOOLS
17# actual man pages
18man_pages_sources = evemu-describe.txt evemu-device.txt
19# shadow man pages
20man_pages_shadows = evemu-record.1 evemu-play.1
21
22man_pages = $(man_pages_sources:.txt=.1) $(man_pages_shadows)
23
24SUFFIXES = .1 .txt .xml
25
26.xml.1:
27 @$(XMLTO) man $<
28
29.txt.xml:
30 @$(ASCIIDOC) -b docbook -d manpage -o $@ $<
31
32dist_man_MANS = $(man_pages)
33CLEANFILES = $(dist_man_MANS)
34MAINTAINERCLEANFILES = $(man_pages) *.xml
35endif
diff --git a/tools/evemu-describe.txt b/tools/evemu-describe.txt
new file mode 100644
index 0000000..8544169
--- /dev/null
+++ b/tools/evemu-describe.txt
@@ -0,0 +1,44 @@
1EVEMU-DESCRIBE(1)
2=================
3
4NAME
5----
6
7 evemu-describe, evemu-record - print information and events from an
8 input device
9
10SYNOPSIS
11--------
12 evemu-describe /dev/input/eventX
13
14 evemu-record /dev/input/eventX
15
16DESCRIPTION
17-----------
18evemu-describe gathers information about the input device and prints it to
19stdout. This information can be parsed by evemu-device(1) to create a
20virtual input device with the same properties.
21
22evemu-record captures events from the input device and prints them to
23stdout. The events can be parsed by evemu-play(1) to let a virtual input
24device created with evemu-device(1) emit the exact same event sequence.
25
26evemu-describe and evemu-record need to be able to read from the device; in
27most cases this means they must be run as root.
28
29DIAGNOSTICS
30-----------
31If evtest-record does not see any events even though the device is being
32used, the device may be grabbed by a process (EVIOCGRAB). This is usually
33the case when debugging a synaptics or wacom device from within X. VT
34switching to a TTY or shutting down the X server terminates this grab and
35the devices can be recorded.
36
37SEE ALSO
38--------
39evemu-device(1)
40evemu-play(1)
41
42AUTHOR
43------
44evemu was written by Henrik Rydberg <rydberg@euromail.se>
diff --git a/tools/evemu-device.txt b/tools/evemu-device.txt
new file mode 100644
index 0000000..05d1d30
--- /dev/null
+++ b/tools/evemu-device.txt
@@ -0,0 +1,38 @@
1EVEMU-DEVICE(1)
2===============
3
4NAME
5----
6
7 evemu-device, evemu-play - create a virtual input device and replay an
8 event sequence
9
10SYNOPSIS
11--------
12 evemu-device [description-file]
13
14 evemu-play /dev/input/eventX < event-sequence
15
16DESCRIPTION
17-----------
18evemu-device creates a virtual input device based on the description-file.
19This description is usually created by evemu-describe(1). evemu-device then
20creates a new input device with uinput and prints the name and the device
21file to
22stdout.
23
24evemu-play replays the event sequence given on stdin through the input
25device. The event sequence must be in the form created by evemu-record(1).
26
27evemu-device must be able to write to the uinput device node, and evemu-play
28must be able to write to the device node specified; in most cases this means
29it must be run as root.
30
31SEE ALSO
32--------
33evemu-describe(1)
34evemu-record(1)
35
36AUTHOR
37------
38evemu was written by Henrik Rydberg <rydberg@euromail.se>