From owner-freebsd-questions@FreeBSD.ORG Mon Nov 29 12:54:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C855F16A4CE for ; Mon, 29 Nov 2004 12:54:55 +0000 (GMT) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D51B43D46 for ; Mon, 29 Nov 2004 12:54:55 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=redshift.localdomain) by ptb-relay03.plus.net with esmtp (Exim) id 1CYl3N-000D4F-Mg for freebsd-questions@freebsd.org; Mon, 29 Nov 2004 12:54:53 +0000 From: Mark Ovens To: freebsd-questions@freebsd.org Date: Mon, 29 Nov 2004 12:54:46 +0000 User-Agent: KMail/1.7 References: <41A8E362.1070309@fastmail.fm> <200411282044.10356.marko@freebsd.org> <41AA3D1A.70702@fastmail.fm> In-Reply-To: <41AA3D1A.70702@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411291254.46954.marko@freebsd.org> Subject: Re: USB mouse support X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2004 12:54:55 -0000 On Sun November 28 2004 21:03, Trey Sizemore wrote: > Mark Ovens wrote: > >On Sun November 28 2004 19:35, Trey Sizemore wrote: > >>Mark Ovens wrote: > >>>On Sun November 28 2004 18:28, Trey Sizemore wrote: > >>>>Hmmm...not sure why mine's not working then. Is your mouse the > >>>> wireless version? Mine says Microsoft Wireless Mouse 2.0 (it's kind > >>>> of a light purple color ). > >>> > >>>Yes, same as mine. > >>> > >>>You did change ''moused_port'' in /etc/rc.conf to /dev/psm0 when you > >>>connected it to the PS/2 port, didn't you? > >> > >>I'll have to check...I'm doing a portupgrade right now, so I'll have to > >>check when that finishes. > > > >I've just applied the patch in PR kern/70607 and it works just fine - > > although I've not tested the tilt wheel because, as I said, I don't use > > it so I'm not sure how to set it up in FreeBSD. > > When you say it works fine, do you mean you've attached the mouse via > USB? Yes :-) > I'm new to FreeBSD, so how do I apply this patch to get the mouse > to work? > The patch needs a slight mod - removal of a field in a struct - from the one posted (see comments about the 'dt' field in the PR). I can e-mail you a modified version - is your re-mail address valid? Save the patch to a file, e.g. /tmp/pr70607_patch then, as root: # cd /usr/src # patch -Clp0 < /tmp/pr70607_patch [that's a lower case L and a zero] The -C just simulates what would happen without actually changing anything - just to check that the patch will apply cleanly. Make sure all the hunks succeed, you should see this: Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/dev/usb/usbhid.h.orig Mon Sep 20 00:59:48 2004 |+++ sys/dev/usb/usbhid.h Mon Sep 20 02:14:40 2004 -------------------------- Patching file sys/dev/usb/usbhid.h using Plan A... Hunk #1 succeeded at 123. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/dev/usb/ums.c.orig Mon Nov 29 12:37:13 2004 |+++ sys/dev/usb/ums.c Sun Nov 28 20:12:30 2004 -------------------------- Patching file sys/dev/usb/ums.c using Plan A... Hunk #1 succeeded at 104. Hunk #2 succeeded at 114. Hunk #3 succeeded at 140. Hunk #4 succeeded at 269. Hunk #5 succeeded at 277. Hunk #6 succeeded at 290. Hunk #7 succeeded at 408. Hunk #8 succeeded at 425. Hunk #9 succeeded at 466. Hunk #10 succeeded at 484. Hunk #11 succeeded at 503. Hunk #12 succeeded at 550. Hunk #13 succeeded at 807. done If they all succeed then do it for real: # patch -lp0 < /tmp/pr70607_patch [again a lower case L and a zero] The rebuild and install your kernel # make buildkernel && installkernel edit /etc/rc.conf to change moused_port to /dev/ums0, shutdown, connect the mouse to the USB port, restart and enjoy: Regards, Mark