From nobody@FreeBSD.org  Wed May  7 21:51:02 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B4CAE106567D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  7 May 2008 21:51:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id A47EC8FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  7 May 2008 21:51:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m47Lo74w042596
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 7 May 2008 21:50:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m47Lo7hR042595;
	Wed, 7 May 2008 21:50:07 GMT
	(envelope-from nobody)
Message-Id: <200805072150.m47Lo7hR042595@www.freebsd.org>
Date: Wed, 7 May 2008 21:50:07 GMT
From: Merritt Draney <tmdraney@verizon.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Mouse Wheel Fails to Work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         123510
>Category:       kern
>Synopsis:       [ums] Mouse Wheel Fails to Work [regression]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-usb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 07 22:00:02 UTC 2008
>Closed-Date:    Sat Aug 23 18:51:51 UTC 2008
>Last-Modified:  Sat Aug 23 18:51:51 UTC 2008
>Originator:     Merritt Draney
>Release:        7.0
>Organization:
>Environment:
FreeBSD popcorn.myhome.westell.com 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue May  6 06:43:32 EDT 2008     merritt@popcorn.myhome.westell.com:/usr/obj/usr/src/sys/MYKERNEL  i386

>Description:
Basically in 7.0 Release, my mouse wheel works in X11.  In 7.0-Stable, it does not.  I use a wireless usb microsoft optical mouse.  I am using the most up to date xorg-server in both environments.  I first thought it was the xorg-server because of the recent trouble there but after some discussions with Jung-uk Kim we determined it was not X's fault.  I tried all types of moused options in rc.conf but none seemed to work.  I then downgraded from 7.0-Stable to 7.0-Release, and it all worked again.  Looking at what changed from release to stable there would appear to be a change in /dev/ums so I think it is there because if I switch to the Stable kernel if fails to work again.
>How-To-Repeat:
See above
>Fix:
Figure out what was changed and how it affects usb mice.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: vwe 
State-Changed-When: Thu May 8 20:06:50 UTC 2008 
State-Changed-Why:  

Merrit: Do you use moused? If so, can you try and change your xorg.conf for 
direct /dev/ums0 access instead of /dev/sysmouse? 
Please fetch the krepdump tool: 
http://people.freebsd.org/~kaiw/tools/krepdump.tgz 
extract the tarball, do a make and kldload krepdump. Then insert your device 
and grab dmesg output. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123510 
State-Changed-From-To: feedback->open 
State-Changed-By: vwe 
State-Changed-When: Thu May 8 23:40:09 UTC 2008 
State-Changed-Why:  

Feedback has been provided. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123510 
Responsible-Changed-From-To: freebsd-bugs->freebsd-usb 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Thu May 8 23:40:38 UTC 2008 
Responsible-Changed-Why:  

Over to maintainer(s). 

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

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org, tmdraney@verizon.net
Cc:  
Subject: Re: kern/123510: [ums] Mouse Wheel Fails to Work [regression]
Date: Thu, 08 May 2008 23:25:38 +0200

 Merrit,
 
 can you please check out /usr/src/sys/dev/usb/ums.c rev 1.96.2.1 from
 cvs, recompile and install kernel and see if that restores expected
 behavior?
 
 Volker

From: Oleg Sidorkin <osidorkin@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/123510: [ums] Mouse Wheel Fails to Work [regression]
Date: Sat, 17 May 2008 17:45:51 +0400

 Hello,
 
 This patch seems working for me (it's corrects a typo in ums.c)
 
 --- ums.c.orig  2008-04-15 11:09:02.000000000 +0400
 +++ ums.c       2008-04-22 09:53:12.000000000 +0400
 @@ -313,7 +313,7 @@ ums_attach(device_t self)
                         }
                 }
         } else if (hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP,
 -                                                    HUG_Z),
 +                                                    HUG_TWHEEL),
                                hid_input, &sc->sc_loc_z, &flags)) {
                 if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) {
                         printf("\n%s: Z report 0x%04x not supported\n",

From: Merritt Draney <tmdraney@verizon.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/123510: [ums] Mouse Wheel Fails to Work [regression]
Date: Sun, 18 May 2008 17:23:30 -0400

 It worked.  Thanks. 
 
 Volker wrote:
 > Merrit,
 >
 > can you please check out /usr/src/sys/dev/usb/ums.c rev 1.96.2.1 from
 > cvs, recompile and install kernel and see if that restores expected
 > behavior?
 >
 > Volker
 >
 >   
 

From: Kai Wang <kaiwang27@gmail.com>
To: bug-followup@FreeBSD.org, tmdraney@verizon.net
Cc:  
Subject: Re: kern/123510: [ums] Mouse Wheel Fails to Work [regression]
Date: Mon, 11 Aug 2008 15:10:01 +0200

 Hello Merritt,
 
 Since /usr/src/sys/dev/usb/ums.c rev 1.96.2.1 worked for you, I guess
 this might be caused by rev 1.97 which removed "TWHEEL" stuff.
 
 Could you please try the patch below and see if it also fix the
 problem?
 (Patch should apply to latest -STABLE or -CURRENT)
 
 Thanks,
 Kai
 
 
 
 --- /sys/dev/usb/ums.c	2008-05-05 20:25:42.000000000 +0200
 +++ ums.c.new	2008-08-11 15:00:37.000000000 +0200
 @@ -283,6 +283,9 @@
  	/* Try the wheel first as the Z activator since it's tradition. */
  	wheel = hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP,
  						  HUG_WHEEL),
 +			    hid_input, &sc->sc_loc_z, &flags) ||
 +		hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP,
 +						  HUG_TWHEEL),
  			    hid_input, &sc->sc_loc_z, &flags);
  
  	if (wheel) {

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/123510: commit references a PR
Date: Mon, 18 Aug 2008 16:29:36 +0000 (UTC)

 kaiw        2008-08-18 16:29:13 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/dev/usb          ums.c 
   Log:
   SVN rev 181839 on 2008-08-18 16:29:13Z by kaiw
   
   Re-add Microsoft Intellimouse 2.0 TWHEEL quirk.
   
   Tested by:      Merritt Draney, Brian Cox
   PR:             kern/123224
   PR:             kern/123510
   MFC after:      3 days
   
   Revision  Changes    Path
   1.100     +3 -0      src/sys/dev/usb/ums.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/123510: commit references a PR
Date: Sat, 23 Aug 2008 17:33:13 +0000 (UTC)

 kaiw        2008-08-23 17:32:43 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_7)
     sys/dev/usb          ums.c 
   Log:
   SVN rev 182072 on 2008-08-23 17:32:43Z by kaiw
   
   MFC r181839:
   
   Re-add Microsoft Intellimouse 2.0 TWHEEL quirk.
   
   Tested by:      Merritt Draney, Brian Cox
   PR:             kern/123224
   PR:             kern/123510
   
   Revision  Changes    Path
   1.96.2.4  +3 -0      src/sys/dev/usb/ums.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: kaiw 
State-Changed-When: Sat Aug 23 18:51:35 UTC 2008 
State-Changed-Why:  


Patched. 

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