From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 17:18:53 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 C26961065670 for ; Tue, 12 Aug 2008 17:18:53 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id 4B9BC8FC17 for ; Tue, 12 Aug 2008 17:18:53 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so3917929fkk.11 for ; Tue, 12 Aug 2008 10:18:52 -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=/dVOyinQTGbdNAhnb6Mx/COibXHc6D+Ru6+RW1nOwA4=; b=CRXdHlcBteTq0VX5JzB55snKHsOq4OnOK9Hrn5wTqeF02iniTsBB1udAqWuKPI4o0D u+W1fjiuFa9Z17Br+Adicpm4y76MdYBmCBrRbOP2yvit3ghgG1x8ZbHMgMOmkhYTGvv8 xHrv1FkTzuDjNRjf4Fm3CYolR68epwq9vQdTg= 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=UPBRHnMtvSVa2Y4ywpGd4ZWW34JYDsmneacLmtW3tJrAm3dLt7fuwqdfLhpRCijvqD Jo5HEMjok+tt/qM+a23tTaqaWkkNWU73sJm7RNQfUTdoBOH/zIKsnhqwcRxAOpLkFmy+ 8hFyXtOO1PqZfLiB7YO9C9O5oRzDnio/l89Ik= Received: by 10.181.16.6 with SMTP id t6mr3384901bki.81.1218561531661; Tue, 12 Aug 2008 10:18:51 -0700 (PDT) Received: from localhost ( [85.8.1.55]) by mx.google.com with ESMTPS id f3sm1830248nfh.2.2008.08.12.10.18.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Aug 2008 10:18:50 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KSxW9-0002k6-9W; Tue, 12 Aug 2008 19:18:45 +0200 Received: (from kaffir@localhost) by localhost.my.domain (8.14.2/8.14.2/Submit) id m7CHIiUf010545; Tue, 12 Aug 2008 19:18:44 +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 19:18:44 +0200 From: Kai Wang To: Grzegorz Blach Message-ID: <20080812171844.GA10473@plan0> Mail-Followup-To: Grzegorz Blach , FreeBSD-gnats-submit@FreeBSD.org, freebsd-usb@FreeBSD.org References: <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> <20080812164224.GA9967@plan0> <20080812190137.62dba989@silver.doors> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080812190137.62dba989@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 17:18:53 -0000 On Tue, Aug 12, 2008 at 07:01:37PM +0200, Grzegorz Blach wrote: > On Tue, 12 Aug 2008 18:42:24 +0200 > Kai Wang wrote: > > > 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: > > > > 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 > > > > > > > > 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". > > > > > > I don't understand: > > Is TILT dir working when it isn't reported. > > Microsoft notebook optical 3000 > and Microsoft wireless intellimouse > 2.0, both support TITL dir. > > In documentation this is mentioned as "4-way scrolling with tilt wheel > technology". I don't know if ums(4) support the TITL dir of this mouse, I guess not. It just falsely reports it before patching. You could try to use TITL wheel with and without patching, see if there is a difference. Thanks, Kai