Bug 176689 - wrong number of buttons detected on mouse
Summary: wrong number of buttons detected on mouse
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drv-mouse
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-30 02:50 UTC by Valdis Kletnieks
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-09 12:09:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Valdis Kletnieks 2005-12-30 02:50:31 UTC
Description of problem:
The current mouse driver misdetects the number of mouse buttons on my Microsoft
Trackball Optical - it has 7, the driver detects 11.

Version-Release number of selected component (if applicable):
xorg-x11-drv-mouse-1.0.3-1

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

From /var/log/Xorg.0.log -

(**) Mouse0: Device: "/dev/input/mice"
(**) Mouse0: Protocol: "ExplorerPS/2"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/input/mice"
(**) Option "Buttons" "7"
(**) Option "Emulate3Buttons" "on"
(**) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "6 7"
(**) Mouse0: ZAxisMapping: buttons 6 and 7
(**) Mouse0: Buttons: 11

Comment 1 Valdis Kletnieks 2005-12-30 03:00:17 UTC
Testing with 'xev' shows that what should be buttons 1-7 are in fact seen as 1,
2, 3, 6, 7, 8, 9.  I found the problem when xmodman complained:

xmodmap -e "pointer = 1 7 2 6 3 4 5"
xmodmap:  commandline:1:  bad number of buttons, must have 11 instead of 7
xmodmap:  1 error encountered, aborting.


Comment 2 Valdis Kletnieks 2005-12-30 04:32:51 UTC
Wow. It's not a bug, it's a feee-ture.

https://bugs.freedesktop.org/show_bug.cgi?id=4915

What I *used* to have was xmodmap -e "pointer = 1 7 2 6 3 4 5" (which basically
moved mouse buttons 2 and 3 to physical buttons I preferred).

Now I have to use xmodmap -e "pointer = 1 7 2 6 9 4 5 8 3 10 11" (injecting
gratuitous non-existent 8-11 - 8 and 9 as padding are irritating).

I'm not sure *how* to document this user-visible change - in particular, note
that xmodmap is usable by users, who will have to work around any ZAxisMapping
that the sysadmin set up.....

Comment 4 Mike A. Harris 2006-02-02 08:53:13 UTC
Please upgrade to xorg-x11-drv-mouse-1.0.3.1-1 and update the report to indicate
if the problem still exists in the current build.  Some bugs were fixed at the
last minute which may resolve this.

TIA

Comment 5 Mike A. Harris 2006-02-09 12:09:07 UTC
Assuming this is resolved in the latest packages as there has been no
feedback for over a week.

If the problem still exists in the latest packages, after reconfiguring
the X server from scratch with system-config-display and system-config-mouse,
please reopen with updated details.

Setting status to "RAWHIDE".


Note You need to log in before you can comment on or make changes to this bug.