Bug 4504

Summary: Mouse configuration is not trivial
Product: xorg Reporter: Bradley T Hughes <bhughes>
Component: Input/MouseAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: high    
Version: 6.8.2   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Bradley T Hughes 2005-09-19 02:09:42 UTC
Currently, mouse configuration is not a trivial task. Many new devices come  
with more than 3 buttons in addition to the mouse wheel. Buttons 4-7 are in  
practice reserved for the mouse wheel, which means extra buttons should begin  
counting from 8, but they do not.  
  
When mapping the wheel to buttons 4 and 5, extra buttons are by default  
ignored. Patches are available to "push" the button assignment when the wheel  
is detected, but this often means extra buttons get assigned as button 6 and  
up. This means that extra buttons will be treated as a horizontal scroll  
wheel, which is not the desired behavior.  
  
To make a 5 button mouse with wheel work "properly", you have to first  
configure the mouse with 7 buttons, with the wheel mapped to buttons 6 and 7:  
  
        Option "Buttons" "7" 
        Option "ZAxisMapping" "6 7" 
  
Then, once the X server is running, you have to use xmodmap to remap the  
buttons: 
 
        xmodmap -e "pointer = 1 2 3 4 5 8 9" 
 
Documentation explaining the proper setup would certainly help, along with an 
explanation as to why extra buttons begin at 8 instead of 4. This would also 
server as an official statement from X.org to toolkit and applicaiton 
developers as to how the mouse wheel is presented in the X11 protocol. Support 
in the X server for mapping extra buttons starting at 8 would be even better. 
The ideal solution is a protocol revision or extension that added a wheel 
event type (and enumerated buttons in logical order), but this requires 
changes to existing applications and toolkits which won't happen quickly.
Comment 1 Adam Jackson 2006-04-04 22:55:56 UTC

*** This bug has been marked as a duplicate of 2589 ***
Comment 2 Bradley T Hughes 2006-04-05 00:07:09 UTC
I'm sorry, but I fail to see how this bug is a duplicate of 2589, which talks  
about general configuration of the X server. This bug report is specific to  
mouse wheel configuration. I'm afraid that my report will get lost, since 2589 
has no mention of mouse wheel/button configuration. 
Comment 3 Alan Coopersmith 2006-04-05 04:56:46 UTC
This seems to not be quite a duplicate of 2589
Comment 4 Alan Coopersmith 2006-04-05 04:57:49 UTC
rather it seems a duplicate of 4915 which was fixed in 6.9/7.0 and set the
default mouse wheel mappings to 4 5 6 7 and buttons > 3 start at 8.

*** This bug has been marked as a duplicate of 4915 ***

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.