Bug 1230945
| Summary: | libinput does not allow remapping of all mouse buttons | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Alexandre Silva Lopes <jaslopes> | ||||
| Component: | xorg-x11-drv-libinput | Assignee: | Peter Hutterer <peter.hutterer> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 22 | CC: | btissoir, hdegoede, jaslopes, peter.hutterer, raster | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | xorg-x11-drv-libinput-0.11.0-1.fc22 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-07-10 19:05:03 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Alexandre Silva Lopes
2015-06-11 20:22:23 UTC
pls attach an evemu-record of the device where you press each button once, thanks. Created attachment 1038136 [details]
evemu-record of Logitech MX Revolution mouse
(In reply to Peter Hutterer from comment #1) > pls attach an evemu-record of the device where you press each button once, > thanks. Done. Pressed all the buttons, including using the wheel in both horizontal and vertical directions. doesn't a wheel click produce a middle button event on those devices? I'll add a quick fix to the driver to get this working for now, but long-term we probably want to fix those holes and get the mouse to have only the buttons it advertises. Can you label each physical button and what the function is supposed to be. There's left and right obviously and I suspect the wheel does middle click. How about the other buttons (and where are they?) also, while I have you here can you run the mouse-dpi-tool please? should be 800@125 but confirmation would be nice. xorg-x11-drv-libinput-0.11.0-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/xorg-x11-drv-libinput-0.11.0-1.fc22 Yes, the wheel click can produce a middle mouse button event, but I forgot that, because I need to use revoco (https://github.com/sebastien/revoco) to activate that function. Otherwise, it changes spin mode between "click-to-click" and "free spin". That's why I want to remap middle mouse button to button 17. Regarding buttons, there's the usual 1, 2 and 3, 4 and 5 for vertical scroll, 6 and 7 for horizontal scroll, 8 and 9 are back and forward, and there's a thumb button, which looks like a wheel but doesn't spin. It produces button 13 events when I move it forward, button 15 when I move it backwards, and button 17 events when I press it. It is supposed to be used to switch between applications in Windows. There a nice review with good pictures here: http://www.trustedreviews.com/Logitech-MX-Revolution-Mouse-review Actually, mouse-dpi-tool reports 800@200 and, in case you want the hwdb match, mouse:usb:v046dpc51a:name:Logitech USB Receiver: Thanks for your support! Package xorg-x11-drv-libinput-0.11.0-1.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing xorg-x11-drv-libinput-0.11.0-1.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-10063/xorg-x11-drv-libinput-0.11.0-1.fc22 then log in and leave karma (feedback). ok, added the hwdb entry to the systemd repo, should show up with one of the updates in the future. thanks for that. Benjamin, do you have an opinion on remapping the buttons? The thumb wheel seems to be a good candidate for BTN_BACK/BTN_FORWARD, BTN_TASK for the wheel click is debatable. Or we could just leave it as is and accept that there's whole in the range (which X can't deal with, but Wayland shouldn't care too much). (In reply to Peter Hutterer from comment #8) > Benjamin, do you have an opinion on remapping the buttons? The thumb wheel > seems to be a good candidate for BTN_BACK/BTN_FORWARD, BTN_TASK for the > wheel click is debatable. Or we could just leave it as is and accept that > there's whole in the range (which X can't deal with, but Wayland shouldn't > care too much). I believe a kernel patch to change the mapping should not take long to write. I am just a little bit worried by the name of the usb dongle "Logitech USB Receiver" which makes me fear that this dongle might be used for other mice. I will check with Logitech if they have more technical information. Do not hold your breath though, I have no idea if they are still willing to support a nearly 10 year old mouse. Benjamin and I talked about this today and we've decided we're not going to fix this for the MX Revolution. It's an old device and not sold by Logitech anymore. Fixing this now would break existing user's custom mappings (and this bug indicates virtually all users will have a custom mapping), causing further bug reports, regressions, etc. So overall, not worth the effort/cost. We're looking into fixing the current model though, the MX Master. That's fine for me. I have full functionality (at least the same I had before) with xorg-x11-drv-libinput-0.11.0-1.fc22. Again, thanks for the support! xorg-x11-drv-libinput-0.11.0-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. Hi:
I migrated from X to Wayland today and have exactly the same problem: my mouse (a logitech M560) has 9 buttons (left, middle, right, wheel up, wheel down, wheel left, wheel right, and two buttons for the thumb). When using "xinput test" they map to 1, 2, 3, 4, 5, 6, 7, 10, 11 respectively, but "xinput get-button-map" returns "1 2 3 4 5 6 7 8 9 10". If I try to remap the button 11 to be used as the middle button, it doesn't work: the physical middle button can be remapped to emit the event for the 11 event button, but it is not possible to remap the last thumb button (the one that returns the 11 event button) to emit the 2 event button ("middle button").
|