Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ee829890 authored by Harry Cutts's avatar Harry Cutts
Browse files

uinput: Specify timestamps when injecting events from evemu

Last year support for specifying timestamps for uinput events was added
to the Linux Kernel [0]. This allows us to give precise timestamps for
events being played back from an evemu recording, despite the actual
times at which we inject them being imprecise due to how threads and
the kernel are scheduled.

[0]: https://lore.kernel.org/lkml/20230427000152.1407471-1-biswarupp@google.com/

Bug: 310958309
Test: with the patch added to the device's kernel, play back pointing
      stick and touchscreen recordings. Compare `getevent -lt` output
      with the timestamps in the recordings to check that the offsets
      between timestamps match (e.g. using a spreadsheet).
Test: atest UinputTests
Change-Id: If486cdb7218918aca64e6561f9fc2f30acce736a
parent 8767c663
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment