HP LaserJet 1020 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Inappropriate ioctl for device: GET_DEVICE_ID on '/dev/usb/lp0'
Posted by: chris1948 ()
Date: September 25, 2011 05:05PM

Mandriva 2010.2, Gnome 2.30.0. A friend gave me an HP1020 the other day but I'm having the devil of a time getting it to work. I've downloaded foo2zjs, printed the install instructions and followed them to the letter as far as I can tell. After running make I made sure to run the ./getweb 1020 command. After running make install as root I ran make install-hotplug, unplugged the printer and re-plugged it in. I ran make cups also. I went into Mandrivas MCC and installed the printer and since I have the printer connected to the usb port when setting up the printer I tried both usb:/dev/usb/lp0, lp1 and usb://HP/LaserJet%201020 for the URI. Then following the next direction I powered off and on the printer, I did 'not' see any light flash orange to indicate the firmware was being downloaded. Note: I also have an HP6L connected to a parallel port so I also entered this line in my /etc/profile:

cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0

I've checked and the lp0 or lp1 file is present in /dev/usb/. When running the command # usb_printerid /dev/usb/lp0 to see if the firmware is loaded I get:

Error: Inappropriate ioctl for device: GET_DEVICE_ID on '/dev/usb/lp0'

When trying to print a test document the printer icon on the task bar says 'Printer HP LaserJet-1020 may not be connected'

Any advice/assistance would be appreciated.

Chris

Options: ReplyQuote
Re: Inappropriate ioctl for device: GET_DEVICE_ID on '/dev/usb/lp0'
Posted by: chris1948 ()
Date: September 25, 2011 06:53PM

Additional information, my syslog shows:

Sep 25 15:54:37 localhost kernel: usb 5-7: new high speed USB device using ehci_hcd and address 119
Sep 25 15:54:37 localhost kernel: usb 5-7: New USB device found, idVendor=03f0, idProduct=2b17
Sep 25 15:54:37 localhost kernel: usb 5-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 25 15:54:37 localhost kernel: usb 5-7: Product: HP LaserJet 1020
Sep 25 15:54:37 localhost kernel: usb 5-7: Manufacturer: Hewlett-Packard
Sep 25 15:54:37 localhost kernel: usb 5-7: SerialNumber: JL1F0DC
Sep 25 15:55:11 localhost kernel: usb 5-7: USB disconnect, address 119
Sep 25 15:55:13 localhost kernel: usb 5-7: new high speed USB device using ehci_hcd and address 120
Sep 25 15:55:14 localhost kernel: usb 5-7: New USB device found, idVendor=03f0, idProduct=2b17
Sep 25 15:55:14 localhost kernel: usb 5-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 25 15:55:14 localhost kernel: usb 5-7: Product: HP LaserJet 1020
Sep 25 15:55:14 localhost kernel: usb 5-7: Manufacturer: Hewlett-Packard
Sep 25 15:55:14 localhost kernel: usb 5-7: SerialNumber: JL1F0DC
Sep 25 15:56:12 localhost kernel: parport_pc 00:0b: disabled
Sep 25 15:56:12 localhost kernel: IT8705 SuperIO detected.
Sep 25 15:56:12 localhost kernel: parport_pc 00:0b: activated
Sep 25 15:56:12 localhost kernel: parport_pc 00:0b: reported by Plug and Play ACPI
Sep 25 15:56:12 localhost kernel: parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
Sep 25 15:56:12 localhost kernel: parport0: Printer, Hewlett-Packard HP LaserJet 6L
Sep 25 15:56:12 localhost kernel: ppdev: user-space parallel port driver
Sep 25 15:56:12 localhost kernel: lp0: using parport0 (interrupt-driven).
Sep 25 15:56:12 localhost kernel: lp0: console ready
Sep 25 15:56:13 localhost hp[14345]: io/hpmud/musb.c 2035: Invalid usb_open: Permission denied
Sep 25 15:56:16 localhost python: io/hpmud/musb.c 2035: Invalid usb_open: Permission denied
Sep 25 15:56:28 localhost kernel: Shorewall:net2fw:DROP:IN=eth0 OUT= MAC=00:0f:ea:33:8f:ef:00:13:49:6e:55:07:08:00 SRC=192.168.2.1 DST=192.168.2.2 LEN=75 TOS=0x00 PREC=0x00 TTL=255 ID=4531 PROTO=UDP SPT=161 DPT=53359 LEN=55

The shorewall line is puzzeling, it seems to show up I believe when I try to print a document. I now have allowed port 161 in my firewall setup.

I'm not sure what to do about these two lines either:

Sep 25 15:56:13 localhost hp[14345]: io/hpmud/musb.c 2035: Invalid usb_open: Permission denied
Sep 25 15:56:16 localhost python: io/hpmud/musb.c 2035: Invalid usb_open: Permission denied

If I log out and back in again and try to print a document I do not get the printer disconnected error, however, If I turn it off and then on again, trying to print shows 'the printer may not be connected'

Chris

Options: ReplyQuote
Re: Inappropriate ioctl for device: GET_DEVICE_ID on '/dev/usb/lp0'
Posted by: rickrich ()
Date: September 26, 2011 07:35AM

No idea. Lines tagged hpmud/musb.c are for hplip. Remove it, power recycle the computer.

Options: ReplyQuote


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