From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 16:42:32 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CE651065670 for ; Tue, 12 Aug 2008 16:42:32 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id 086388FC16 for ; Tue, 12 Aug 2008 16:42:31 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so1198049nfh.33 for ; Tue, 12 Aug 2008 09:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=bWWwy3JsCaOAwbfTSUd0Y0+EW+9iqB09xXksB2obzWA=; b=go8tZp8I7WU07qITq2CDp0qPc8TTrtudSWH+FoKnipdVLS0Kn4hyWrS3jBF1oDqhqJ 3AWeJR9226VuM2muSegpM4XPKx3Bl0SBzWMkdUVfJDkyZI/WdgR2I/pY4nFiqnpuuHq7 UEKxjkyP/mUwyUrFyRuHH8/LS1mwN5JPUE5bM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; b=RTRU0C1hzUoUcHHBZMQKCnA2ZswRQCvzXhGJRnYpDf3HMuf0Z9/VOfpJkWxIr0Xf/5 jk3jMPUCrUeOKHwh9i5A17HSGSGbIa1K+QqkSIrd8fD7DYdpgigPKvAg429vSF5RNhdo ASVKNuH5o34TpKMkymYPFr02YYweXoFvfHmLg= Received: by 10.187.185.8 with SMTP id m8mr901892fap.93.1218559350835; Tue, 12 Aug 2008 09:42:30 -0700 (PDT) Received: from localhost ( [85.8.1.55]) by mx.google.com with ESMTPS id k10sm202395nfh.25.2008.08.12.09.42.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Aug 2008 09:42:30 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KSwwy-0002gu-N0; Tue, 12 Aug 2008 18:42:24 +0200 Received: (from kaffir@localhost) by localhost.my.domain (8.14.2/8.14.2/Submit) id m7CGgOGu010347; Tue, 12 Aug 2008 18:42:24 +0200 (CEST) (envelope-from kaiwang27@gmail.com) X-Authentication-Warning: localhost.my.domain: kaffir set sender to kaiwang27@gmail.com using -f Date: Tue, 12 Aug 2008 18:42:24 +0200 From: Kai Wang To: Grzegorz Blach Message-ID: <20080812164224.GA9967@plan0> Mail-Followup-To: Grzegorz Blach , FreeBSD-gnats-submit@FreeBSD.org, freebsd-usb@FreeBSD.org References: <20080811133434.GA4224@plan0> <0ed513c9800b730fff47034b86526e5d@chi.fastbighost.com> <20080811151941.GA4590@plan0> <310aef2cb8e5bbcc7cf345f962cb102b@chi.fastbighost.com> <20080812022710.GA7527@plan0> <20080812143016.2ac5a7a4@silver.doors> <20080812133029.GA9576@plan0> <20080812165329.47bc22d8@silver.doors> <20080812150139.GA9769@plan0> <20080812181744.5b7be17c@silver.doors> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080812181744.5b7be17c@silver.doors> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD-gnats-submit@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/125941: not working wheel on my microsoft notebook optical mouse 3000 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, 12 Aug 2008 16:42:32 -0000 On Tue, Aug 12, 2008 at 06:17:44PM +0200, Grzegorz Blach wrote: > On Tue, 12 Aug 2008 17:01:39 +0200 > Kai Wang wrote: > > > > > > > Could you please try the patch attached > > > > > > against /sys/dev/usb/hid.c along with the debug printf patch > > > > > > for ums.c, and see what the result will be? > > > > > > > > > > > > > > > > > > > > > > kernel with appiled this two patches reports that: > > > > > > > > > > ums0: > > > > Wheel, class 0/0, rev 2.00/1.20, addr 2> on uhub0 ums0: mouse > > > > > has no Y report device_attach: ums0 attach returned 6 > > > > > > > > > > > > > Sorry I made a mistake in previous patch. > > > > > > > > How about this one? > > > > > > > > > > Again, the same message as above: > > > > > > ums0: > > class 0/0, rev 2.00/1.20, addr 2> on uhub0 > > > ums0: mouse has no Y report > > > device_attach: ums0 attach returned 6 > > > > Strange.. This should not happen. Did you revert previous hid.c > > patch before applying this one? > > OK, I have updated source from cvs, then appiled hid.diff and rebuild > kernel, when kernel boot I see: > > ums0: class 0/0, rev 2.00/1.20, addr 2> on uhub0 wheel=1 > sc->flags=0x0001 > ums0: 3 buttons and Z dir. > sc->sc_loc_z.size=8 Great! Thank you again for testing all these stuff. > Wheel is working correctly, but I don't have info about TILT dir (but > I never used this direction). It was wrong that ums(4) reported the mouse has "a TILT dir" before. The TWHEEL(0x48) usage inside the report desc of this mouse is a FEATURE item, while the Microsoft Wireless Intellimouse 2.0 quirk (the hid_locate call around line 334) tries to find a TWHEEL usage with a INPUT item, because of the hid parser bug, it will mistakenly find the next INPUT item, (which is the WHEEL input item) and report the "TILT dir".