HP LaserJet 1020 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
No /dev/usb/lpt0 [Bad USB Cable!]
Posted by: jll ()
Date: May 01, 2007 09:42AM

Hello,

I'm trying to use my HP LaserJet 1020.

I have followed all the instructions but I have the following problem: I don't even see a /dev/usb/lpt0.

I have tried unplugging all my usb devices and power-cycle everything. I have tried connecting directly to my computer, connecting to the docking station, connecting via an external hub, to no effect. On the other hand all my USB devices work perfectly.

As soon as I have my printer working, I *swear* I donate 10 euros. So please help me out of charity but also to help the project ;-)

** My computer is a ThinkPad X40 with an UltraBase docking station.

** My kernel is (after I tried upgrading from 2.6.20.3):
Linux boby.sol 2.6.21.1 #1 PREEMPT Sun Apr 29 20:24:08 CEST 2007 i686 i686 i386 GNU/Linux

** And the .config is here: http://www.europerl.be/perso/.config

** My distro is Fedora Core 6.

** my udev is udev-095-14 as per `rpm -q`.

** When I turn my printer on I see this in `dmesg`:
usb 1-1.2.4: new high speed USB device using ehci_hcd and address 21
usb 1-1.2.4: device descriptor read/64, error -71
usb 1-1.2.4: device descriptor read/64, error -71
usb 1-1.2.4: new high speed USB device using ehci_hcd and address 22
usb 1-1.2.4: device descriptor read/64, error -71
usb 1-1.2.4: device descriptor read/64, error -71
usb 1-1.2.4: new high speed USB device using ehci_hcd and address 23
usb 1-1.2.4: device descriptor read/8, error -71
usb 1-1.2.4: device descriptor read/8, error -71
usb 1-1.2.4: new high speed USB device using ehci_hcd and address 24
usb 1-1.2.4: device descriptor read/8, error -71
usb 1-1.2.4: device descriptor read/8, error -71

** My lsusb:
Bus 003 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 020: ID 04b3:442b IBM Corp.
Bus 001 Device 013: ID 046d:0a02 Logitech, Inc.
Bus 001 Device 012: ID 0461:4d03 Primax Electronics, Ltd Kensington Mouse-in-a-box
Bus 001 Device 008: ID 2001:f103 D-Link Corp. [hex]
Bus 001 Device 005: ID 04b3:4484 IBM Corp.
Bus 001 Device 001: ID 0000:0000

** And `ll /dev/usb*` gives:
crw------- 1 root root 254, 13 May 1 15:12 /dev/usbdev1.12_ep00
crw------- 1 root root 254, 14 May 1 15:12 /dev/usbdev1.12_ep81
crw------- 1 root root 254, 15 May 1 15:13 /dev/usbdev1.13_ep00
crw------- 1 root root 254, 16 May 1 15:13 /dev/usbdev1.13_ep83
crw------- 1 root root 254, 0 May 1 07:13 /dev/usbdev1.1_ep00
crw------- 1 root root 254, 1 May 1 07:13 /dev/usbdev1.1_ep81
crw------- 1 root root 254, 12 May 1 15:19 /dev/usbdev1.20_ep00
crw------- 1 root root 254, 18 May 1 15:19 /dev/usbdev1.20_ep02
crw------- 1 root root 254, 17 May 1 15:19 /dev/usbdev1.20_ep81
crw------- 1 root root 254, 2 May 1 10:29 /dev/usbdev1.5_ep00
crw------- 1 root root 254, 3 May 1 10:29 /dev/usbdev1.5_ep81
crw------- 1 root root 254, 10 May 1 15:08 /dev/usbdev1.8_ep00
crw------- 1 root root 254, 11 May 1 15:08 /dev/usbdev1.8_ep81
crw------- 1 root root 254, 4 May 1 07:13 /dev/usbdev2.1_ep00
crw------- 1 root root 254, 5 May 1 07:13 /dev/usbdev2.1_ep81
crw------- 1 root root 254, 6 May 1 07:13 /dev/usbdev3.1_ep00
crw------- 1 root root 254, 7 May 1 07:13 /dev/usbdev3.1_ep81
crw------- 1 root root 254, 8 May 1 07:13 /dev/usbdev4.1_ep00
crw------- 1 root root 254, 9 May 1 07:13 /dev/usbdev4.1_ep81

** My `cat /proc/bus/usb/devices`:
T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.21.1 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:1d.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.21.1 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.21.1 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc= 0/800 us ( 0%), #Int= 4, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.21.1 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 3
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=02 MxPS=64 #Cfgs= 1
P: Vendor=04b3 ProdID=4484 Rev= 0.01
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=01 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms
I:* If#= 0 Alt= 1 #EPs= 1 Cls=09(hub ) Sub=00 Prot=02 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms

T: Bus=01 Lev=02 Prnt=05 Port=00 Cnt=01 Dev#= 13 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=0a02 Rev=10.13
S: Manufacturer=Logitech
S: Product=Logitech USB Headset
C:* #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I:* If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I: If#= 1 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=01(O) Atr=09(Isoc) MxPS= 192 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=01(O) Atr=09(Isoc) MxPS= 96 Ivl=1ms
I:* If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I: If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=09(Isoc) MxPS= 96 Ivl=1ms
I:* If#= 3 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=83(I) Atr=03(Int.) MxPS= 2 Ivl=8ms

T: Bus=01 Lev=02 Prnt=05 Port=01 Cnt=02 Dev#= 8 Spd=480 MxCh= 7
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=2001 ProdID=f103 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms

