From owner-freebsd-usb@FreeBSD.ORG Tue Nov 21 01:22:36 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 05E7F16A415 for ; Tue, 21 Nov 2006 01:22:36 +0000 (UTC) (envelope-from markus@FreeBSD.org) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0B3743D5C for ; Tue, 21 Nov 2006 01:22:15 +0000 (GMT) (envelope-from markus@FreeBSD.org) Received: from mail-in-01-z2.arcor-online.net (mail-in-01-z2.arcor-online.net [151.189.8.13]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 74C9B27BB0C; Tue, 21 Nov 2006 02:22:33 +0100 (CET) Received: from mail-in-10.arcor-online.net (mail-in-10.arcor-online.net [151.189.21.50]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id 68896DF4FE; Tue, 21 Nov 2006 02:22:33 +0100 (CET) Received: from ramses.kicks-ass.net (dslb-084-061-026-121.pools.arcor-ip.net [84.61.26.121]) by mail-in-10.arcor-online.net (Postfix) with ESMTP id 19B7B2351A1; Tue, 21 Nov 2006 02:22:32 +0100 (CET) Received: from p508fe160.dip.t-dialin.net (p508FE160.dip.t-dialin.net [80.143.225.96]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id 4FB93B80A; Tue, 21 Nov 2006 02:22:33 +0100 (CET) From: Markus Brueffer To: freebsd-usb@freebsd.org, "Dorr H. Clark" Date: Tue, 21 Nov 2006 02:22:03 +0100 User-Agent: KMail/1.9.4 References: <200611201800.kAKI0cgC005510@freefall.freebsd.org> In-Reply-To: <200611201800.kAKI0cgC005510@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1239593.lhoB3R9Dnu"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200611210222.14538.markus@FreeBSD.org> X-Mailman-Approved-At: Tue, 21 Nov 2006 02:07:26 +0000 Cc: Subject: Re: 6.x fix for 90162 (was Re: usb/90162: [usb] [patch] Add support for the MS Wireless USB Mouse) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2006 01:22:36 -0000 --nextPart1239593.lhoB3R9Dnu Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 20 November 2006 19:00, Dorr H. Clark wrote: > The following reply was made to PR usb/90162; it has been noted by GNATS. > > From: "Dorr H. Clark" > To: bug-followup@FreeBSD.org, hm@FreeBSD.org > Cc: > Subject: 6.x fix for 90162 (was Re: usb/90162: [usb] [patch] Add support > for the MS Wireless USB Mouse) > Date: Mon, 20 Nov 2006 09:52:53 -0800 > > This change adds support for the Microsoft Wireless Notebook > Optical Mouse, which fixes 90162. The fix addresses the 3 problems > associated with this mouse: its misrepresentation as a uhid device, > invalid offsets for its buttons and x,y,z position coordinates, > and the phantom button click. > > The first problem is resolved by bypassing hid_is_collection() and > reading the usb interface descriptor directly to detect a usb mouse. > The second problem is resolved by hard coding the offsets of the > mouse's buttons. The third problem is resolved by ignoring all > interrupts requests for that mouse with the first byte of ibuf > set to 0x14. The real problem here is twofold: 1. Our HID parser has major shortcomings in many ways, which are e.g.=20 responsible for the messed up item positions you are seeing. 2. ums(4) can only handle mice which report relevant events in a report with id 0. If a report with a different id comes in (0x14 in this case), things get messy. I'm currently working on a fix for this as well as our other HID drivers an= d=20 related userland tools. Cheers, Markus =2D-=20 Markus Brueffer =A0 =A0| GPG-Key: http://people.FreeBSD.org/~markus/markus.= asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --nextPart1239593.lhoB3R9Dnu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFYlTG1I0Qcnj4qNQRAmXSAKDziBPGpSQ1szcz+o7mEb1+ffPe0gCfXTzH kPWFtWHdRJmSZniZBvP2gXY= =mHoS -----END PGP SIGNATURE----- --nextPart1239593.lhoB3R9Dnu--