Bug 7025

Summary: Can't communicate to USB Printer (HP LaserJet 1018)
Product: Drivers Reporter: David (StormByte)
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: REJECTED INSUFFICIENT_DATA    
Severity: normal CC: cw, protasnb
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.17-r4 Subsystem:
Regression: --- Bisected commit-id:
Bug Depends on:    
Bug Blocks: 5089    

Description David 2006-08-18 15:42:31 UTC
Distribution: Gentoo
Hardware Environment: amd64
Software Environment: gentoo linux, udev, hald, dbus
Problem Description: can't communicate correctly to USB printer

Steps to reproduce: With an HP LaserJet 1018, after installing the driver, and
use CUPS to setup this printer, when you try to print, you will see this in
dmesg: (A connect, try to print and disconnect device):

usb 2-10: new high speed USB device using ehci_hcd and address 3
usb 2-10: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0
proto 2 vid 0x03F0 pid 0x4117
usb 2-4: reset high speed USB device using ehci_hcd and address 2
drivers/usb/class/usblp.c: usblp0: failed reading printer status
drivers/usb/class/usblp.c: usblp0: error -110 reading printer status
drivers/usb/class/usblp.c: usblp0: error -110 reading printer status
drivers/usb/class/usblp.c: usblp0: error -110 reading printer status
drivers/usb/class/usblp.c: usblp0: error -110 reading printer status
drivers/usb/class/usblp.c: usblp0: error -110 reading printer status
drivers/usb/class/usblp.c: usblp0: error -110 reading printer status
drivers/usb/class/usblp.c: usblp0: nonzero read/write bulk status received: -71
drivers/usb/class/usblp.c: usblp0: nonzero read/write bulk status received: -71
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
drivers/usb/class/usblp.c: usblp0: error -71 reading printer status
usb 2-10: USB disconnect, address 3
drivers/usb/class/usblp.c: usblp0: removed

Please someone explain me the error code and one possible workarround if applicable.

Thanks
Comment 1 Greg Kroah-Hartman 2006-08-18 16:22:58 UTC
Has this printer worked properly with other older versions of the kernel?
Comment 2 David 2006-08-18 17:19:23 UTC
I have been searching for workarrounds and the printer works perfectly if I 
restart coldplug service (I notified this to gentoo bugzilla).

But anyway, what are these numbers trying to say?
Comment 3 Greg Kroah-Hartman 2006-08-18 19:59:15 UTC
There is no "coldplug service" anymore for Gentoo, so that shouldn't mean
anything.

And that's very odd if it does.

Try booting without the device plugged in, and then plug it in after boot
has finished.  Attach the kernel log from what happens there (if you can build
your kernel with CONFIG_USB_DEBUG enabled too, that would be great.)
Comment 4 David 2006-08-19 07:13:53 UTC
When I boot with printer on, I don't have problems, becuase when coldplug 
starts at boot (I have rc-update add coldplug boot), it loads the firmware and 
it works. The problem appears when I turn off and on the printer, or when I 
boot with the printer turned off (and after I want to use it turning it on).

The only way to get it working is doing: "/etc/init.d/coldplug restart"

And by the way, it works (with the above workarround) with this kernel.
Comment 5 Natalie Protasevich 2007-06-13 16:39:29 UTC
I am not sure how this works with Gentoo, but I think distros include hald daemon now for the hot pluggable devices like cameras, printers, etc. It is part of the dbus facility, and it is used on Ubuntu for example. Does Gentoo have some user level facility of this kind?
Anyway, any updates/findings on the problem?
Thanks,
--Natalie
Comment 6 Chris Wedgwood 2007-06-13 16:46:10 UTC
David,

This is a ZjStream printer I take it?  If so I found the one I have here needed fairly recent firmware which I sucked out of the windows drivers from HP's website.
Comment 7 Natalie Protasevich 2008-03-29 21:12:08 UTC
What is the status on this problem? David, were you able to get printer working with newer distro or kernel?