From owner-freebsd-current@FreeBSD.ORG Fri Mar 13 20:28:54 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00A3B10656C6 for ; Fri, 13 Mar 2009 20:28:53 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 8D8288FC14 for ; Fri, 13 Mar 2009 20:28:52 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from wolfram.andreas.nets ([91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id n2DKSo3Y075797; Fri, 13 Mar 2009 21:28:50 +0100 (CET) (envelope-from andreast-list@fgznet.ch) Message-ID: <49BAC201.7020101@fgznet.ch> Date: Fri, 13 Mar 2009 21:28:49 +0100 From: Andreas Tobler User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Hans Petter Selasky References: <49BAB1A0.3040007@fgznet.ch> <200903132112.30237.hselasky@c2i.net> In-Reply-To: <200903132112.30237.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: freebsd-current@freebsd.org Subject: Re: Apple Optical USB Mouse no more working with current. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2009 20:28:54 -0000 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@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: at usbus0 >> ums0: > 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) @@ -441,7 +441,7 @@ /* 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: at usbus0 ums0: 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: at usbus0 ums1: on usbus0 ums1: 1 buttons and [XY] coordinates Regards, Andreas