Re: Apple Optical USB Mouse no more working with current.

From: Andreas Tobler <andreast-list_at_fgznet.ch>
Date: Fri, 13 Mar 2009 21:28:49 +0100
Hans Petter Selasky wrote:
> On Friday 13 March 2009, Andreas Tobler wrote:
>> Hi,
>>
>> I upgrade today to 189774 and my Apple optical USB Mouse does not longer
>> work.
>>
>> Here the details:
>>
>> FreeBSD 8.0-CURRENT #1 r189749:189774M: Fri Mar 13 19:48:48 CET 2009
>>
>> andreast_at_deuterium_fbsd.andreas.nets:/export/devel/obj/powerpc/export/devel
>> /fbsd_svn/src/sys/GENERIC cpu0: Motorola PowerPC 750 revision 3.2, 500.00
>> MHz
>> ...
>> ugen0.4: <Fujitsu Takamisawa Component> at usbus0
>> ums0: <Fujitsu Takamisawa Component Apple Optical USB Mouse, class 0/0,
>> rev 1.10/1.05, addr 4> on usbus0
>> hid_get_item:452: Usage set dropped!
>> hid_get_item:452: Usage set dropped!
>> hid_get_item:452: Usage set dropped!
>> hid_get_item:452: Usage set dropped!
>> hid_get_item:452: Usage set dropped!
>> hid_get_item:452: Usage set dropped!
>> hid_get_item:452: Usage set dropped!
>> hid_get_item:452: Usage set dropped!
>> ums0: 0 buttons and [XY] coordinates
>>
>>
>> imacb# usbconfig -u 0 -a 4 do_request 0x81 0x06 0x2200 0 0x100
>> REQUEST = <0x05 0x01 0x09 0x02 0xa1 0x01 0x09 0x01 0xa1 0x00 0x05 0x09
>> 0x19 0x01 0x29 0x01 0x15 0x00 0x25 0x01 0x95 0x01 0x75 0x01 0x81 0x02
>> 0x95 0x01 0x75 0x07 0x81 0x01 0x05 0x01 0x09 0x30 0x09 0x31 0x15 0x81
>> 0x25 0x7f 0x75 0x08 0x95 0x02 0x81 0x06 0xc0 0xc0><)%uu01%u>
>>
>>
>> This is with a GENERIC Kernel with fw disabled.
>>
>> Do I need to configure anything or is this a potential issue with the
>> usb stack?
>>
>> world is up-to-date, means 2 days old.
> 
> Try the following patch:
> 
> http://perforce.freebsd.org/chv.cgi?CH=159179

[deuterium_fbsd:sys/dev/usb] andreast% svn diff  usb_hid.c
Index: usb_hid.c
===================================================================
--- usb_hid.c	(revision 189775)
+++ usb_hid.c	(working copy)
_at__at_ -441,7 +441,7 _at__at_

  				/* sanity check */
  				if ((s->nusage < MAXUSAGE) &&
-				    (c->usage_minimum < c->usage_maximum)) {
+				    (c->usage_minimum <= c->usage_maximum)) {
  					/* add usage range */
  					s->usages_min[s->nusage] =
  					    c->usage_minimum;

Thanks a lot!

ugen0.4: <Fujitsu Takamisawa Component> at usbus0
ums0: <Fujitsu Takamisawa Component Apple Optical USB Mouse, class 0/0, 
rev 1.10/1.05, addr 4> on usbus0
ums0: 1 buttons and [XY] coordinates

No more "hid_get_item:452: Usage set dropped!"

Now the mouse is usable again, on console and X.

Also with a second mouse:
ugen0.5: <Logitech> at usbus0
ums1: <Logitech Apple Optical USB Mouse, class 0/0, rev 2.00/3.40, addr 
5> on usbus0
ums1: 1 buttons and [XY] coordinates

Regards,
Andreas
Received on Fri Mar 13 2009 - 19:28:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:43 UTC