Inappropriate ioctl for device: GET_DEVICE_ID on '/dev/usb/lp0' (Was setting up HP1020 laserjet printer)
Chris <[email protected]> Sun, 25 Sep 2011 21:29:14 -0500
| Newsgroups | gmane.linux.mandrake.expert |
|---|---|
| Message-ID | <[email protected]> |
Mandriva 2010.2, Gnome 2.30.0. A friend sold 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' I also see the below in my syslog: 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' Any advice/assistance would be appreciated. -- Chris KeyID 0xE372A7DA98E6705C 31.11°N 97.89°W (Elev. 1092 ft) 21:24:47 up 235 days, 3:04, 1 user, load average: 0.33, 0.33, 0.27
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAk5/43EACgkQ43Kn2pjmcFzl3gCdFoaa4z0ECtN1twm/y8P17ySO F9EAnAlRE84T7vL3cSId4ZQXE08aNwPu =GBxk -----END PGP SIGNATURE-----