Horizontal scrolling not working on Lenovo ThinkPad USB Laser Mouse
Hi, in xorg this mouse does not seem to send buttons 6/7 for pressing the mouse wheel sideways, but 8/9, so acts as forward/backward by default. When remapping via xinput --set-button-map 18 1 2 3 4 5 0 0 6 7
, pressing the mouse wheel sideways produces exactly one horizontal scroll step. (Expected behaviour, like seen on another mouse: Keep scrolling.) Also, there does not seem to be axis changes reported when doing so, but I don't know whether they should be reported by the hardware, the kernel, libinput or where else.
In evemu-record-20190629-1.log, I first press the mouse wheel left, release, then right, release. In evemu-record-20190629-3.log, I hold it down longer to show there is no repeat kicking in.
The issue was previously reported here, where Peter Hutterer suggested to file a bug on libinput to have a hwdb quirk in libinput for this mouse. As I couldn't find an existing bug report, I'm now reporting this myself.
Please note that I'm using Debian 9 with "ancient" libinput 1.6.3, but I couldn't find an according quirk entry in libinput 1.12.6 (from Debian testing), either. My guess is that it's probably not fixed, yet.
Also note that, on Windows, pushing the scroll wheel sideways first results in forward/backward, too, but after installing the Lenovo driver, it seems to be mapped in software to do horizontal scrolling by default (but can also be programmed in many other ways).
Regards, Fabian