I'm not sure if it's the same issue, but I'm also seeing firmware failing
to load on my LaserJet 1020 using foo2zjs. My guess is that there's a
conflict between the firmware loading script and udev-configure-printer
trying to access the printer at the same time.
Here is a snippet from journalctl when the printer was turned on:
May 11 18:02:34 cyclops kernel: usb 2-14: new high-speed USB device
number 14 using xhci_hcd
May 11 18:02:34 cyclops kernel: usb 2-14: New USB device found,
idVendor=03f0, idProduct=2b17, bcdDevice= 1.00
May 11 18:02:34 cyclops kernel: usb 2-14: New USB device strings: Mfr=1,
Product=2, SerialNumber=3
May 11 18:02:34 cyclops kernel: usb 2-14: Product: HP LaserJet 1020
May 11 18:02:34 cyclops kernel: usb 2-14: Manufacturer: Hewlett-Packard
May 11 18:02:34 cyclops kernel: usb 2-14: SerialNumber: JL1K941
May 11 18:02:34 cyclops kernel: usblp 2-14:1.0: usblp1: USB Bidirectional
printer dev 14 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
May 11 18:02:40 cyclops kernel: usblp1: removed
May 11 18:02:40 cyclops /lib/udev/hplj1020[162068]: foo2zjs: loading HP
LaserJet 1020 firmware /lib/firmware/hp/sihp1020.dl to CUPS USB device ...
May 11 18:02:40 cyclops kernel: usblp 2-14:1.0: usblp1: USB Bidirectional
printer dev 14 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
May 11 18:02:40 cyclops kernel: usblp1: removed
May 11 18:02:40 cyclops systemd[1]: Started Configure Plugged-In Printer.
May 11 18:02:40 cyclops udev-configure-printer[162071]: add usb-002-014
May 11 18:02:40 cyclops udev-configure-printer[162071]: device devpath is
/devices/pci:00/:00:14.0/usb2/2-14
May 11 18:02:40 cyclops udev-configure-printer[162071]: Device
vendor/product is 03F0:2B17
May 11 18:02:41 cyclops udev-configure-printer[162071]: failed to claim
interface
May 11 18:02:41 cyclops systemd[1]: configure-printer@usb-002-014.service:
Main process exited, code=exited, status=1/FAILURE
May 11 18:02:41 cyclops systemd[1]: configure-printer@usb-002-014.service:
Failed with result 'exit-code'.
And here's a snippet of the same scenario with a work-around in place:
May 11 17:58:15 cyclops kernel: usb 2-14: new high-speed USB device
number 13 using xhci_hcd
May 11 17:58:15 cyclops kernel: usb 2-14: New USB device found,
idVendor=03f0, idProduct=2b17, bcdDevice= 1.00
May 11 17:58:15 cyclops kernel: usb 2-14: New USB device strings: Mfr=1,
Product=2, SerialNumber=3
May 11 17:58:15 cyclops kernel: usb 2-14: Product: HP LaserJet 1020
May 11 17:58:15 cyclops kernel: usb 2-14: Manufacturer: Hewlett-Packard
May 11 17:58:15 cyclops kernel: usb 2-14: SerialNumber: JL1K941
May 11 17:58:15 cyclops kernel: usblp 2-14:1.0: usblp1: USB Bidirectional
printer dev 13 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
May 11 17:58:21 cyclops kernel: usblp1: removed
May 11 17:58:21 cyclops kernel: usblp 2-14:1.0: usblp1: USB Bidirectional
printer dev 13 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
May 11 17:58:21 cyclops /lib/udev/hplj1020[161939]: foo2zjs: loading HP
LaserJet 1020 firmware /lib/firmware/hp/sihp1020.dl to CUPS USB device ...
May 11 17:58:21 cyclops kernel: usblp1: removed
May 11 17:58:31 cyclops kernel: usblp 2-14:1.0: usblp1: USB Bidirectional
printer dev 13 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
May 11 17:58:31 cyclops /lib/udev/hplj1020[161944]: foo2zjs:
usb://HP/LaserJet%201020?serial=JL1K941... download successful.
May 11 17:58:31 cyclops systemd[1]: Started Configure Plugged-In Printer.
May 11 17:58:31 cyclops udev-configure-printer[161953]: add usb-002-013
May 11 17:58:31 cyclops udev-configure-printer[161953]: device devpath is
/devices/pci:00/:00:14.0/usb2/2-14
May 11 17:58:31 cyclops udev-configure-printer[161953]:
MFG:Hewlett-Packard MDL:HP LaserJet 1020 SERN:- serial:JL1K941
May 11 17:58:36 cyclops kernel: usblp1: removed
May 11 17:58:36 cyclops kernel: usblp 2-14:1.0: usblp1: USB Bidirectional
printer dev 13 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
May 11 17:58:37 cyclops kernel: usblp1: removed
May 11 17:58:37 cyclops kernel: usblp 2-14:1.0: usblp1: USB Bidirectional
printer dev 13 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
May 11 17:58:38 cyclops udev-configure-printer[161953]: URI contains USB
serial number
May 11 17:58:38 cyclops udev-configure-printer[161953]: URI match:
usb://HP/LaserJet%201020?serial=JL1K941
May 11 17:58:38 cyclops udev-configure-printer[161953]: URI of detected
printer: usb://HP/LaserJet%201020?serial=JL1K941, normalized: laserjet 1020
serial jl1k941
May 11 17:58:38 cyclops udev-configure-printer[161953]: URI of print
queue: usb://HP/LaserJet%201020?serial=JL1K941, normalized: laserjet 1020
serial jl1k941
May 11 17:58:38 cyclops udev-configure-printer[161953]: Queue
ipp://localhost/printers/HP_LaserJet_1020 has matching device URI
May 11 17:58:38 cyclops udev-configure-printer[161953]: Re-enabled
printer ipp://localhost/printers/HP_LaserJet_1020
May 11 17:58:38 cyclops systemd[1]: configure-printer@usb-002