From owner-freebsd-stable@FreeBSD.ORG Wed Feb 27 22:39:31 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20869106566B for ; Wed, 27 Feb 2008 22:39:31 +0000 (UTC) (envelope-from oliver@akephalos.de) Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.de [194.25.134.17]) by mx1.freebsd.org (Postfix) with ESMTP id A8C2A8FC1A for ; Wed, 27 Feb 2008 22:39:30 +0000 (UTC) (envelope-from oliver@akephalos.de) Received: from fwd25.aul.t-online.de by mailout02.sul.t-online.com with smtp id 1JUUvw-0007cc-03; Wed, 27 Feb 2008 23:39:28 +0100 Received: from localhost (TW2wveZVrtvIDJSboIGDt416APLUeSEFmi-V6pV8Y-VKptWfQDmfw0WSAAtnSEo59OUE4oK4is@[91.21.116.26]) by fwd25.t-online.de with esmtp id 1JUUvq-0e5Z4a0; Wed, 27 Feb 2008 23:39:22 +0100 Date: Wed, 27 Feb 2008 23:39:21 +0100 From: Oliver Herold To: freebsd-stable@freebsd.org, imp@freebsd.org Message-ID: <20080227223921.GA1158@asgard.home> Mail-Followup-To: Oliver Herold , freebsd-stable@freebsd.org, imp@freebsd.org References: <20080223120658.GA30178@asgard.home> <47C082E9.5000608@bsdforen.de> <200802271641.42450.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <200802271641.42450.jhb@freebsd.org> 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: TW2wveZVrtvIDJSboIGDt416APLUeSEFmi-V6pV8Y-VKptWfQDmfw0WSAAtnSEo59OUE4oK4is X-TOI-MSGID: eac49684-3250-4fbd-857f-fcb9472e95c6 Cc: Subject: Re: FreeBSD 7, Razer Copperhead mouse patch X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 22:39:31 -0000 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi this patch works (console, mousepointer) but it doesn't work in X. ums0: on uhub0 ums0: 7 buttons and Z dir. ukbd1: o n uhub0 kbd3 at ukbd1 --- AUDIT: Wed Feb 27 23:36:12 2008: 1149 X: client 1 rejected from local host (uid 1001) Auth name: MIT-MAGIC-COOKIE-1 ID: -1 Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key waiting for X server to begin accepting connections . AUDIT: Wed Feb 27 23:36:14 2008: 1149 X: client 1 rejected from local host (uid 1001) Auth name: MIT-MAGIC-COOKIE-1 ID: -1 Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key --- So I cannot use the Razer (or any other mouse) in X with this patch. --Oliver John Baldwin wrote: > On Saturday 23 February 2008 03:32:41 pm Dominic Fandrey wrote: > > Oliver Herold wrote: > > > Hi > > >=20 > > > the Razer Copperhead mouse did work in FreeBSD 7 (current) for a long > > > time, but after some period it stopped working. This patch from Uwe > > > Grohnwaldt: > > >=20 > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dusb/118670 > > >=20 > > > fixes this wrong behaviour (it's detected as keyboard) and makes the > > > mouse work in FreeBSD 7 again. Would be imho a nice addition for=20 > > > RELENG_7 (stable) or even Release. > > >=20 > > > Cheers, Oliver > >=20 > > Being a Razer fan and user I totally agree. >=20 > Can you try this patch instead? >=20 > Index: ums.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /usr/cvs/src/sys/dev/usb/ums.c,v > retrieving revision 1.97 > diff -u -r1.97 ums.c > --- ums.c 26 Dec 2007 14:31:16 -0000 1.97 > +++ ums.c 27 Feb 2008 21:40:48 -0000 > @@ -198,7 +198,10 @@ > if (err) > return (UMATCH_NONE); > =20 > - if (id->bInterfaceClass =3D=3D UICLASS_HID && > + if (hid_is_collection(desc, size, > + HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE))) > + ret =3D UMATCH_IFACECLASS; > + else if (id->bInterfaceClass =3D=3D UICLASS_HID && > id->bInterfaceSubClass =3D=3D UISUBCLASS_BOOT && > id->bInterfaceProtocol =3D=3D UIPROTO_MOUSE) > ret =3D UMATCH_IFACECLASS; >=20 > --=20 > John Baldwin --=20 When you have an efficient government, you have a dictatorship. -- Harry S. Truman --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfF5pgACgkQbZFSiGSuUEiVEwCfanMB6NpSa3V8ZkPu7KhOBiqH uAkAmwV4mNGekU0fvA4s4/5RuGXiSNG5 =MN5U -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--