printer Hp 1320 needs Generic PCL 5e driver to work properly

Bug #872991 reported by blinkblink
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Medium
Unassigned
Oneiric
Fix Released
Medium
Unassigned
Precise
Fix Released
Medium
Unassigned

Bug Description

When adding this printer, Ubuntu defaults to HP LaserJet 1320 Foomatic/Poscipt driver
which renders the printer almost unusable.

(As shown in this thread: http://ubuntuforums.org/showthread.php?t=1101273)

The default driver is problematic but there's no way to change it in Ubuntu 11.10.

of course there's CUPS interface which is nice but not everybody knows it.

So the default driver of HP 1300 models needs to change to Generic (as stated in the second post of the above thread)
or there should be an easy way to choose a driver.

Thanks for your time.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gnome-control-center 1:3.2.0-0ubuntu6
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu3
Architecture: i386
Date: Wed Oct 12 20:28:33 2011
ExecutablePath: /usr/bin/gnome-control-center
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20111009)
ProcEnviron:
 PATH=(cusUser Name, no user)
 LANG=el_GR.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-control-center
UpgradeStatus: No upgrade log present (probably fresh install)
usr_lib_gnome-control-center:
 deja-dup 20.0-0ubuntu3
 gnome-bluetooth 3.2.0-0ubuntu1
 indicator-datetime 0.3.0-0ubuntu3

Revision history for this message
blinkblink (thomasthoma) wrote :
affects: gnome-control-center (Ubuntu) → system-config-printer (Ubuntu)
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Uploaded fixed system-config-printer package as an SRU for Oneiric to oneiric-proposed. Please test the package as soon as it gets approved (will be announced by another comment in this bug report). A debdiff of the fix is attached.

