Date: Sat, 14 Jul 2007 00:55:18 +1000 From: Norberto Meijome <freebsd@meijome.net> To: John Walthall <jzw@authority.vistua.com> Cc: freebsd-stable@freebsd.org Subject: Re: HP Desktjet D1420 detected by Freebsd, but not CUPS Message-ID: <20070714005518.3753bbcd@localhost> In-Reply-To: <20070712175704.4bcdf10e@localhost> References: <20070712175704.4bcdf10e@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 Jul 2007 17:57:04 -0400 John Walthall <jzw@authority.vistua.com> wrote: > Hullo, > > I have a brand-new Hp Deskjet d1420 which is perfectly detected by > FreeBSD: > ~ % usbdevs > addr 1: UHCI root hub, VIA > addr 2: Deskjet D1400 series, HP > addr 1: UHCI root hub, VIA > addr 1: UHCI root hub, VIA > addr 1: EHCI root hub, VIA > > > -- and -- > > ~ % dmesg | grep ugen0 > ugen0: HP Deskjet D1400 series, rev 2.00/1.00, > addr 2 > > I installed print/hplip and print/cups > > I followed the directions at http://am-productions.biz/docs/hplip.php > exactly, but when I try to run hp-setup, I get this: > > error: No devices found.Please make sure your printer is properly > connected and powered-on > > So, I tried using CUPS own web-interface, no luck, it doesn't even list > USB as an option, KDE's "kprinter" interface does, but it's greyed out. > I tried the "find manually" function in hp-setup, but was instructed to > use the command lsusb, which doesn't seem to exist; I suspect lsusb is > a Linux specific command, and, indeed, the portions of HPLIP's web-site > dealing with this aspect make clear references to Linux's method of > handling USB device notes. > > I am at my wits end. I have tried everything I could think of, to no > avail. Thanks in advance. hmm these linuxisms do get a bit tiring dont they? i did a very quick search through print/cups-base , and i found no reference to lsusb. backend/usb-unix.c. is of relevance, methinks it seems to need /dev/ulpt ... do you ulpt.ko loaded? and the printer detectd ? B PS Anyway...in case the above info was useless, hopefully this helps - i havent got USB printers @ hand (other than a canon that i'm not 100% sure it works )... maybe you can figure out what info cups is looking for with lsubs and write a wrapper for it using BSD tools? # uname -a Linux cerberus.xxxx. 2.6.18-8.1.4.el5.centos.plus #1 SMP Sun May 20 10:53:21 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux # lsusb | less Bus 002 Device 001: ID 0000:0000 Bus 001 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical Bus 001 Device 001: ID 0000:0000 # lsusb -v | less Bus 002 Device 001: ID 0000:0000 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 1 Single TT bMaxPacketSize0 64 idVendor 0x0000 idProduct 0x0000 bcdDevice 2.06 iManufacturer 3 Linux 2.6.18-8.1.4.el5.centos.plus ehci_hcd iProduct 2 EHCI Host Controller iSerial 1 0000:00:02.1 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0002 1x 2 bytes bInterval 12 Hub Descriptor: bLength 11 bDescriptorType 41 nNbrPorts 10 wHubCharacteristic 0x000a No power switching (usb 1.0) Per-port overcurrent protection TT think time 8 FS bits bPwrOn2PwrGood 10 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable 0x00 0x60 PortPwrCtrlMask 0x87 0x14 Hub Port Status: Port 1: 0000.0100 power Port 2: 0000.0100 power Port 3: 0000.0000 Port 4: 0000.0100 power Port 5: 0000.0100 power Port 6: 0000.0100 power Port 7: 0000.0100 power Port 8: 0000.0100 power Port 9: 0000.0100 power Port 10: 0000.0100 power Bus 001 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x045e Microsoft Corp. idProduct 0x0040 Wheel Mouse Optical bcdDevice 3.00 iManufacturer 1 Microsoft iProduct 3 Microsoft 3-Button Mouse with IntelliEye(TM) iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 34 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Devices bInterfaceSubClass 1 Boot Interface Subclass bInterfaceProtocol 2 Mouse iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.10 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 72 Report Descriptors: ** UNAVAILABLE ** Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0004 1x 4 bytes bInterval 10 Bus 001 Device 001: ID 0000:0000 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 Full speed (or root) hub bMaxPacketSize0 64 idVendor 0x0000 idProduct 0x0000 bcdDevice 2.06 iManufacturer 3 Linux 2.6.18-8.1.4.el5.centos.plus ohci_hcd iProduct 2 OHCI Host Controller iSerial 1 0000:00:02.0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0002 1x 2 bytes bInterval 255 Hub Descriptor: bLength 11 bDescriptorType 41 nNbrPorts 10 wHubCharacteristic 0x0002 No power switching (usb 1.0) Ganged overcurrent protection bPwrOn2PwrGood 1 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable 0x00 0x60 PortPwrCtrlMask 0x87 0x14 Hub Port Status: Port 1: 0000.0100 power Port 2: 0000.0100 power Port 3: 0000.0303 lowspeed power enable connect Port 4: 0000.0100 power Port 5: 0000.0100 power Port 6: 0000.0100 power Port 7: 0000.0100 power Port 8: 0000.0100 power Port 9: 0000.0100 power Port 10: 0000.0100 power -------------------------------------------------- _________________________ {Beto|Norberto|Numard} Meijome "I was born not knowing and have had only a little time to change that here and there." Richard Feynman I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070714005518.3753bbcd>