cups: no printer output (hp 1020)

Bug #401140 reported by Jonas Haraldsson
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: cups

Bug appears in Ubuntu Karmic after updating to newest packages today.
I have not tried printing before since I upgraded to Ubuntu Karmic.

When I try to print to my HP laserjet 1020, the job gets stuck in the printer queue and nothing comes out of the printer.
After I start the print job, the CPU load goes up to 100% and stays there.

In the printer settings dialog I see the message "/usr/lib/cups/filter/hpcups failed".

ProblemType: Bug
Architecture: i386
CurrentDmesg:
 [ 250.360859] usblp0: removed
 [ 255.364316] usb 1-2: usbfs: USBDEVFS_CONTROL failed cmd hpcups rqt 161 rq 1 len 1 ret -110
 [ 285.844114] usb 1-2: usbfs: USBDEVFS_CONTROL failed cmd hpcups rqt 161 rq 1 len 1 ret -110
Date: Sat Jul 18 18:59:11 2009
DistroRelease: Ubuntu 9.10
Lpstat: device for HP-LaserJet-1020: hp:/usb/HP_LaserJet_1020?serial=FN07RRW
MachineType: Dell Inc. OptiPlex 760
Package: cups 1.3.11-1
Papersize: a4
PpdFiles: HP-LaserJet-1020: HP LaserJet 1020, hpcups 3.9.6b
ProcCmdLine: root=UUID=bdf581d1-f9c1-43d1-b750-01e28d5abd7f ro quiet splash
ProcEnviron:
 LANGUAGE=sv_SE.UTF-8
 LANG=sv_SE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-3.19-generic
SourcePackage: cups
Uname: Linux 2.6.31-3-generic i686
dmi.bios.date: 02/18/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A02
dmi.board.name: 0G214D
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA02:bd02/18/2009:svnDellInc.:pnOptiPlex760:pvr:rvnDellInc.:rn0G214D:rvrA00:cvnDellInc.:ct6:cvr:
dmi.product.name: OptiPlex 760
dmi.sys.vendor: Dell Inc.

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you run

hp-info -i -x --id -dhp:/usb/HP_LaserJet_1020?serial=FN07RRW

and post the output here? Does the output contain "FWVER"?

Can you run "hp-plugin" (or if it does not work "hp-plugin -i")? This installs HP's proprietary plug-in. Does this help?

