xref: /aosp_15_r20/external/autotest/client/cros/input_playback/README (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1*9c5db199SXin LiHow to add new gesture files:
2*9c5db199SXin Li1. Obtain a chromebook with a test image and the input source in question
3*9c5db199SXin Li    (either onboard or plugged in).
4*9c5db199SXin Li2. Determine the input node of the input, e.g. /dev/input/event4.  Either:
5*9c5db199SXin Li    a. run evtest command on the device.  The output should be names and nodes
6*9c5db199SXin Li       of all detected input sources.
7*9c5db199SXin Li    b. run touch_UpdateErrors test on the device and read the logs.  All input
8*9c5db199SXin Li       devices should be listed in .INFO along with their nodes.
9*9c5db199SXin Li3. RECORD (from the device):
10*9c5db199SXin Li    evemu-record $node -1 > $filename
11*9c5db199SXin Li4. PLAY BACK (for verification, from the device):
12*9c5db199SXin Li    evemu-play --insert-slot0 $node < $filename
13*9c5db199SXin Li
14*9c5db199SXin LiOther potentially useful commands:
15*9c5db199SXin Li- Record device properties for emulation:
16*9c5db199SXin Li    evemu-describe $node
17*9c5db199SXin Li- Emulate device:
18*9c5db199SXin Li    evemu-device < $filename
19*9c5db199SXin Li
20*9c5db199SXin Li
21*9c5db199SXin LiSee also https://www.freedesktop.org/wiki/Evemu/
22