T: Bus=01 Lev=03 Prnt=08 Port=01 Cnt=01 Dev#= 20 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=04b3 ProdID=442b Rev= 0.00
S: Manufacturer=IBM
S: Product=IBM USB 2.0 Multi-Burner Drive
S: SerialNumber=0000000002010840
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=02 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T: Bus=01 Lev=02 Prnt=05 Port=02 Cnt=03 Dev#= 12 Spd=1.5 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0461 ProdID=4d03 Rev= 6.01
S: Product=Targus USB Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms

** Have I forgotten anything?

Well, thanks for any help and as I said a bit more than thanks when it works :-)

Cordially,
Jean-Louis Leroy



Edited 2 time(s). Last edit at 05/02/2007 09:44PM by rickrich.

Options: ReplyQuote
Re: No /dev/usb/lpt0
Posted by: rickrich ()
Date: May 01, 2007 11:00AM

$ dmesg
usb 3-6: new high speed USB device using ehci_hcd and address 8
usb 3-6: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
$
$ lsmod | grep usb
usblp                  25537  0
usb_storage            87585  0
scsi_mod              170777  4 sg,usb_storage,libata,sd_mod
$

Check usblp!!!!

Options: ReplyQuote
Re: No /dev/usb/lpt0
Posted by: jll ()
Date: May 01, 2007 11:11AM

Hi Rick!

Indeed I had forgotten the lsmod from my report.

And, you are right, no usblp.

But that's not it, I have insmod'ed it, power-cycled the printer, but I still have the same messages in dmesg and no /dev/usb/lpt0. Which I guess is normal (but I'm no expert on this) because the usb device doesn't even get registered.

Tried again with all other usb devices disconnected, but no success.

Also, when I turn of my printer I don't see de-registration messages...which again seems normal.

J-L

[root@boby jll]# lsmod|grep usb
usblp 11008 0
usb_storage 60800 0
scsi_mod 83976 3 sr_mod,sg,usb_storage
usbmouse 3904 0
snd_usb_audio 78752 0
snd_usb_lib 14784 1 snd_usb_audio
snd_rawmidi 20640 1 snd_usb_lib
snd_hwdep 7108 1 snd_usb_audio
usbhid 32672 0
ff_memless 4680 1 usbhid
snd_pcm 78344 4 snd_usb_audio,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd 49700 14 snd_usb_audio,snd_usb_lib,snd_rawmidi,snd_hwdep,snd_intel8x0,snd_ac97_codec,snd_seq_dummy,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
usbcore 112536 9 usblp,usb_storage,usbmouse,snd_usb_audio,snd_usb_lib,usbhid,uhci_hcd,ehci_hcd

[root@boby jll]# dmesg
usb 1-1.2.4: new high speed USB device using ehci_hcd and address 33
usb 1-1.2.4: device descriptor read/64, error -71
usb 1-1.2.4: device descriptor read/64, error -71
usb 1-1.2.4: new high speed USB device using ehci_hcd and address 34
usb 1-1.2.4: device descriptor read/64, error -71
usb 1-1.2.4: device descriptor read/64, error -71
usb 1-1.2.4: new high speed USB device using ehci_hcd and address 35
usb 1-1.2.4: device descriptor read/8, error -71
usb 1-1.2.4: device descriptor read/8, error -71
usb 1-1.2.4: new high speed USB device using ehci_hcd and address 36
usb 1-1.2.4: device descriptor read/8, error -71
usb 1-1.2.4: device descriptor read/8, error -71

Options: ReplyQuote
Re: No /dev/usb/lpt0 [USB problem]
Posted by: rickrich ()
Date: May 01, 2007 11:19AM

Put it on another USB controller. Other than that, I do not know.

Options: ReplyQuote
Re: No /dev/usb/lpt0 [USB problem]
Posted by: rickrich ()
Date: May 01, 2007 04:57PM

usb error codes
-EPROTO (-71)		a) bitstuff error
			b) no response packet received within the
			   prescribed bus turn-around time
			c) unknown USB error

Error codes like -EPROTO normally indicate hardware problems such as bad devices or cables.

Did you try a different cable???

Options: ReplyQuote
Re: No /dev/usb/lpt0 [USB problem]
Posted by: rickrich ()
Date: May 01, 2007 09:43PM


Options: ReplyQuote
Re: No /dev/usb/lpt0 [USB problem]
Posted by: jll ()
Date: May 02, 2007 01:24AM

Rick,

today I will try a different cable and also I'll try to connect the printer to a Windows computer. After all perhaps it has a problem.

I'll keep you informed, thanks for your help.

Jean-Louis

Options: ReplyQuote
Re: No /dev/usb/lpt0 [USB problem]
Posted by: jll ()
Date: May 02, 2007 05:49PM

Yep! It was the cable. My printer works now.

Donation (10 euros = approx. $14.00) sent as promised.

Thanks for helping :-)

Jean-Louis

Options: ReplyQuote
Re: No /dev/usb/lpt0 [USB problem]
Posted by: draeath ()
Date: May 13, 2007 06:52PM

I had this same issue, with a "certified" USB2.0 cable. Gold plated, no less.

The issue seems to be that the cable needs to have an RF trap (those little round blocks near one end of the plug)


Probably a design defect on the printer itself to cut cost, but hey - as long as it works.

Options: ReplyQuote
Re: No /dev/usb/lpt0 [USB problem]
Posted by: draeath ()
Date: May 13, 2007 06:56PM

To expand: in WINDOWS, it would work with the 'bad' cable as long as my USB2 controller was disabled, enabling that would result in "Unknown Device" and/or USB device has malfunctioned or not recognized by windows.

Again, a proper cable corrected that as well.

It is definatly a hardware issue, rather than driver.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.