From owner-freebsd-usb@FreeBSD.ORG Mon Feb 25 11:01:41 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 BB0FC16A400 for ; Mon, 25 Feb 2008 11:01:41 +0000 (UTC) (envelope-from oliver@akephalos.de) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.de [194.25.134.19]) by mx1.freebsd.org (Postfix) with ESMTP id 53A5513C459 for ; Mon, 25 Feb 2008 11:01:41 +0000 (UTC) (envelope-from oliver@akephalos.de) Received: from fwd30.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1JTaSW-0003sD-02; Mon, 25 Feb 2008 11:21:20 +0100 Received: from localhost (Z4tpjBZZQtkd39TR7JPKXfwu5qHwm-ZdDoNfqaV1KqYU6mjJBdaWUUGxyhC5JWxaXwe3rDRSKF@[91.21.99.229]) by fwd30.t-online.de with esmtp id 1JTaSG-0rXJMO0; Mon, 25 Feb 2008 11:21:04 +0100 Date: Mon, 25 Feb 2008 11:21:04 +0100 From: Oliver Herold To: freebsd-usb@freebsd.org Message-ID: <20080225102104.GA1019@asgard.home> Mail-Followup-To: Oliver Herold , freebsd-usb@freebsd.org, kaiwang27@gmail.com References: <200802242330.m1ONU4H3074911@freefall.freebsd.org> <20080225022450.GA40942@plan0.kaiwan.csbnet.se> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <20080225022450.GA40942@plan0.kaiwan.csbnet.se> X-PGP-Key: http://www.fixmbr.de/wp-content/uploads/oliver-gpg-key.asc User-Agent: Mutt/1.5.17 (2007-11-01) X-ID: Z4tpjBZZQtkd39TR7JPKXfwu5qHwm-ZdDoNfqaV1KqYU6mjJBdaWUUGxyhC5JWxaXwe3rDRSKF X-TOI-MSGID: f73892bf-9c38-4861-9abf-95ca02f506f6 Cc: Subject: Re: usb/121052: Microsoft Notebook Optical Mouse 3000 (model 1049) doesn't work 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, 25 Feb 2008 11:01:41 -0000 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi heureka, it works like a charm. Thanks a lot. First the patch didn't work (patch on uhub0 ums0: 3 buttons and Z dir and a TILT dir. ums0: find wlnotebook3 Cheers, Oliver Kai Wang wrote: > On Sun, Feb 24, 2008 at 11:30:04PM +0000, Oliver Herold wrote: > > this is the output of krepdump: >=20 > Could you please try the patch attached below and see what happens? > (you need recompile kernel) well.. since this is just a speculation > based on the report descriptor, it may not work at all... >=20 >=20 >=20 > diff -urN usb.old/ums.c usb/ums.c > --- usb.old/ums.c 2008-02-25 02:40:31.000000000 +0100 > +++ usb/ums.c 2008-02-25 03:07:08.000000000 +0100 > @@ -353,6 +353,22 @@ > sc->sc_loc_btn[2].pos =3D 10; > } > =20 > + if (uaa->vendor =3D=3D USB_VENDOR_MICROSOFT && > + uaa->product =3D=3D USB_PRODUCT_MICROSOFT_WLNOTEBOOK3) { > + printf("%s: find wlnotebook3\n", > + device_get_nameunit(sc->sc_dev)); > + sc->flags =3D UMS_Z; > + sc->nbuttons =3D 3; > + sc->sc_isize =3D 5; > + sc->sc_iid =3D 17; > + sc->sc_loc_x.pos =3D 8; > + sc->sc_loc_y.pos =3D 16; > + sc->sc_loc_z.pos =3D 24; > + sc->sc_loc_btn[0].pos =3D 0; > + sc->sc_loc_btn[1].pos =3D 1; > + sc->sc_loc_btn[2].pos =3D 2; > + } > + > sc->sc_ep_addr =3D ed->bEndpointAddress; > sc->sc_disconnected =3D 0; > free(desc, M_TEMP); > diff -urN usb.old/usbdevs usb/usbdevs > --- usb.old/usbdevs 2008-02-25 02:40:31.000000000 +0100 > +++ usb/usbdevs 2008-02-25 02:06:20.000000000 +0100 > @@ -1641,6 +1641,7 @@ > product MICROSOFT WLINTELLIMOUSE 0x008c Wireless Optical IntelliMouse > product MICROSOFT WLNOTEBOOK 0x00b9 Wireless Optical Mouse (Model 1023) > product MICROSOFT WLNOTEBOOK2 0x00e1 Wireless Optical Mouse 3000 (Model = 1056) > +product MICROSOFT WLNOTEBOOK3 0x00d2 Wireless Optical Mouse 3000 (Model = 1049) > product MICROSOFT WLUSBMOUSE 0x00b9 Wireless USB Mouse > product MICROSOFT XBOX360 0x0292 XBOX 360 WLAN > =20 --=20 Just go with the flow control, roll with the crunches, and, when you get a prompt, type like hell. --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfClo8ACgkQbZFSiGSuUEhe8gCgq7pzKl98sh8jdf/h7TAlV6pT xMoAmwaShoAsZFiMYa4575AKtpqcMtTA =EH4D -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--