Wrong driver used because of incorrect device-ids

Bug #653814 reported by Pascal De Vuyst
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
foomatic-db (Ubuntu)
Fix Released
High
Till Kamppeter
Maverick
Fix Released
High
Till Kamppeter
system-config-printer (Ubuntu)
Fix Released
High
Till Kamppeter
Maverick
Fix Released
High
Till Kamppeter

Bug Description

Binary package hint: hplip

I have HP LaserJet 4000N connected via network.
In maverick system-config-printer automatically uses the gutenprint simplified driver for my printer instead of the expected postscript (recommended) driver. In Lucid the postscript (recommended) driver is used, so this is a regression.

Running system-config-printer --debug shows the following information:
Got PPDs
**** Incorrect IEEE 1284 Device ID: [u'drv:///hpijs.drv/hp-laserjet_4000_series-hpijs-pcl3.ppd', u'drv:///hpcups.drv/hp-laserjet_4000_series-pcl3.ppd', u'hplip:0/HP/hp-laserjet_4000_series-ps.ppd']
**** Actual ID is MFG:Hewlett-Packard;MDL:HP LaserJet 4000 Series;
**** Please report a bug against the HPLIP component
Using gutenprint.5.2://hp-lj_4000/simple (status: 0)
Will fetch ppd? 1
ppd: u'gutenprint.5.2://hp-lj_4000/simple'

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: hplip 3.10.6-1ubuntu10
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Sat Oct 2 21:26:45 2010
LiveMediaBuild: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate i386 (20101002)
Lpstat: device for Hewlett-Packard-HP-LaserJet-4000-Series: hp:/net/HP_LaserJet_4000_Series?ip=10.0.0.51
Lsusb:
 Bus 002 Device 003: ID 80ee:0021
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: innotek GmbH VirtualBox
Papersize: a4
PpdFiles: Hewlett-Packard-HP-LaserJet-4000-Series: HP LaserJet 4000 - CUPS+Gutenprint v5.2.6 Simplified
ProcCmdLine: file=/cdrom/preseed/hostname.seed boot=casper initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity
ProcEnviron:
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
SourcePackage: hplip
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Running lpinfo -l -m | grep 4000 | grep -i laserjet shows:
Model: name = drv:///hpijs.drv/hp-laserjet_4000_series-hpijs-pcl3.ppd
        make-and-model = HP LaserJet 4000 Series hpijs pcl3, 3.10.6
        device-id = MFG:HP;MDL:hp laserjet 4000 series;DES:hp laserjet 4000 series;
Model: name = drv:///hpcups.drv/hp-laserjet_4000_series-pcl3.ppd
        make-and-model = HP LaserJet 4000 Series pcl3, hpcups 3.10.6
        device-id = MFG:HP;MDL:hp laserjet 4000 series;DES:hp laserjet 4000 series;
Model: name = hplip:0/HP/hp-laserjet_4000_series-ps.ppd
        make-and-model = HP LaserJet 4000 Series Postscript (recommended)
        device-id = MFG:HP;MDL:HP LaserJet 4000 Series;
Model: name = hplip:1/HP/hp-laserjet_4000_series-ps.ppd
        make-and-model = HP LaserJet 4000 Series Postscript (recommended)
        device-id = MFG:HP;MDL:Hewlett-Packard HP LaserJet 4000 Series;

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Also why are there two hplip entries that provide identical "HP LaserJet 4000 Series Postscript (recommended)" PPDs ?
Both show up in the cups webinterface making it confusing for a user then wondering which one he should choose?

$ /usr/lib/cups/daemon/cups-driverd cat hplip:0/HP/hp-laserjet_4000_series-ps.ppd > 0.txt
$ /usr/lib/cups/daemon/cups-driverd cat hplip:1/HP/hp-laserjet_4000_series-ps.ppd > 1.txt
$ diff -us 0.txt 1.txt
Files 0.txt and 1.txt are identical

tags: added: regression-potential
Changed in hplip (Ubuntu):
assignee: nobody → Till Kamppeter (till-kamppeter)
importance: Undecided → High
milestone: none → ubuntu-10.10
status: New → In Progress
affects: hplip (Ubuntu Maverick) → foomatic-db (Ubuntu Maverick)
Changed in system-config-printer (Ubuntu Maverick):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Till Kamppeter (till-kamppeter)
milestone: none → ubuntu-10.10
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

This bug was introduced by my changes done to make PPDs for Ricoh printers correctly selected depending on whether an optional PostScript module is installed or not, but for many other PostScript printers (especially HP, in general printers where the exact device ID is set in the Foomatic database or in Gutenprint but not in the manufacturer-supplied PostScript PPD) PCL PPDs got selected instead of the manufacturer-supplied PostScript PPDs.

I have fixed this problem in the system-config-printer and foomatic-db. Packages for Maverick are ready for upload.

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

Fixes are uploaded now and wait for approval.

Changed in system-config-printer (Ubuntu Maverick):
status: In Progress → Fix Committed
Changed in foomatic-db (Ubuntu Maverick):
status: In Progress → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

system-config-printer (1.2.3+20100723-0ubuntu8) maverick; urgency=low

  * debian/patches/70_select-ppd-by-command-set.patch: If a PPD does not have
    a device ID or if it has a device ID without CMD: field, do not give a
    lower priority to it. Give only lower priorities if the PPD has a CMD:
    field without any matching PDL. This avoids that Foomatic PPDs with full
    device ID are prioritized against HP's original PostScript printer PPDs
    without device ID at all (LP: 653814).

 -- Till Kamppeter <email address hidden> Tue, 5 Oct 2010 12:33:06 +0200

Changed in system-config-printer (Ubuntu Maverick):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package foomatic-db - 20100915-0ubuntu4

---------------
foomatic-db (20100915-0ubuntu4) maverick; urgency=low

  * debian/local/pyppd/pyppd/ppd.py: Fixed PPD file list generated by the
    compressed PPD file archive for the PostScript PPDs. The artificial
    device IDs generated for PPDs without *1284DeviceID: entry lead to wrong
    assumptions when system-config-printer selects the driver for a detected
    printer (LP: #653814).
 -- Till Kamppeter <email address hidden> Tue, 5 Oct 2010 11:48:03 +0200

Changed in foomatic-db (Ubuntu Maverick):
status: Fix Committed → 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.