From owner-freebsd-usb@FreeBSD.ORG Mon Aug 11 15:19: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 37388106566B for ; Mon, 11 Aug 2008 15:19:53 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id AB93A8FC1F for ; Mon, 11 Aug 2008 15:19:52 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so884028nfh.33 for ; Mon, 11 Aug 2008 08:19:51 -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=gREFk3cnNZxUuFmwFBrV+US8neY1sB66k4oQ+Fyc6Lk=; b=FNIgTPRHc4ZMRjD3VEWPUqgXDo7+g5L7PivXOZvyDdGNBtp6m46XbONzR4gX5QtEpt 3lQw/Fh1odldxG9YKVJK51Q6O+PomIMnhxZMg6uHkGzF2dX+g0a3OmbAyzMKCteR+uZ7 Z3cGsBtyxFTCdnKu1x0c4xJT04cx8Z0ASHyVM= 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=Cm6wZDpQqgrQbBTRFtmdpjFn3HXr+1fkv3Sv1hgStqmuQw+TGq6PmDuBPgVICyxRYf 8SkI+pndhUGEHEDCk3iqUr/NEixnmbzXiNEYBHwC0/6SBAPB3TpuzFmG7HZ+a9nPFqwq zsB7MMT7B46XO3VtgZW6pVLExC1PkNV+IHCPQ= Received: by 10.210.75.6 with SMTP id x6mr9521164eba.68.1218467991576; Mon, 11 Aug 2008 08:19:51 -0700 (PDT) Received: from localhost ( [85.8.1.55]) by mx.google.com with ESMTPS id k5sm47585nfh.0.2008.08.11.08.19.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 Aug 2008 08:19:49 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KSZBO-0001Cb-1D; Mon, 11 Aug 2008 17:19:42 +0200 Received: (from kaffir@localhost) by localhost.my.domain (8.14.2/8.14.2/Submit) id m7BFJfqd004624; Mon, 11 Aug 2008 17:19:41 +0200 (CEST) (envelope-from kaiwang27@gmail.com) X-Authentication-Warning: localhost.my.domain: kaffir set sender to kaiwang27@gmail.com using -f Date: Mon, 11 Aug 2008 17:19:41 +0200 From: Kai Wang To: Grzegorz Blach Message-ID: <20080811151941.GA4590@plan0> Mail-Followup-To: Grzegorz Blach , FreeBSD-gnats-submit@FreeBSD.org, freebsd-usb@FreeBSD.org References: <200807242330.m6ONU70T091921@freefall.freebsd.org> <5d252c1d8f1ddaed55d2467adea536ca@chi.fastbighost.com> <20080811133434.GA4224@plan0> <0ed513c9800b730fff47034b86526e5d@chi.fastbighost.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0ed513c9800b730fff47034b86526e5d@chi.fastbighost.com> 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: Mon, 11 Aug 2008 15:19:53 -0000 On Mon, Aug 11, 2008 at 10:19:35AM -0400, Grzegorz Blach wrote: > > > On Mon, 11 Aug 2008 15:34:34 +0200, Kai Wang wrote: > > On Tue, Aug 05, 2008 at 10:03:15AM -0400, magik@back-up.pl wrote: > >> > >> > >> On Thu, 24 Jul 2008 23:30:07 GMT, FreeBSD-gnats-submit@FreeBSD.org > > wrote: > >> > Thank you very much for your problem report. > >> > It has the internal identification `usb/125941'. > >> > The individual assigned to look at your > >> > report is: freebsd-usb. > >> > > >> > You can access the state of your problem report at any time > >> > via this link: > >> > > >> > http://www.freebsd.org/cgi/query-pr.cgi?pr=125941 > >> > > >> >>Category: usb > >> >>Responsible: freebsd-usb > >> >>Synopsis: not working wheel on my microsoft notebook optical > > mouse > >> > 3000 > >> >>Arrival-Date: Thu Jul 24 23:30:07 UTC 2008 > >> > >> I just fixed problem with wheel on my mouse > >> and I'm sending in attachment patch for /usr/src/sys/dev/usb/ums.c file. > > > >> --- ums.c.orig 2008-08-05 17:24:21.815936911 +0200 > >> +++ ums.c 2008-08-05 17:24:51.885277111 +0200 > >> @@ -402,6 +402,7 @@ > >> sc->sc_loc_x.pos = 8; > >> sc->sc_loc_y.pos = 16; > >> sc->sc_loc_z.pos = 24; > >> + sc->sc_loc_z.size = 8; > >> sc->sc_loc_btn[0].pos = 0; > >> sc->sc_loc_btn[1].pos = 1; > >> sc->sc_loc_btn[2].pos = 2; > > > > > > Hi, > > > > Thanks for submitting the patch. It'd be great if you could also > > test the patch below for us and paste the result here, just for > > better understanding the problem. > > > > The patch adds some debug printfs: > > > > --- /sys/dev/usb/ums.c 2008-05-05 20:25:42.000000000 +0200 > > +++ ums.c 2008-08-11 15:25:44.000000000 +0200 > > @@ -284,6 +284,7 @@ > > wheel = hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, > > HUG_WHEEL), > > hid_input, &sc->sc_loc_z, &flags); > > + printf("wheel=%d\n", wheel); > > > > if (wheel) { > > if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) { > > @@ -323,6 +324,7 @@ > > sc->flags |= UMS_Z; > > } > > } > > + printf("sc->flags=0x%04x\n", sc->flags); > > > > /* > > * The Microsoft Wireless Intellimouse 2.0 reports it's wheel > > @@ -402,6 +404,7 @@ > > sc->sc_loc_x.pos = 8; > > sc->sc_loc_y.pos = 16; > > sc->sc_loc_z.pos = 24; > > + printf("sc->sc_loc_z.size=%u\n", sc->sc_loc_z.size); > > sc->sc_loc_btn[0].pos = 0; > > sc->sc_loc_btn[1].pos = 1; > > sc->sc_loc_btn[2].pos = 2; > > this, what I see: > > ums0: 0/0, rev 2.00/1.20, addr 2> on uhub0 > wheel=0 > sc->flags=0x0000 > ums0: 3 buttons and a TILT dir. > sc->sc_loc_z.size=0 > Interesting. Now I suspect that Optical Mouse 3000 model 1049 got different versions. Could you please get krepdump (http://people.freebsd.org/~kaiw/tools/krepdump.tgz) # tar xzvf krepdump.tgz # cd krepdump # make # kldload ./krepdump.ko Then plug in your mouse and paste the result here? There is one version of report desc of this mouse here: http://lists.freebsd.org/pipermail/freebsd-usb/2008-February/004617.html and my guess is your mouse's report desc is different than that... Thanks, Kai