Changed in system-config-printer (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
milestone: none → oneiric-updates
tags: added: patch
Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello blinkblink, or anyone else affected,

Accepted system-config-printer into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Lars Karlitski (larsu) wrote :

I've tested the package in oneiric-propsed, it works as advertised.

tags: added: verification-done
removed: verification-needed
Revision history for this message
blinkblink (thomasthoma) wrote :

did not work for me.

here's what I did

1. enabled oneiric-proposed, updated the system (I spotted the system-config-printer update ) and rebooted.
2. removed printer and added it again.
3. tried to print a pdf

result: same behaviour.

endless loop of printing out empty pages. On the first page there was a message: "#CUPS-COMMAND AutoConfigure %..."

Then I deleted the .cups and .config/gnome-control-center folders and tried again from step 2.
same behaviour again.

At last I went back to cups interface and set the driver to: "Generic PCL 5e Printer Foomatic/hpijs-pcl5e (recommended)"
which works great.

thanks for your time.

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

blinkblink,

at first, check the version number of system-config-printer. It must be 1.3.6+20110831-0ubuntu9.2. Use the command

dpkg -l | grep system-config-printer

If you have an older version, you do not have the fix and have to wait until your download mirror picks up the fixed version. If the version arrives, install it and remove and re- create your printer again. A reboot is not needed.

Please tell which driver got automatically assigned to the print queue.

Please attach the PPD file which your printer automatically got (/etc/cups/ppd/*.ppd) and the /etc/cupshelpers/preferreddrivers.xml here.

After that try also the following:

sudo dpkg -P --force-depends python-cupshelpers
sudo apt-get install python-cupshelpers

Then remove and re-create your print queue. Do you have a correct driver assignment now?

Attach also the file which you have printed when you got the endless blank pages and the "#CUPS-COMMAND AutoConfigure %..." on the first page (or tell which button you have clicked in which program).

Please follow all these instructions and answer all the questions. It is possible that the originally reported bug (wrong driver selection) is fixed but another bug (in HPLIP, the HP driver from HP) has shown up.

Revision history for this message
blinkblink (thomasthoma) wrote :

1. system-config-printer, the latest version (1.3.6+20110831-0ubuntu9.2) was installed.

2. Driver: HP LaserJet 1320 Foomatic/Postscript (grayscale, 2-sided printing) got automatically assigned.

3. removed and reinstalled python-cupshelpers. Removed the printer and added new. The same driver got assigned again.

4. the attachement contains "vimqrc.pdf" which is the file I tried to print.

thank you :)

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

Now I need the finest detail of what has happened, so that I can reproduce it.

First I need to know how your printer gets detected.

Tell us, whether your printer is connected by USB or via the network.

If the printer is connected via USB, run

sudo /usr/lib/cups/backend/usb
hp-probe -busb

and post the output here.

If your printer is connected through the network, run

sudo /usr/lib/cups/backend/dnssd
sudo /usr/lib/cups/backend/snmp
hp-probe -bnet -mslp
hp-probe -bnet -mmdns

ans also post this output here. If a command does not exit by itself, stop it with Ctrl+C after some seconds and continue.

Run

system-config-printer --debug 2>&1 | tee log

In system-config-printer remove your print queue and recreate it. After that close system-config-printer and attach the file "log" to this bug report.

Print the file which does not print for you. For this job follow the instructions in the sections "CUPS error_log" and "Capturing print job data" of https://wiki.ubuntu.com/DebuggingPrintingProblems.

In this comment I have asked you for several attachments. Please do not pack them together and do not compress them. Attach them one by one. It is no problem to create more than one comment for them.

Revision history for this message
blinkblink (thomasthoma) wrote :

Dear Till,

thank you for your help, patience and also for fixing this bug. :)

I now see what went wrong in my system:

I autologin to *gnome-shell* and all this time I was using gnome's default "printer config thingy".

I had no idea it was different from system-config-printer until I executed the command you told me.

 I logged in to unity and realised that system-config-printer is used by default instead of gnome's "printer config thingy".

When added through system-config-printer, my printer works like a charm. Kudos to you sir!

P.S. my printer is connected by parallel port ( IEEE 1284).

at the end of the log I found this:

 **** Incorrect IEEE 1284 Device ID: [u'drv:///hpijs.drv/hp-laserjet_1320_series-hpijs-pcl3.ppd', u'drv:///hpcups.drv/hp-laserjet_1320_series-pcl3.ppd', u'hplip:0/ppd/hplip/HP/hp-laserjet_1320-ps.ppd', u'hplip:2/ppd/hplip/HP/hp-laserjet_1320-ps.ppd']
**** Actual ID is MFG:Hewlett-Packard;MDL:hp LaserJet 1320 series;
**** Please report a bug against the HPLIP component
**** Incorrect IEEE 1284 Device ID: [u'drv:///hpijs.drv/hp-laserjet_1320_series-hpijs-pcl3.ppd', u'drv:///hpcups.drv/hp-laserjet_1320_series-pcl3.ppd', u'hplip:0/ppd/hplip/HP/hp-laserjet_1320-ps.ppd', u'hplip:2/ppd/hplip/HP/hp-laserjet_1320-ps.ppd']
**** Actual ID is MFG:Hewlett-Packard;MDL:hp LaserJet 1320 series;
**** Please report a bug against the HPLIP component

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

Don't worry about the noise, it is caused by use of an application not treated in this bug report (see also bug 874268 and https://blueprints.launchpad.net/ubuntu/+spec/desktop-p-system-config-printer-vs-gnome-3-control-center). The SRU for system-config-printer is verified to work by two users, Lars Uebernickel and blinkblink. So it is ready to go into -updates.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.3.6+20110831-0ubuntu10

---------------
system-config-printer (1.3.6+20110831-0ubuntu10) precise; urgency=low

  * debian/patches/73_fix_file_descriptor_leak_in_ppdcache.patch: Fixed
    file descriptor leak in PPD cache (LP: #874445).
  * debian/patches/70_use-hpcups-instead-of-ps-with-hp-laserjet-12xx-13xx.patch:
    Use the PCL-5e driver (HPLIP's hpcups) instead of PostScript as recommended
    driver on the HP LaserJet 12xx and 13xx as they do not come with enough
    memory for PostScript. The PostScript driver options are still listed for
    manual selection so that users with a memory extension in the printer can
    use them (LP: #872991).
 -- Till Kamppeter <email address hidden> Fri, 21 Oct 2011 16:06:24 +0200

Changed in system-config-printer (Ubuntu):
status: Fix Committed → Fix Released
Changed in system-config-printer (Ubuntu Precise):
milestone: oneiric-updates → none
Changed in system-config-printer (Ubuntu Oneiric):
milestone: none → oneiric-updates
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.3.6+20110831-0ubuntu9.2

---------------
system-config-printer (1.3.6+20110831-0ubuntu9.2) oneiric-proposed; urgency=low

  * debian/patches/70_use-hpcups-instead-of-ps-with-hp-laserjet-12xx-13xx.patch:
    Use the PCL-5e driver (HPLIP's hpcups) instead of PostScript as recommended
    driver on the HP LaserJet 12xx and 13xx as they do not come with enough
    memory for PostScript. The PostScript driver options are still listed for
    manual selection so that users with a memory extension in the printer can
    use them (LP: #872991).
 -- Till Kamppeter <email address hidden> Thu, 13 Oct 2011 19:33:24 +0200

Changed in system-config-printer (Ubuntu Oneiric):
status: Fix Committed → Fix Released
blinkblink (thomasthoma)
Changed in system-config-printer (Ubuntu):
status: Fix Released → New
Changed in system-config-printer (Ubuntu Precise):
status: Fix Released → New
Revision history for this message
blinkblink (thomasthoma) wrote :

The Bug is back in Precise (Unity)

Default settings result in the printer taking forever to process a printing request(unless it's a test page!)
and finally printing (instead of the actual text):

"""
ERROR: invalidaccess
OFFENDING COMMAND: filter
STACK:
/SubFileDecode
...etc
"""

The solution, as before: Generic PCL 5e

Please make the fix last forever more. :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in system-config-printer (Ubuntu Precise):
status: New → Confirmed
Changed in system-config-printer (Ubuntu):
status: New → Confirmed
tags: added: precise regression-release
removed: oneiric verification-done
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :
Changed in system-config-printer (Ubuntu Precise):
status: Confirmed → Fix Released
Changed in system-config-printer (Ubuntu):
status: Confirmed → Fix Released
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.