From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 31 06:13:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4D5E16A4C0; Sun, 31 Aug 2003 06:13:44 -0700 (PDT) Received: from webmail.tiscali.de (relay1.tiscali.de [62.26.116.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id E97A443FE5; Sun, 31 Aug 2003 06:13:42 -0700 (PDT) (envelope-from walter@pelissero.de) Received: from daemon.home.loc (62.246.38.181) by webmail.tiscali.de (6.7.019) id 3F2FA20100793953; Sun, 31 Aug 2003 15:13:41 +0200 Received: from hyde.home.loc (hyde.home.loc [10.0.0.2]) by daemon.home.loc (8.12.9/8.12.8) with ESMTP id h7VDD2jl000688; Sun, 31 Aug 2003 15:13:02 +0200 (CEST) (envelope-from wcp@hyde.home.loc) Received: from hyde.home.loc (localhost [127.0.0.1]) by hyde.home.loc (8.12.9/8.12.8) with ESMTP id h7VDCuZf000710; Sun, 31 Aug 2003 15:12:56 +0200 (CEST) (envelope-from wcp@hyde.home.loc) Received: (from wcp@localhost) by hyde.home.loc (8.12.9/8.12.6/Submit) id h7VDCSQR000704; Sun, 31 Aug 2003 15:12:28 +0200 (CEST) (envelope-from wcp) From: "Walter C. Pelissero" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16209.62524.183726.612751@hyde.home.loc> Date: Sun, 31 Aug 2003 15:12:28 +0200 To: Bruce M Simpson In-Reply-To: <20030830120438.GA29217@spc.org> References: <16208.36799.970894.848331@hyde.home.loc> <20030830120438.GA29217@spc.org> X-Mailer: VM 7.16 under Emacs 21.3.50.2 X-Attribution: WP cc: hackers@freebsd.org cc: questions@freebsd.org Subject: Re: USB -> PS/2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: walter@pelissero.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2003 13:13:44 -0000 Ok, today I spent some time deciphering the ums log and came up with this patch. --- /sys/dev/usb/ums.c Wed Nov 6 21:23:50 2002 +++ ums.c Sun Aug 31 15:08:52 2003 @@ -428,10 +428,8 @@ } ibuf = sc->sc_ibuf; - if (sc->sc_iid) { - if (*ibuf++ != sc->sc_iid) - return; - } + if (sc->sc_iid) + ibuf++; dx = hid_get_data(ibuf, &sc->sc_loc_x); dy = -hid_get_data(ibuf, &sc->sc_loc_y); Unfortunately my knowledge (or rather lack of it) of the USB/UMS driver doesn't give me very much confidence that I didn't break something else. What was that conditional return suposed to protect from? Is it safe to remove it? The PS/2 mouse works now and the USB one as well. Cheers, -- walter pelissero http://www.pelissero.de Bruce M Simpson writes: > On Sat, Aug 30, 2003 at 01:51:27PM +0200, Walter C. Pelissero wrote: > > I just bought a USB -> PS/2 keyboard and mouse converter for my > > laptop. It's a Sitecom brand and it gets recognised as MCT Corp. > > I had similar problems with a Tangtop USB->PS/2 k+m adapter. > > In the end it turned out that this device was causing uhci to report > an error, even though the movement data coming in looked fine. I never > got round to fixing it. > > Perhaps you could try throwing all the debug switches on in the usb drivers > and usbd and seeing if you get similar behaviour? > > Thanks for the patch, this was the other thing that needed fixing! > > BMS