From owner-freebsd-stable@FreeBSD.ORG Sun Mar 20 14:46:52 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D7C916A4CE for ; Sun, 20 Mar 2005 14:46:52 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 544E843D58 for ; Sun, 20 Mar 2005 14:46:51 +0000 (GMT) (envelope-from marius.nuennerich@gmx.net) Received: (qmail invoked by alias); 20 Mar 2005 14:46:50 -0000 Received: from pD9E5FD64.dip.t-dialin.net (EHLO olaf.hackerzberg.dyndns.org) [217.229.253.100] by mail.gmx.net (mp027) with SMTP; 20 Mar 2005 15:46:50 +0100 X-Authenticated: #5707313 Date: Sun, 20 Mar 2005 15:46:44 +0100 From: Marius =?ISO-8859-1?Q?N=FCnnerich?= To: freebsd-stable@freebsd.org Message-ID: <20050320154644.15099866@olaf.hackerzberg.dyndns.org> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Signature_Sun__20_Mar_2005_15_46_44_+0100_adMgHX4g_Wog7/YT"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Y-GMX-Trusted: 0 Subject: USB Mouse not working X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 14:46:52 -0000 --Signature_Sun__20_Mar_2005_15_46_44_+0100_adMgHX4g_Wog7/YT Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, I recently purchased a cheap USB mouse/keyboard combination. If I plug it in /dev/ums0 is created, I also can run moused -p /dev/ums0, but the mouse will not move. I upgraded to a recent -STABLE, so ums.c is version 1.70.2.2. I compiled a kernel with options USB_DEBUG and set hw.usb.ums.debug=3D9999. With cat /dev/ums0 > /dev/null I can see the Debug Info on the console: ums_intr: sc=3D0x19d5c00 status=3D13 ums_intr: data =3D 01 00 00 00 00 01 ums_intr: status=3D13 It seems that this mouse sends 1 extra byte before the usual data, just like the MS Wireless Intellimouse 2.0, because data is like: 01 BUTTON X Y Z 01 But seems like ums_intr() returns on line 467, so I tried this: --- /sys/dev/usb/ums.c Sun Mar 20 14:54:14 2005 +++ /root/ums.c Sun Mar 20 14:54:04 2005 @@ -456,7 +456,7 @@ * Currently it's the only user of UMS_T so use it as an identifier. * We probably should switch to some more official quirk. */ - if (sc->flags & UMS_T) { +/* if (sc->flags & UMS_T) { if (sc->sc_iid) { if (*ibuf++ =3D=3D 0x02) return; @@ -468,9 +468,11 @@ } } =20 +*/ *ibuf++; It sort of works. If I run moused -p /dev/ums0 I can actually use that mouse, BUT it moves jerky, I have to move the wheel two positions to get one and when a button is pressed when the mouse stands still it is not recognized. The mouse _must_ move for the button to get noticed. Has anyone an idea what to try next? Any help would be greatly appreciated! Marius --Signature_Sun__20_Mar_2005_15_46_44_+0100_adMgHX4g_Wog7/YT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCPYzZFqu2z7AvZZQRAlDWAKCieFvW6/Do6k7pDUSgxZ4yvuI59gCfUjwb WclUqn/u3Rdd0B/se0T/6rw= =AMF0 -----END PGP SIGNATURE----- --Signature_Sun__20_Mar_2005_15_46_44_+0100_adMgHX4g_Wog7/YT--