Both foo2zjs and HPLIP upload firmware to HP LaserJet 10xx concurrently, messing up the printer

Bug #732450 reported by RussianNeuroMancer
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
foo2zjs (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: hplip

Printer is work under Lucid with workaround from this bugreport https://bugs.launchpad.net/bugs/329898 (commentary #29)
In Maverick it's not work at all. Output of hp-plugin -i in Maverick:
Downloading firmware to device hp:/usb/HP_LaserJet_1018?serial=KP2QDTZ...
error: Device busy: hp:/usb/HP_LaserJet_1018?serial=KP2QDTZ
error: unable to open channel
error: Device busy: hp:/usb/HP_LaserJet_1018?serial=KP2QDTZ
error: unable to open channel
error: Channel write error
error: An error occured: Device I/O error

Output of hp-toolbox when I try to Download Firmware manually:
error: Channel write error
error: Channel write error
error: Unable to communicate with device or device is in an error state. Please check device setup and try again.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: hplip 3.10.6-1ubuntu10.2
ProcVersionSignature: Ubuntu 2.6.35-27.48-generic 2.6.35.11
Uname: Linux 2.6.35-27-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Thu Mar 10 15:42:15 2011
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: ASUSTeK Computer Inc. A8JN
Papersize: a4
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-27-generic root=UUID=bd04d983-135c-4ac7-a107-9cfa870e1264 ro quiet splash
ProcEnviron:
 LANGUAGE=
 LANG=ru_RU.utf8
 SHELL=/bin/bash
SourcePackage: hplip
dmi.bios.date: 03/02/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: A8JncAS.211
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: A8JN
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrA8JncAS.211:bd03/02/2007:svnASUSTeKComputerInc.:pnA8JN:pvr1.0:rvnASUSTeKComputerInc.:rnA8JN:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr:
dmi.product.name: A8JN
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.

Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

Also I want say: printer have busy state in Maverick immediately after connecte to laptop. I try two USB-ports and check printer with good USB cable (as usual HP tech. support reccomend).

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you try the following:

Remove the print queue for your printer if there is one. Then unplug your printer. Ubibstall foo2zjs via the following command in a terminal window:

sudo dpkg -P --force-depends foo2zjs

Now plug in your printer again. Does the firmware loading work now?

Follow also the "USB printer" instructions on https://wiki.ubuntu.com/DebuggingPrintingProblems

Changed in hplip (Ubuntu):
status: New → Incomplete
Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

Thank you for advice! Removing foo2zjs solves firmware loading problem.

Then it's not hplip bug but foo2zjs bug?

Changed in hplip (Ubuntu):
status: Incomplete → New
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The problem is that two firmware uploads happened simultaneously, one byu foo2zjs, another by HPLIP. Probably you have installed the firmware file twice, once with hp-plugin (part of HPLIP, the program which pops up automatically) and once with the command line program getweb (part of foo2zjs).

To make your system consistent again, so that updates work correctly, you need to re-install foo2zjs, but to prevent it from concurrent uploading of the firmware, you need to remove the second copy of the firmware. To do so, run the following command in a terminal window:

sudo rm /lib/firmware/hp/sihp1018.dl

or

sudo rm /usr/share/foo2zjs/firmware/sihp1018.dl

The first command is for newer versions of foo2zjs, the second for older versions. Please tell whether there was really a firmware file at at least one of these places. If so, re-install foo2zjs via

sudo apt-get install foo2zjs

Now turn off the printer and turn it on again. When the printer stops making noise try to print. Does it still work? If not, uninstall foo2zjs again as described in comment #3 and turn off and turn on your printer.

If there are no firmware files to remove at the given places, do not install foo2zjs again.

Please tell us your results, so that we can apply measures to avoid this bad interference of two programs trying to fulfill the same task.

Changed in hplip (Ubuntu):
status: New → Incomplete
affects: hplip (Ubuntu) → foo2zjs (Ubuntu)
summary: - HP LaserJet 1018 not print
+ Both foo2zjs and HPLIP upload firmware to HP LaserJet 10xx concurrently,
+ messing up the printer
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for foo2zjs (Ubuntu) because there has been no activity for 60 days.]

Changed in foo2zjs (Ubuntu):
status: Incomplete → Expired
Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

> Does it still work?
Yes, this workaround help me get printer works in Maverick.

In Natty this problem doesn't exist, so probably now it's fixed.

Changed in foo2zjs (Ubuntu):
status: Expired → Fix Released
Revision history for this message
John Muir (john-muir) wrote :

This was the solution for me as I had exactly this problem in Ubuntu 14.04

Revision history for this message
Pelládi Gábor (pelladigabor) wrote :

This issue appeared again in 14.04. I had to remove printer-driver-foo2zjs package to make my printer (LaserJet 1020) working with hplip. If both are installed, they are fighting for the printer and the printer does not print.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.