As reported at https://bugs.gentoo.org/show_bug.cgi?id=427632 Original report: --- After upgrading x11-drivers/xf86-input-evdev to 2.7.0, emulateWheel stopped working in the vertical direction with a Kensington Expert Mouse (it's actually a trackball). Horizontal scrolling still works, as does the actual mouse wheel on the device. xev does not show any input at all when trying to scroll with the emulated wheel. Installing 2.6.0 and restarting X fixes the problem. Reproducible: Always Steps to Reproduce: 1. Upgrade to x11-drivers/xf86-input-evdev 2. Restart X or reboot 3. Try to scroll using the emulated mouse wheel. Actual Results: No input events are sent to applications. Expected Results: Scrolling works as usual. --- In my experience, bug shows with current releases of xf86-input-evdev (2.7 series) in combination with xserver 1.12.3 (1.12.2 and below are unaffected). I've tested a handful of devices, and found that (vertical) wheel emulation only works where the device doesn't actually have a scroll wheel. I don't have any way of testing devices with horizontal scroll wheels. AFAICT, xserver expects devices with a wheel to report wheel motion on the wheel axis, rather than sending button presses. Evdev does this in all of its code except wheel emulation, where it always sends button presses. Mangling button presses into axis motion where an axis is present corrects the issue.
run xinput test-xi2 and scroll when you're above the main event window. What events do you see? please attach the output here, I suspect this is a client not handling the "emulated" flag correctly
*** Bug 52408 has been marked as a duplicate of this bug. ***
I'll try to cut the output from xinput test-xi2 down to a reasonable size. In the meantime, I'll summarize. With scrollwheel: The physical wheel produces ButtonPress/ButtonRelease pairs as expected, as well as RawButtonPress, RawMotion and Motion events. Emulated horizontal scrolling produces ButtonPress/ButtonRelease events. Emulated vertical scrolling only produces RawButtonRelease events. Without: Emulated scrolling in any direction produces ButtonPress/ButtonRelease pairs as expected. The emulated flag appears only on events generated by the physical scroll wheel.
Created attachment 64936 [details] Condensed log from 'xinput test-xi2' Log omits pointer motion and keyboard events. It's been cut down to 1 'click' of each direction on each physical or emulated scroll wheel.
server bug, regression introduced by 54476b5e4461ff523e935961affabcf0de12c556
http://patchwork.freedesktop.org/patch/11535/
commit cb306a8f174bec9ded95191b91797f59250e6808 Author: Peter Hutterer <peter.hutterer@who-t.net> Date: Tue Jul 31 16:09:38 2012 +1000 dix: make sure the mask is set for emulated scroll events (#52508)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.