problem with usb printer

Alexander Best alexbestms at math.uni-muenster.de
Sat Mar 14 12:17:01 PDT 2009


alright. here's some more information. when i attach the printer i get the
following output:

uhub_reattach_port:348: port 2 reset failed, error=USB_ERR_TIMEOUT
uhub_reattach_port:434: device problem (USB_ERR_TIMEOUT), disabling port 2
ugen0.3: <Samsung Electronics Co., Ltd.> at usbus0
ulpt_probe:472:
ulpt_attach:498: sc=0xc5f81200
ulpt0: <Samsung Electronics Co., Ltd. Samsung ML-1510_700, class 0/0, rev
1.10/1.00, addr 3> on usbus0
ulpt_attach:538: setting alternate config number: 0
ulpt0: using bi-directional mode

when i simply issue a print command using `lp file` i get the following
output:

ulpt_reset:164:
ulpt_write_callback:203: state=0x0
ulpt_write_callback:203: state=0x1
ulpt_write_callback:203: state=0x1
ulpt_write_callback:203: state=0x1
ulpt_write_callback:203: state=0x1
ulpt_write_callback:203: state=0x1
ulpt_write_callback:203: state=0x1
ulpt_write_callback:203: state=0x1
ulpt_write_callback:203: state=0x1

at this point the printers light flashes a few times indicating that it's
about to print. but nothing get's printed. `lpq` tells me that the job has
been finished succesfully.

the problem where the console get's flooded with warnings and the printer's
led reports an error appears randomly. i'm trying to figure out how to exactly
to reproduce it.

alex

Hans Petter Selasky schrieb am 2009-03-14:
> On Saturday 14 March 2009, Alexander Best wrote:
> > hi there.

> > i'm having a problem with my usb printer. it's being recognised as
> > ulpt0,
> > but i cannot print. i'm using the cups port for printing. i've set
> > hw.usb2.ulpt.debug=15 and this is the output:

> > uhub_reattach_port:348: port 2 reset failed, error=USB_ERR_TIMEOUT
> > uhub_reattach_port:434: device problem (USB_ERR_TIMEOUT), disabling
> > port 2
> > ugen0.3: <Samsung Electronics Co., Ltd.> at usbus0
> > ulpt_probe:472:
> > ulpt_attach:498: sc=0xc6f6be80
> > ulpt0: <Samsung Electronics Co., Ltd. Samsung ML-1510_700, class
> > 0/0, rev
> > 1.10/1.00, addr 3> on usbus0
> > ulpt_attach:538: setting alternate config number: 0
> > ulpt0: using bi-directional mode
> > ulpt_reset:164:
> > ulpt_write_callback:203: state=0x0
> > ulpt_write_callback:203: state=0x1
> > ulpt_write_callback:203: state=0x1
> > ulpt_write_callback:203: state=0x2

> > after turning off the device i constantly get this output:

> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED
> > ulpt_status_callback:328: error=USB_ERR_STALLED

> > the cups daemon cannot be stopped (even with kill -9) and none of
> > the lp*
> > apps work anymore. also i'm not able to attach any new usb devices.
> > so a
> > reboot is the only solution that worked in order to get my computer
> > fully
> > operational again.

> What happens if you try to reset the usb device?

> Maybe you could press CTRL + ALT + ESC and dump all the threads or at
> least
> threads having the word "ulpt" in the function names in the
> backtrace?

> --HPS


More information about the freebsd-usb mailing list