Bug#663868: udev: laserjet1018 (foo2zjs) printer disappears and appears in loop
Package: printer-driver-foo2zjs
Followup-For: Bug #663868
Hi,
I have LaserJet 1020 and have exactly same problem.
in dmesg i have:
[ 2371.459612] usblp0: removed
[ 2374.465262] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2377.521696] usblp0: nonzero write bulk status received: -108
[ 2377.523522] usblp0: removed
[ 2377.536899] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2377.559828] usblp0: removed
[ 2380.582392] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2380.605422] usblp0: removed
[ 2383.615951] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2383.638878] usblp0: removed
[ 2386.653533] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2386.676554] usblp0: removed
[ 2389.686121] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2389.709167] usblp0: removed
[ 2392.719671] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2392.742681] usblp0: removed
[ 2395.758229] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2395.781279] usblp0: removed
[ 2398.787823] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2398.810785] usblp0: removed
[ 2401.826383] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2401.849355] usblp0: removed
[ 2404.859985] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2404.882975] usblp0: removed
[ 2407.891511] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2407.914567] usblp0: removed
[ 2410.930112] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2410.953166] usblp0: removed
[ 2413.959673] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2413.982690] usblp0: removed
[ 2417.006206] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2417.050626] usblp0: removed
[ 2420.035798] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2420.059726] usblp0: removed
[ 2423.060406] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2426.117833] usblp0: nonzero write bulk status received: -108
[ 2426.121003] usblp0: removed
[ 2426.134865] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2426.157987] usblp0: removed
[ 2429.184609] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2429.212652] usblp0: removed
[ 2432.218094] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[ 2432.242134] usblp0: removed
In syslog
Apr 26 14:24:07 romeo kernel: [ 2499.137116] usblp0: removed
Apr 26 14:24:07 romeo /usr/sbin/hplj1020: foo2zjs: ... download failed.
Apr 26 14:24:07 romeo kernel: [ 2499.149894] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Apr 26 14:24:07 romeo /usr/sbin/hplj1020: foo2zjs: loading HP LaserJet 1020 firmware /lib/firmware/hp/sihp1020.dl to CUPS USB device ...
Apr 26 14:24:07 romeo kernel: [ 2499.172748] usblp0: removed
Apr 26 14:24:10 romeo /usr/sbin/hplj1020: foo2zjs: usb://HP/LaserJet%201020?serial=JL3L6WF... download failed.
Apr 26 14:24:10 romeo kernel: [ 2502.186279] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Apr 26 14:24:10 romeo /usr/sbin/hplj1020: foo2zjs: loading HP LaserJet 1020 firmware /lib/firmware/hp/sihp1020.dl to CUPS USB device ...
Apr 26 14:24:10 romeo kernel: [ 2502.211243] usblp0: removed
Apr 26 14:24:13 romeo /usr/sbin/hplj1020: foo2zjs: usb://HP/LaserJet%201020?serial=JL3L6WF... download failed.
Apr 26 14:24:13 romeo kernel: [ 2505.219794] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Apr 26 14:24:13 romeo /usr/sbin/hplj1020: foo2zjs: loading HP LaserJet 1020 firmware /lib/firmware/hp/sihp1020.dl to CUPS USB device ...
Apr 26 14:24:13 romeo kernel: [ 2505.242825] usblp0: removed
Apr 26 14:24:16 romeo /usr/sbin/hplj1020: foo2zjs: usb://HP/LaserJet%201020?serial=JL3L6WF... download failed.
Apr 26 14:24:16 romeo kernel: [ 2508.253386] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Apr 26 14:24:16 romeo /usr/sbin/hplj1020: foo2zjs: loading HP LaserJet 1020 firmware /lib/firmware/hp/sihp1020.dl to CUPS USB device ...
Apr 26 14:24:17 romeo kernel: [ 2508.276493] usblp0: removed
Apr 26 14:24:20 romeo kernel: [ 2511.280915] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Apr 26 14:24:20 romeo /usr/sbin/hplj1020: foo2zjs: usb://HP/LaserJet%201020?serial=JL3L6WF... download failed.
Apr 26 14:24:22 romeo /usr/sbin/hplj1020: foo2zjs: loading HP LaserJet 1020 firmware /lib/firmware/hp/sihp1020.dl to /dev/usb/lp0 ...
Apr 26 14:24:23 romeo kernel: [ 2514.370380] usblp0: nonzero write bulk status received: -108
Apr 26 14:24:23 romeo kernel: [ 2514.372971] usblp0: removed
Apr 26 14:24:23 romeo /usr/sbin/hplj1020: foo2zjs: ... download failed.
Apr 26 14:24:23 romeo kernel: [ 2514.386475] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Apr 26 14:24:23 romeo /usr/sbin/hplj1020: foo2zjs: loading HP LaserJet 1020 firmware /lib/firmware/hp/sihp1020.dl to CUPS USB device ...
Apr 26 14:24:23 romeo kernel: [ 2514.409521] usblp0: removed
I changed cable and usb port but nothing happens.
It was working few days ago, before I rebooted. I was previously running 2.6.26 kernel or something.
root@romeo:~# dpkg -l | grep hp
ii hp-ppd 0.9-0.2 HP Postscript Printer Definition (PPD) files
ii hpijs-ppds 3.12.2-1 HP Linux Printing and Imaging - HPIJS PPD files
ii hplip 3.12.2-1 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 3.12.2-1 HP Linux Printing and Imaging - data files
ii hplip-doc 3.12.2-1 HP Linux Printing and Imaging - documentation
ii libhpmud0 3.12.2-1 HP Multi-Point Transport Driver (hpmud) run-time libraries
ii libsane-hpaio 3.12.2-1 HP SANE backend for multi-function peripherals
ii printer-driver-hpcups 3.12.2-1 HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
ii printer-driver-hpijs 3.12.2-1 HP Linux Printing and Imaging - gs IJS driver (hpijs)
root@romeo:~# dpkg -l | grep foo
ii foomatic-db 20120322-1 OpenPrinting printer support - database
ii foomatic-db-engine 4.0.8-2 OpenPrinting printer support - programs
ii foomatic-db-gutenprint 5.2.7-5 OpenPrinting printer support - database for Gutenprint printer drivers
ii foomatic-filters 4.0.15-1 OpenPrinting printer support - filters
ii printer-driver-foo2zjs 20120223dfsg0-1 printer driver for ZjStream-based printers
root@romeo:~# dpkg -l | grep cups
ii cups 1.5.2-5 Common UNIX Printing System(tm) - server
ii cups-bsd 1.5.2-5 Common UNIX Printing System(tm) - BSD commands
ii cups-client 1.5.2-5 Common UNIX Printing System(tm) - client programs (SysV)
ii cups-common 1.5.2-5 Common UNIX Printing System(tm) - common files
ii cups-filters 1.0.2-1 OpenPrinting CUPS Filters
ii cups-ppdc 1.5.2-5 Common UNIX Printing System(tm) - PPD manipulation utilities
ii ghostscript-cups 9.05~dfsg-4 interpreter for the PostScript language and for PDF - CUPS filters
ii libcups2:i386 1.5.2-5 Common UNIX Printing System(tm) - Core library
ii libcupscgi1:i386 1.5.2-5 Common UNIX Printing System(tm) - CGI library
ii libcupsfilters1:i386 1.0.2-1 OpenPrinting CUPS Filters - Shared library
ii libcupsimage2:i386 1.5.2-5 Common UNIX Printing System(tm) - Raster image library
ii libcupsmime1:i386 1.5.2-5 Common UNIX Printing System(tm) - MIME library
ii libcupsppdc1:i386 1.5.2-5 Common UNIX Printing System(tm) - PPD manipulation library
ii printer-driver-hpcups 3.12.2-1 HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
I had previously foo2zjs, i removed it and installed printer-driver-foo2zjs,
I think it should not make difference.
When trying to resetup device using hp-setup, I got this
or exclusion may not apply to you.
Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
Done.
------------------------
| DOWNLOADING FIRMWARE |
------------------------
Downloading firmware to device hp:/usb/HP_LaserJet_1020?serial=JL3L6WF...
error: Device busy: hp:/usb/HP_LaserJet_1020?serial=JL3L6WF
error: unable to open channel
error: Device busy: hp:/usb/HP_LaserJet_1020?serial=JL3L6WF
error: unable to open channel
error: Channel write error
error: An error occured: Device I/O error
It may be a firmware regression.
When manually stoping, and then starting udev, i got this
root@romeo:/var/log# /etc/init.d/udev start
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...
udevadm settle - timeout of 120 seconds reached, the event queue contains:
/sys/devices/pci0000:00/0000:00:1f.4/usb1/1-1/1-1:1.0/usb/lp0 (2692)
/sys/devices/pci0000:00/0000:00:1f.4/usb1/1-1/1-1:1.0/usb/lp0 (2693)
/sys/devices/pci0000:00/0000:00:1f.4/usb1/1-1/1-1:1.0/usb/lp0 (2696)
done (timeout).
This is mainly because it disapears and appears every 3 seconds.
I think firmware upload is actually sucessfull, but printer doesn't
accept it (wrong model, wrong crc, or doesn't start using it, and is
reseted by watchdog or something).
I tried rebooting system, reseting printer, using different cables, different ports
and nothing helped.
Regards,
Witek
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages printer-driver-foo2zjs depends on:
ii dc 1.06.95-2
ii foomatic-filters 4.0.15-1
ii libc6 2.13-27
ii libcups2 1.5.2-5
ii python 2.7.2-10
ii xz-utils 5.1.1alpha+20110809-3
Versions of packages printer-driver-foo2zjs recommends:
ii cups 1.5.2-5
ii cups-client 1.5.2-5
ii foomatic-db-engine 4.0.8-2
ii mscompress 0.3-3.1
ii unzip 6.0-6
ii wget 1.13.4-3
Versions of packages printer-driver-foo2zjs suggests:
pn hannah-foo2zjs <none>
pn psutils 1.17-31
pn tix <none>
pn tk8.4 <none>
-- no debconf information
Reply to: