diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-03-01 10:49:23 +1000 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@gmail.com> | 2016-03-01 15:10:24 +0100 |
commit | 6eeb5474affe6a88fafa2e23332844f813d52024 (patch) | |
tree | 1a903e0bfeae8fa58ad5206b07cdab88c27e8349 /tools/evemu-describe.txt | |
parent | 3974486d689d71fad0255be9e309ca2c758a2aeb (diff) |
evemu-record: add support for --autorestart to cycle buffers
Uses the existing evemu timeout feature where evemu_record() quits after a
given timeout. A call of
evemu-record --autorestart 10 /dev/input/event4 scroll.evemu
will use the filename as prefix and create a timestamped output file (e.g.
scroll.evemu.2016-02-25-09:13). Until the 10s inactivity timeout is hit, all
events are recorded to that file. After that, the file is closed with a note
at the bottom and a new file is started.
This enables a user to leave evemu running in the background for a prolonged
time and recover the most recent recording after triggering a bug without
having to wade through three days of recordings.
https://bugs.freedesktop.org/show_bug.cgi?id=93752
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Diffstat (limited to 'tools/evemu-describe.txt')
-rw-r--r-- | tools/evemu-describe.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/evemu-describe.txt b/tools/evemu-describe.txt index 8102eb1..2d9b7b7 100644 --- a/tools/evemu-describe.txt +++ b/tools/evemu-describe.txt @@ -11,7 +11,7 @@ SYNOPSIS -------- evemu-describe [/dev/input/eventX] [output file] - evemu-record [/dev/input/eventX] [output file] + evemu-record [--autorestart=s] [/dev/input/eventX] [output file] DESCRIPTION ----------- @@ -32,6 +32,15 @@ devices. If no output file is given, stdout is used. +OPTIONS +------- + + --autorestart=<s> + Terminate the curent recording after <s> seconds of device + inactivity. This option requires an output, the file is suffixed + with the date and time of the recording's start. + The timeout must be greater than 0. + DIAGNOSTICS ----------- If evtest-record does not see any events even though the device is being |