From owner-freebsd-usb@FreeBSD.ORG Wed Mar 26 20:13:44 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BDE8106564A for ; Wed, 26 Mar 2008 20:13:44 +0000 (UTC) (envelope-from itz@mushinsky.net) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id EFA338FC27 for ; Wed, 26 Mar 2008 20:13:40 +0000 (UTC) (envelope-from itz@mushinsky.net) Received: by ug-out-1314.google.com with SMTP id y2so192564uge.37 for ; Wed, 26 Mar 2008 13:13:35 -0700 (PDT) Received: by 10.78.124.7 with SMTP id w7mr1539484huc.60.1206562402047; Wed, 26 Mar 2008 13:13:22 -0700 (PDT) Received: by 10.78.139.1 with HTTP; Wed, 26 Mar 2008 13:13:22 -0700 (PDT) Message-ID: Date: Wed, 26 Mar 2008 16:13:22 -0400 From: "Isaac Mushinsky" To: freebsd-usb@freebsd.org In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: hplip setup problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2008 20:13:44 -0000 On Wed, Mar 26, 2008 at 11:02 AM, Isaac Mushinsky wrote: > I've tried freebsd-questions, but to no avail so far, so please excuse my > posting here in the hope to find people more familiar with this... > > I am having trouble setting up HP Photosmart C4280 all-in-one device for > printing. hpssd, cups are started in the correct order. Device node > permissions seem to be correct too. > > 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 > > > With USB_DEBUG=4 (for libusb), the hp-setup fails like this: > > usb_os_find_devices: Found /dev/ugen0 on /dev/usb3 > usb_control_msg: 128 6 512 0 0x7fffffff9ed0 8 1000 > usb_control_msg: 128 6 512 0 0x80131d080 124 1000 > usb_control_msg: 128 6 770 1033 0x7fffffff9e40 255 5000 > usb_control_msg: 128 6 771 1033 0x7fffffff9e40 255 5000 > USB error: error sending control message: Input/output error > ... > device `hpaio:/usb/Photosmart_C4200_series?serial=0' is a Hewlett-Packard > Photosmart_C4200_series all-in-one > > This 'serial=0' seems to be the result of failed usb_control_msg call. > > I exhibited here all relevant output (/var/log/messages, usbdevs, ls -l > /dev etc.): > http://omsk.mushinsky.net/hplip-trouble > > Any help is appreciated. > -isaac- > > What is this serial id string? is this supposed to be a unique string assigned to each produced device by the vendor? could it be that it is just HP's fault, or the serial id is on a wrong node of a multi-device somehow? I thought the only use for it is to uniquely identify a device, since I only have one, can I just patch libusb to fake some string?