List Info

Thread: hplip setup problems




Re: hplip setup problems
country flaguser name
United States
2008-03-30 05:57:10
On Wednesday 26 March 2008 00:21:12 Isaac Mushinsky wrote:
> I am close to assasinating my HP Photosmart C4280 in
frustration.
>
> 1. This is an all-in-one device. (I did not try the
scanner setup yet)
> 2. ulpt, umass, uscanner modules are not in kernel and
not kld-loaded.
> 3. Machine is FreeBSD 7-stable/amd64.
> 4. hplip is 2.8.2
>
> $ usbdevs
> addr 1: UHCI root hub, Intel
> addr 1: UHCI root hub, Intel
> addr 1: UHCI root hub, Intel
> addr 1: EHCI root hub, Intel
>  addr 2: Photosmart C4200 series, HP
> addr 1: UHCI root hub, Intel
> addr 1: UHCI root hub, Intel
> addr 1: UHCI root hub, Intel
> addr 1: EHCI root hub, Intel
>
> There is a ppd file for these series with the hplip
distribution.
>
> hpssd, cups started in the order needed. hp-setup
detects the printer, and
> then says 'Unable to create queue'. CUPS web interface
actually adds the
> printer, but then cannot print test page to it. cups
user runs hpssd (I
> tried root too).
>
> /var/log/messages has:
> Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135:
unable
> get_string_descriptor -5: Input/output error Mar 25
23:57:56 omsk python:
> io/hpmud/musb.c 1951: invalid serial id string ret=-5
>
> Here is all relevant output:
> http://omsk.m
ushinsky.net/hplip-trouble
>
> Any help is appreciated. Thanks.
>
>
> _______________________________________________
> freebsd-questionsfreebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribefreebsd.org"

Here is a patch that seems to work:

--- /home/itz/hplip-2.8.2/io/hpmud/musb.c	2008-03-30
06:44:01.000000000 -0400
+++ work/hplip-2.8.2/io/hpmud/musb.c	2008-01-22
19:27:15.000000000 -0500
 -121,12
+121,10 
    {
       ret = usb_control_msg(dev, USB_ENDPOINT_IN,
USB_REQ_GET_DESCRIPTOR, 
(USB_DT_STRING << 8) + index, 
                0x409, tbuf, sizeof(tbuf),
LIBUSB_CONTROL_REQ_TIMEOUT);
-      if (ret <=0 )
+      if (ret==0)
       {
-         /* This retry is necessary for lj1000 and lj1005.
des 12/12/07
-	  Also HP Photosmart 42xx seems to suffer transient errors
with serial id */
-	 BUG("get_string_descriptor error result %d, retrying
in 2 secs...", ret);
-	 sleep(2);
+         /* This retry is necessary for lj1000 and lj1005.
des 12/12/07 */
+         BUG("get_string_descriptor zero result,
retrying...");
          continue;
       }
       break;
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-10] [11-20] [21]

about | contact  Other archives ( Real Estate discussion Medical topics )