From owner-freebsd-current Fri Dec 3 4:48:57 1999 Delivered-To: freebsd-current@freebsd.org Received: from camtech.net.au (goliath.camtech.net.au [203.5.73.2]) by hub.freebsd.org (Postfix) with SMTP id D2E3F14E5C for ; Fri, 3 Dec 1999 04:48:47 -0800 (PST) (envelope-from matt@camtech.net.au) Received: from dialup-ad-10-39.camtech.net.au ([203.28.1.167]) by camtech.net.au ; Fri, 03 Dec 1999 23:18:39 +1030 Date: Fri, 3 Dec 1999 23:18:39 +1030 (CST) From: Matthew Thyer X-Sender: matt@localhost Reply-To: thyerm@camtech.net.au To: Nick Hibma Cc: current@FreeBSD.ORG Subject: Re: How do I get a USB mouse working in todays -CURRENT ? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks Nick, my USB mouse works perfectly now. On Thu, 2 Dec 1999, Nick Hibma wrote: > > The problem is that the mouse doesn't work (its not a hardware problem), > > all I get whenever I move the mouse are lots of the following messages > > on the console: > > > > Discarded 7 bytes in queue > > This means that your mouse is working but moused is closing while the > buffer is not empty yet. This looks a lot like my mistake I fixed > earlier. > > > Do I need to change /etc/usbd.conf in some way ? > > No, you are probably looking at a stale moused.c. Please update the file > /usr/src/usr.sbin/moused/moused.c with the following diff (there is an > extra semicolon at the end of that line) and execute make&&make install > in that directory: > > Index: src/usr.sbin/moused/moused.c > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/moused/moused.c,v > retrieving revision 1.32 > retrieving revision 1.33 > diff -u -w -r1.32 -r1.33 > --- moused.c 1999/11/29 17:21:07 1.32 > +++ moused.c 1999/11/30 10:20:33 1.33 > @@ -746,7 +746,7 @@ > } > > /* mouse event */ > - if (read(rodent.mfd, &b, 1) == -1); > + if (read(rodent.mfd, &b, 1) == -1) > return; /* file seems to be closed on us */ > > if (r_protocol(b, &action)) { /* handler detected action */ > > Nick > -- > hibma@skylink.it > n_hibma@freebsd.org USB project > http://www.etla.net/~n_hibma/ > > -- /=======================================================================\ | Work: Matthew.Thyer@dsto.defence.gov.au | Home: thyerm@camtech.net.au | \=======================================================================/ "If it is true that our Universe has a zero net value for all conserved quantities, then it may simply be a fluctuation of the vacuum of some larger space in which our Universe is imbedded. In answer to the question of why it happened, I offer the modest proposal that our Universe is simply one of those things which happen from time to time." E. P. Tryon from "Nature" Vol.246 Dec.14, 1973 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message