Under FreeBSD 4.9-RELEASE, my USB port doesn't seem to work with my printer,
my scanner, or my external CD-R burner.  The printer is what I most wish
were working.  I dual-boot, and under Win98SE all three seem to work fine.
And FreeBSD seems to work fine as long as there's nothing plugged into the
USB port.  Can anyone give me some advice on how to get the printer (or
anything USB) working?

I have never done anything with /etc/usbd.conf -- am I supposed to?  If so,
how do I find out all those parameters (device ID, manufacturer...) ?

Here's a snippet of dmesg for a normal (quick, happy, printerless) boot:

(((NORMAL BOOTUP DMESG)))
...
ohci0: <AcerLabs M5237 (Aladdin-V) USB controller>
   mem 0xfedde000-0xfeddefff irq 9 at device 19.0 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
orm0: <Option ROM> at iomem 0xc0000-0xcb7ff on isa0
...

(((UNHAPPY BOOT)))
If the printer is plugged in to the USB port, there is a pregnant pause
(20-30 seconds) after the last uhub0 message, then an extra error message
(below).  Also, to research this problem, in my kernel I enabled options
INVARIANTS, INVARIANT_SUPPORT, and DIAGNOSTIC and fished out one additional
error message during the boot-up (also below)

(((UNHAPPY DMESG + DIAGNOSTIC STUFF)))
...
ohci0: <AcerLabs M5237 (Aladdin-V) USB controller>
   mem 0xfedde000-0xfeddefff irq 9 at device 19.0 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci_close_pipe: pipe not empty sed=0xc08d27a0
   hd=0x3dc87d0 tl=0x3dc8650 pipe=0xc08d0a00, std=0xc08d47d0
ohci_close_pipe: pipe still not empty
uhub0: device problem, disabling port 1
...

Usually the ohci_close_pipe messages do not appear -- they are there thanks
to the additional kernel options I enabled.  (And if there are some other
options I should turn on, or other switches to twiddle, so as to get more
debug info, tell me and I'll try it.)

When I try my scanner or the CD-R burner I get the same schpiel:  a long
pause, then the message:

uhub0: device problem, disabling port 1

Does anybody know what is going on here?  How can I debug this?

(((MY COMPUTER'S DETAILS)))
I'm running 4.9-RELEASE on a Toshiba Satellite 1625CDT.  I have
usbd_enable="YES" in /etc/rc.conf.  The printer (hpdeskjet 940c) is listed
under linprinters.org as working with CUPS, hpijs, and so on, so I'd think
it could be convinced to work.  The scanner is an HP ScanJet 3300C, which is
listed in /usr/src/sys/dev/usb/usbdevs.h, so someone somewhere must have
gotten it to work.  Again, my USB peripherals work under that otherOS
whichwas newin '98 . . . perhaps they all signed a treaty with resident of
/dev/ad0s1 not to cooperate with any other OS ;-)

I notice there's some dodgy stuff (disabled with #if 0) in
/usr/src/sys/dev/usb/ulpt.c -- a chunk of code in USB_ATTACH() with the
comment that, for unknown reasons, printing fails (just grep for "sigh" in
that directory).  I also notice the usb_quirks files.  Perhaps my
peripherals have some quirks that needs to be registered there?  Or was the
USB-attach code still a bit squishy when 4.9 was released?  Would it help to
upgrade to 5.X ??  Also, would this question be more appropriate
for -mobile?

I didn't say anything about lpd or cups, because I presume there's nothing
those programs can do until the printer is recognized (and CUPS is installed
and runs but it sure enough doesn't see any printer).

Thanks for any and all advice!

Andrew Predoehl
Bishkek, Kyrgyzstan


_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to