From Cy.Schubert@komquats.com  Sun May  8 05:27:30 2005
Return-Path: <Cy.Schubert@komquats.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 869AB16A4E0
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun,  8 May 2005 05:27:30 +0000 (GMT)
Received: from komquats.com (S0106002078125c0c.gv.shawcable.net [24.108.146.123])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ED24843D4C
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun,  8 May 2005 05:27:29 +0000 (GMT)
	(envelope-from Cy.Schubert@komquats.com)
Received: from cwsys.cwsent.com (cwsys [10.1.1.1])
	by komquats.com (Postfix) with ESMTP id 6CAB34C5C4
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat,  7 May 2005 22:27:29 -0700 (PDT)
Received: from cwsys.cwsent.com (localhost [127.0.0.1])
	by cwsys.cwsent.com (8.13.3/8.13.3) with ESMTP id j485RSin068289
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 7 May 2005 22:27:28 -0700 (PDT)
	(envelope-from Cy.Schubert@uumail.gov.bc.ca)
Received: (from cy@localhost)
	by cwsys.cwsent.com (8.13.3/8.13.1/Submit) id j485RSP2068288;
	Sat, 7 May 2005 22:27:28 -0700 (PDT)
	(envelope-from cy)
Message-Id: <200505080527.j485RSP2068288@cwsys.cwsent.com>
Date: Sat, 7 May 2005 22:27:28 -0700 (PDT)
From: Cy Schubert <cy@cwsent.com>
Reply-To: Cy Schubert <cy@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:
Subject: XFree86-4 fails to see wheel on Logitec MediaPlay mouse
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80745
>Category:       ports
>Synopsis:       XFree86-4 fails to see wheel on Logitech MediaPlay mouse
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-x11
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 08 05:30:02 GMT 2005
>Closed-Date:    Wed Jun 15 04:54:17 GMT 2005
>Last-Modified:  Wed Jun 15 04:54:17 GMT 2005
>Originator:     Cy Schubert
>Release:        FreeBSD-2.0
>Organization:
FreeBSD
>Environment:
System: FreeBSD cwsys 5.4-STABLE FreeBSD 5.4-STABLE #0: Fri May 6 13:10:43 PDT 2005 root@cwsys:/export/obj/opt/src/cvs-stable5/src/sys/KOMQUATS i386


>Description:
XFree86-4 cannot see wheel movemt on a Logitech MediaPlay mouse.
>How-To-Repeat:
Install a Logitech MediaPlay mouse.
>Fix:


Index: files/patch-programs::Xserver::hw::xfree86::os-support::xf86OSmouse.h
===================================================================
RCS file: files/patch-programs::Xserver::hw::xfree86::os-support::xf86OSmouse.h
diff -N files/patch-programs::Xserver::hw::xfree86::os-support::xf86OSmouse.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-programs::Xserver::hw::xfree86::os-support::xf86OSmouse.h	8 May 2005 04:25:49 -0000
@@ -0,0 +1,11 @@
+--- programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h.orig	Fri Feb 13 15:58:46 2004
++++ programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h	Sat May  7 21:18:57 2005
+@@ -299,7 +299,7 @@
+ /* Generalize for other axes. */
+ #define MSE_NOAXISMAP	MSE_NOZMAP
+ 
+-#define MSE_MAXBUTTONS	12
++#define MSE_MAXBUTTONS	16
+ #define MSE_DFLTBUTTONS	 3
+ 
+ #endif /* _XF86OSMOUSE_H_ */


Apply the above patch, then add the following to XF86Config:

    Option "Buttons"     "15"
    Option "ZAxisMapping" "14 15"
    Option "Resolution" "800"

Finally add the following to .xsession:

xmodmap -e "pointer = 1 2 3 6 7 8 9 10 11 12 13 14 15 4 5"

A similar bug exists in Xorg which has been documented in PR ports/80744
and in XFree86 as bug #1537 (also Xorg bug 2389).
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-x11 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun May 8 05:43:50 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80745 

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: bug-followup@FreeBSD.org, cy@FreeBSD.org
Cc:  
Subject: Re: ports/80745: XFree86-4 fails to see wheel on Logitech MediaPlay mouse
Date: Mon, 9 May 2005 09:32:19 +0200

 The MSE_MAXBUTTONS has been bumped to 24 in XFree86 (apart from fixing man 
 page that is noted in bugzilla). This change is therefore present in XFree86 
 4.5.0 and will be available in ports when they are updated (pending FreeBSD 
 5.4 release and pointyhat test). If you think that this should be corrected 
 sooner let me know.
 Thanks for report, especially for including all the bugzilla references!
State-Changed-From-To: open->suspended 
State-Changed-By: lesi 
State-Changed-When: Mon May 9 07:47:51 GMT 2005 
State-Changed-Why:  
Suspend pending upgrade of XFree86 ports to 4.5.0. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80745 

From: Cy Schubert <Cy.Schubert@komquats.com>
To: Dejan Lesjak <dejan.lesjak@ijs.si>
Cc: bug-followup@FreeBSD.org, cy@FreeBSD.org
Subject: Re: ports/80745: XFree86-4 fails to see wheel on Logitech 
 MediaPlay mouse
Date: Mon, 09 May 2005 06:20:09 -0700

 Maybe my similar patch to Xorg should be adjusted to match what the XFree86 
 folks are doing.
 
 
 Cheers,
 Cy Schubert <Cy.Schubert@komquats.com>
 Web:  http://www.komquats.com and http://www.bcbodybuilder.com
 FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org
 BC Government:  <Cy.Schubert@gov.bc.ca>
 
     "Lift long enough and I believe arrogance is replaced by
     humility and fear by courage and selfishness by generosity
     and rudeness by compassion and caring."
         -- Dave Draper
 
 In message <200505090932.19755.dejan.lesjak@ijs.si>, Dejan Lesjak writes:
 > The MSE_MAXBUTTONS has been bumped to 24 in XFree86 (apart from fixing man 
 > page that is noted in bugzilla). This change is therefore present in XFree86 
 > 4.5.0 and will be available in ports when they are updated (pending FreeBSD 
 > 5.4 release and pointyhat test). If you think that this should be corrected 
 > sooner let me know.
 > Thanks for report, especially for including all the bugzilla references!
 
 

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: Cy Schubert <Cy.Schubert@komquats.com>
Cc: bug-followup@FreeBSD.org, cy@FreeBSD.org
Subject: Re: ports/80745: XFree86-4 fails to see wheel on Logitech MediaPlay mouse
Date: Tue, 10 May 2005 22:05:59 +0200

 On Monday 09 of May 2005 15:20, Cy Schubert wrote:
 > Maybe my similar patch to Xorg should be adjusted to match what the XFree86
 > folks are doing.
 
 Just for the gnats record and in case you don't know yet, MSE_MAXBUTTONS has 
 been bumped in Xorg CVS to 24 also by anholt :) So this will be present in 
 one of next upgrades of Xorg ports anyway.
 Still, if someone finds a mouse that has more than 16 buttons before that, do 
 mention it on FreeBSD-x11@ mailing list.
State-Changed-From-To: suspended->closed 
State-Changed-By: lesi 
State-Changed-When: Wed Jun 15 04:52:42 GMT 2005 
State-Changed-Why:  
Ports of XFree86 4.5 have been committed and fix is included in release. 
Thanks again for report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80745 
>Unformatted:
