Red Hat Bugzilla – Bug 1251015
evemu-play does not play back accurately
Last modified: 2015-10-31 22:50:00 EDT
Created attachment 1059895 [details]
2 scroll events
Description of problem:
I recorded 2 scroll events. In the ememu-record file, I see touchpad events from 0-0.85s and from 1.83-2.58s. However when I play back with evemu-play, only the first scroll appears to occur.
Version-Release number of selected component (if applicable):
Every time you play the attached file
Steps to Reproduce:
1. Get libinput device for Elan touchpad
2. sleep 1; evemu-play <touchpad device> < two-finger-scrolling-small.events
3. Quickly alt-tab to chrome
scrolls down a few lines after 1s
scrolls down a few lines after 1s, scrolls down a few more lines after 2s
funny timing, I observed that yesterday too. Note that evemu offsets the events to a 0 delta, so if you start a recording but don't touch the device for 10s, the replay will still start immediately. This is why the alt-tab approach to testing is a bit risky, you're likely to always miss the events. Better to use sleep 2; sudo evemu-play ....
That aside: it is definitely a bug, fix is on the list, will feed down to Fedora soonish:
(In reply to Peter Hutterer from comment #1)
> That aside: it is definitely a bug, fix is on the list, will feed down to
> Fedora soonish:
This has been pushed yesterday upstream (commit f81aade108adcb84e101b2101b51f82b31f0607d). I'll do a git snapshot for fedora to fix the bug.
evemu-2.2.0-2.20150818giteba96a4.fc22 has been submitted as an update for Fedora 22.
evemu-2.2.0-2.20150818giteba96a4.fc23 has been submitted as an update for Fedora 23.
* should fix your issue,
* was pushed to the Fedora 23 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing evemu-2.2.0-2.20150818giteba96a4.fc23'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Is this supposed to be fixed? Playing back the attached events file with evemu-2.2.0-2.20150818giteba96a4.fc22 still only scrolls once
Created attachment 1066061 [details]
Two finger scrolling
I'm seeing other incorrect artifacts. The attached recording was made with libinput-0.99.1-1.fc22, and played back with the same. When I recorded it, I performed a two-finger scroll up and down in a chrome window and it scrolled many lines up (then opened a right-click menu). When I perform it with evemu-play, it only scrolls one line up.
I just took that recording and re-recorded it through a virtual device and the output is almost identical, save for a few timestamps that are off. Though by the end of the recording the time dilation is less than 3ms, so that shouldn't hurt (and it's mostly unavoidable in any case).
Can you confirm this on your box? run evemu-record and replay the sequence and then diff the two files.
also, fwiw, the libinput version won't affect the evemu recording, they are independent. see the diagram at the bottom of http://wayland.freedesktop.org/libinput/doc/latest/reporting_bugs.html
evemu-2.2.0-2.20150818giteba96a4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
evemu-2.2.0-2.20150818giteba96a4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.