Re: How do I get a USB mouse working in todays -CURRENT ?
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 makemake 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.c1999/11/29 17:21:07 1.32 +++ moused.c1999/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 -- [EMAIL PROTECTED] [EMAIL PROTECTED] USB project http://www.etla.net/~n_hibma/ -- /===\ | Work: [EMAIL PROTECTED] | Home: [EMAIL PROTECTED] | \===/ "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 [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: How do I get a USB mouse working in todays -CURRENT ?
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 makemake 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.c1999/11/29 17:21:07 1.32 +++ moused.c1999/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 -- [EMAIL PROTECTED] [EMAIL PROTECTED] USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
How do I get a USB mouse working in todays -CURRENT ?
What's involved in getting a USB mouse working in -CURRENT ? I have a Micro$oft USB IntelliMouse 1.1A. I have added everything USB to my kernel (as I'm not using any USB klds) and have set usbd_enable to YES in /etc/rc.conf. My kernel and world are up to date as of about 3 hours ago and I have updated my /etc files (and hence have the latest /etc/usbd.conf). I disabled moused in /etc/rc.conf as usbd starts moused when attaching mice. This is what I see in the kernel probes (non-verbose boot with all the USB debugging options): uhci0: Intel 82371AB/EB (PIIX4) USB controller irq 12 at device 7.2 on pci0 usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0 usb0: USB revision unknown, not supported uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ums0: Microsoft IntelliMouse, rev 1.00/1.04, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. ums_attach: sc=0xc0921c00 ums_attach: X 8/8 ums_attach: Y 16/8 ums_attach: Z 24/8 ums_attach: B1 0/1 ums_attach: B2 1/1 ums_attach: B3 2/1 ums_attach: size=4, id=0 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 Do I need to change /etc/usbd.conf in some way ? Any help greatly appreciated as all my PS/2 and serial mice are dead (luckily I read mail on my dumb terminal with PINE!). -- /===\ | Work: [EMAIL PROTECTED] | Home: [EMAIL PROTECTED] | \===/ "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 [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message