Changed in cups (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
affects: cups (Ubuntu) → hplip (Ubuntu)
Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

When I execute the hp-info command as root, all but the last line of hp-info.txt above disappears.

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

Now I have run hp-plugin -i and downloaded the firmware form HP.
At the end of the installation the printer made some sounds, but when I print a page nothing happens.

I ran the printer troubleshooter again and this time a test page was actually printed, only it was printed half size (as when you print "2up" 90 degrees rotated).

I attach the new output from the troubleshooter.

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

New output of hp-info after installing the HP proprietary firmware.

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

The error_log in your troubleshoot2.txt contains following line:

D [18/Jul/2009:23:24:01 +0200] [Job 15] argv[5]="job-uuid=urn:uuid:8917bdd0-9cc0-3ccd-7a05-8cb7920df26c number-up=2 orientation-requested=3"

This line shows that your print job was sent with the option "number-up=2", which means 2 pages per sheet, and this was correctly executed.

What you need is to turn off the "number-up=2" option. Firdt look in system-config-printer, right-click printer icon, "Properties", "Job Options". Look whether there is an option for 2 pages per sheet set. Set it to 1 page per sheet.

Check also whether you have a ~/.cups/lpoptions file. Look into the file and if there is "number-up=2" in it somewhere, remove the "number-up=2".

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

I changed number-up to 1 in system-config-printer and now everyting works.

Thank you very much!

(except one certain PDF document that seems to take ages to send to the printer, and in the mean time, process "gs" (ghostscript?) is using 100% CPU power)

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

After a fresh reinstall of Ubuntu Karmic,
the printer stopped working.

I ran hp-plugin, and then the printer starts printing, but the pages are always blank.

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

hp-plugin installed the printer's firmware, so that you can print at all, but your reinstall of Karmic made bug 409962 apply. So please downgrade Poppler as described there and then try again and report back here.

Revision history for this message
Jonas Haraldsson (jonas-393950) wrote :

Today I was going to test the poppler downgrade as suggested,
but first I updated to all the latest packages and then tried printing, it worked flawlessly.
So it seems after a clean install, all I hav eto do is run hp-plugin to make the printer work.

Revision history for this message
sschuller (xsjsx-deactivatedaccount) wrote :

Same bug as in Jaunty... never been fixed. I posted here long ago... forwarded all info as requested... tried every 'fix' I ever saw on the internet... same problem.

Basically: you can install this printer perfectly - either after Jaunty or Karmic clean installs or by using the HP plugins, whatever you want - and it will work perfectly. However, as soon as you restart the computer, you've had it. No print will ever get sent to the printer.

If, however, you turn the printer off before you turn the computer off, then do not turn it back on until after the computer has booted, it will reinstall and work fine. But it will never work after being left 'on' during a restart.

The difference is evident in observing the power-up sequence of the printer. If it goes through a cycle with a slight pause in the middle, it will work. If it goes through a slightly longer power-up then abruptly halts, it will not work.

Revision history for this message
sschuller (xsjsx-deactivatedaccount) wrote :

To follow up the previous...

I went to the motherboard BIOS setup (Gigabyte motherboard) and disabled all 'legacy' ports - serial, parallel... everything I could find.
Now, FINALLY, for the first time in two years I can leave my printer turned on, reboot the computer, and still have a working printer. Something during the bootup was preventing the hp-usb port form being properly installed.

Revision history for this message
sschuller (xsjsx-deactivatedaccount) wrote :

Finally, in 10.4 Lucid, (I'm using the 64 bit version) this appears to be correctly resolved. The printer firmware is sent at a later time in the process - after the desktop is up on the screen, in fact - and it loads fully and properly. I assume this must have something to do with the HAL changes?

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

In Lucid, hp-plugin is run automatically when the printer is discovered and no firmware file on the system. Also timing problems for loading the firmware into the printer are fixed. So all the problems should be fixed there.

Changed in hplip (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
richard650 (rezeebe) wrote :

Unfortunately, all problems have not been fixed in Lucid.
I've tried all solutions I could find. HP LaserJet 1020
still not printing with Ubuntu 10.04. Full details and info
is here:

https://answers.launchpad.net/hplip/+question/109292

http://pastebin.org/240020

This goes on for two weeks now without a printer. I'm
very patient but it's clear that if basic functionality
is not being provided by major upgrades such as 10.04
with "Long Term Support", people are getting frustrated.

Richard

Revision history for this message
Gijs ter Beek (gijsterbeek) wrote :

Had some succes with manual compiling according to instructions from http://foo2zjs.rkkda.com/
After a reboot the effects were undone, however.
But at least we know it's not the printer ;)

Revision history for this message
Christopher (captain-c) wrote :

I have an HP LasterJet 2420d and for the most part my pdfs print fine from evince. I have run into documents though, that just fail completely to print. They leave the print queue as if they had been printed. When I use Adobe Reader to print these documents, gs takes 100% cpu for quite some time before it begins to print. Then pdftops does a decent job staying between 4-10% cpu while individual pages print, albeit slowly. These documents seem to be larger documents (~20MB) and have some graphics in them that may be causing the issue. Nonetheless, using Adobe Reader, it eventually prints, but using evince, it seemingly just drops off the face of my memory chip without printing.

I unfortunately cannot upload the documents that cause this behavior.

Lucid x64

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

Christopher, this bug is about problems of the HP LaserJet 1020 and its necessity to load its firmware file every time when it is turned on. Your LaserJet 2420d has its firmware built in as most printers have. So your problem is different. Please report a new bug and follow the instructions on https://wiki.ubuntu.com/DebuggingPrintingProblems, especially of the "CUPS error_log" section.

Revision history for this message
Mark F Smith (markfernleysmith) wrote :

Hi - as a relative newbie I am confused about this bug. I have a laserjet 1020 and am running 10.04 and like the above people the printer stopped working when I upgraded to 10.04. The printer is discovered by the system but it fails to download the driver to the printer. from what I see above this hasn't been fixed in 10.04. Is this correct?

As this is my first time writing a comment I apologise if this is out of place.

Thanks, Mark

Revision history for this message
richard650 (rezeebe) wrote :

As far as I can tell this has not been fixed in Ubuntu.

This here finally solved my problem:

http://foo2zjs.rkkda.com

follow ALL instructions!

NOTE:

usb://HP/LaserJet%201020

worked. NOT

usb:/dev/usb/lp0

(see Printer Properties > Device URI).

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.