Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 1999 18:11:57 +0100 (CET)
From:      Nick Hibma <hibma@skylink.it>
To:        thyerm@camtech.net.au
Cc:        current@FreeBSD.ORG
Subject:   Re: How do I get a USB mouse working in todays -CURRENT ?
Message-ID:  <Pine.BSF.4.20.9912021805150.494-100000@henny.jrc.it>
In-Reply-To: <Pine.BSF.4.21.9912010130040.422-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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/




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.9912021805150.494-100000>