Date: Wed, 27 Feb 2008 23:39:21 +0100 From: Oliver Herold <oliver@akephalos.de> To: freebsd-stable@freebsd.org, imp@freebsd.org Subject: Re: FreeBSD 7, Razer Copperhead mouse patch Message-ID: <20080227223921.GA1158@asgard.home> In-Reply-To: <200802271641.42450.jhb@freebsd.org> References: <20080223120658.GA30178@asgard.home> <47C082E9.5000608@bsdforen.de> <200802271641.42450.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi this patch works (console, mousepointer) but it doesn't work in X. ums0: <Razer Razer Copperhead Laser Mouse, class 0/0, rev 1.10/21.00, ad dr 3> on uhub0 ums0: 7 buttons and Z dir. ukbd1: <Razer Razer Copperhead Laser Mouse, class 0/0, rev 1.10/21.00, addr 3> 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 <jhb@freebsd.org> wrote: > On Saturday 23 February 2008 03:32:41 pm Dominic Fandrey wrote: > > Oliver Herold wrote: > > > Hi > > > > > > 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: > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/118670 > > > > > > 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 > > > RELENG_7 (stable) or even Release. > > > > > > Cheers, Oliver > > > > Being a Razer fan and user I totally agree. > > Can you try this patch instead? > > Index: ums.c > =================================================================== > 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); > > - if (id->bInterfaceClass == UICLASS_HID && > + if (hid_is_collection(desc, size, > + HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE))) > + ret = UMATCH_IFACECLASS; > + else if (id->bInterfaceClass == UICLASS_HID && > id->bInterfaceSubClass == UISUBCLASS_BOOT && > id->bInterfaceProtocol == UIPROTO_MOUSE) > ret = UMATCH_IFACECLASS; > > -- > John Baldwin -- When you have an efficient government, you have a dictatorship. -- Harry S. Truman [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfF5pgACgkQbZFSiGSuUEiVEwCfanMB6NpSa3V8ZkPu7KhOBiqH uAkAmwV4mNGekU0fvA4s4/5RuGXiSNG5 =MN5U -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080227223921.GA1158>
