Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Mar 2008 06:57:10 -0400
From:      Isaac Mushinsky <itz@mushinsky.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: hplip setup problems
Message-ID:  <200803300657.10344.itz@mushinsky.net>
In-Reply-To: <200803260021.12249.itz@mushinsky.net>
References:  <200803260021.12249.itz@mushinsky.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.mushinsky.net/hplip-trouble
>
> Any help is appreciated. Thanks.
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803300657.10344.itz>