Printer becomes offline
Rodrigo Castro
rodsc at terra.com.br
Tue May 1 11:51:03 PDT 2007
I have cups 1.2.6, udev 104, a HP LaserJet 1022 printer and have a very strange problem to make it work. Plugging the printer in is displayed in lsusb, but lpinfo is very unstable, sometimes it displays the printer, sometimes not. For example:
1. Plug the printer in.
2. Run lpinfo -v (printer is there)
3. Open gnome-cups-add
4. Add the printer
5. Run lpinfo -v again (printer is NO LONGER there)
These steps are reproducible all the time. lsusb lists the device all the time, as you can see below, but I can't print.
Bus 001 Device 023: ID 03f0:2c17 Hewlett-Packard
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x03f0 Hewlett-Packard
idProduct 0x2c17
bcdDevice 1.00
iManufacturer 1 Hewlett-Packard
iProduct 2 HP LaserJet 1022
iSerial 3 FX10LFK
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 98mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 7 Printer
bInterfaceSubClass 1 Printer
bInterfaceProtocol 2 Bidirectional
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Checking dmesg, I can see many error messages during my tests:
usb 1-6: new high speed USB device using ehci_hcd and address 21
usb 1-6: device descriptor read/64, error -71
usb 1-6: device descriptor read/all, error -71
usb 1-6: new high speed USB device using ehci_hcd and address 22
usb 1-6: device descriptor read/all, error -71
usb 1-6: new high speed USB device using ehci_hcd and address 23
usb 1-6: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 23 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2C17
There are other error messages like "error reading configuration", but I have lost them as my system does not run syslogd. The error message below is very frequent too:
drivers/usb/class/usblp.c: usblp0: off-line
Do you have any idea of how to solve this problem?
Thanks in advance,
Rodrigo
More information about the cups
mailing list