From owner-freebsd-questions@FreeBSD.ORG Sun Mar 30 10:56:38 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78D061065671 for ; Sun, 30 Mar 2008 10:56:38 +0000 (UTC) (envelope-from itz@mushinsky.net) Received: from omsk.mushinsky.net (omsk.mushinsky.net [66.114.66.201]) by mx1.freebsd.org (Postfix) with ESMTP id 098048FC23 for ; Sun, 30 Mar 2008 10:56:37 +0000 (UTC) (envelope-from itz@mushinsky.net) Received: from omsk.mushinsky.net (localhost [127.0.0.1]) by omsk.mushinsky.net (8.14.2/8.14.2) with ESMTP id m2UAvAkd021447 for ; Sun, 30 Mar 2008 06:57:10 -0400 (EDT) (envelope-from itz@mushinsky.net) Received: from localhost (localhost [[UNIX: localhost]]) by omsk.mushinsky.net (8.14.2/8.14.2/Submit) id m2UAvAwQ021446 for freebsd-questions@freebsd.org; Sun, 30 Mar 2008 06:57:10 -0400 (EDT) (envelope-from itz@mushinsky.net) X-Authentication-Warning: omsk.mushinsky.net: itz set sender to itz@mushinsky.net using -f From: Isaac Mushinsky To: freebsd-questions@freebsd.org Date: Sun, 30 Mar 2008 06:57:10 -0400 User-Agent: KMail/1.9.7 References: <200803260021.12249.itz@mushinsky.net> In-Reply-To: <200803260021.12249.itz@mushinsky.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803300657.10344.itz@mushinsky.net> Subject: Re: hplip setup problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2008 10:56:38 -0000 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;