From owner-freebsd-questions Sat Aug 21 10:34:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from www.keycomp.net (www.keycomp.net [207.44.1.33]) by hub.freebsd.org (Postfix) with ESMTP id 07AC015186 for ; Sat, 21 Aug 1999 10:34:51 -0700 (PDT) (envelope-from billieakay@yahoo.com) Received: from bopper (kc-rmt11.keycomp.net [207.44.1.13]) by www.keycomp.net (8.8.5/SCO5) with SMTP id NAA21910; Sat, 21 Aug 1999 13:40:34 -0400 (EDT) Message-ID: <001301beebfa$45473b00$01010101@bopper> From: "Bill A. K." To: "M. L. Dodson" , "FreeBSD Questions" References: <005701bee601$fb27d500$01010101@bopper><199908201525.KAA23423@beowulf.utmb.edu><001501beeb47$270e3340$01010101@bopper> <199908202032.PAA46839@beowulf.utmb.edu> Subject: Re: Logitech USB Mouse Date: Sat, 21 Aug 1999 13:26:12 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I really hate to bother you, but I went to add that kernel patch for the USB Mouse, and guess what? Because I recently upgraded to 4.0-CURRENT, the code that you told me to patch isin't the same. Maybe I should stop bothering you and ask the BSD-USB mailing list. I would like to know the addess of that mailing list either way :) Thanks for all of your help Bill billieakay@yahoo.com ----- Original Message ----- From: M. L. Dodson To: Bill A. K. Sent: Friday, August 20, 1999 4:32 PM Subject: Re: Logitech USB Mouse > Bill A. K. writes: > > Hello, > > > > Thanks for the USB patch.........my only problem now is how to install > > it. > > > > is there any way to automatically patch the file or do i have to edit it > > manually? > > > > its an awfully big file............ > > Well that depends totally on what version you are running. This > patch is against 3.2R with the PAO3 patches applied (which I > think are unimportant as far as USB is concerned). If you just > want to try to see if it works, just change to /usr/src/sys, > then, as root, do > > patch < patch.file.name > > where patch.file.name is whatever you called the email message I > sent (the single message, not the whole mailbox, that is). If > you get an error message about the patch being rejected, then > just change from /usr/src/sys to /usr/src/sys/dev/usb and edit > the file usbdi.c (copy the unmodified file to have a .orig suffix > first). Page down to line 920. Somewhere nearby, you should see > text that is the same or similar to that in the patch. Just > change the 0 to a 1 with the editor, save the file, exit and > rebuild your kernel. I always do a config -r KERNELNAME to be > sure to pick up the new file. Be sure and do a make depend > first. make install and reboot. Things won't work if you are > using moused with the USB mouse (as you well know), so you want > to do boot -s, fsck -a to fix the filesystems, then exit to go > multiuser. Remember you can boot kernel.old, if things go wrong. > > > > > please let me know. > > > > Bill > > billieakay@yahoo.com > > > > ----- Original Message ----- > > From: M. L. Dodson > > To: Bill A. K. > > Cc: FreeBSD Questions > > Sent: Friday, August 20, 1999 11:25 AM > > Subject: Logitech USB Mouse > > > > > > > Bill A. K. writes: > > > > Hi, > > > > Some of you have maybe seen me posting about this question before. > > > > > > > > i'm having a problem with a Logitech USB Mouse. > > > > > > > > When I shutdown the system or even killall moused, the system crashes > > with > > > > an error. i think it's a page fault if i remember correctly (i would > > post > > > > the output, but i don't know how to get the dmesg output) > > > > > > > > I have tried this and seen the same behavior on FreeBSD 3.2-RELEASE and > > > > FreeBSD 4.0-CURRENT (Just downloaded yesterday night and compiled > > today, so > > > > my current is current) > > > > > > > [elided] > > > > If anybody else has run into this problem and knows how to fix it, or > > if > > > > anybody know of any patches or updates or anything at all, please let > > me > > > > know. > > > > > > > > Thanks > > > > > > > > Bill > > > > billieakay@yahoo.com > > > > > > > > > > I've been able to reproduce your problem on 3.2R+PAO3, and will > > > furnish a patch from the BSD-USB mailing list. Also, if you > > > start having trouble with the USB mouse, try changing the order > > > of the usb _devices_ in the kernel config file; something > > > happened recently, I think, to change the probe order relative to > > > that in LINT, and it causes the mouse to be found on the probe to > > > ugen0 (but I am not sure of the technical details). You need to > > > create /dev/{ums0,usb0}, if you have not done so. > > > > > > Patch relative to /usr/src/sys: > > > > > > *** dev/usb/usbdi.c.orig Sat May 8 18:04:58 1999 > > > --- dev/usb/usbdi.c Thu Aug 19 16:15:05 1999 > > > *************** > > > *** 917,923 **** > > > { > > > usbd_request_handle reqh; > > > > > > ! #if 0 > > > for (;;) { > > > reqh = SIMPLEQ_FIRST(&pipe->queue); > > > if (reqh == 0) > > > --- 917,923 ---- > > > { > > > usbd_request_handle reqh; > > > > > > ! #if 1 > > > for (;;) { > > > reqh = SIMPLEQ_FIRST(&pipe->queue); > > > if (reqh == 0) > > -- > M. L. Dodson bdodson@scms.utmb.edu > 409-772-2178 FAX: 409-772-1790 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message