Bug 630350 - debug output gives wrong Device ID
Summary: debug output gives wrong Device ID
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-04 22:07 UTC by Joachim Frieben
Modified: 2010-11-22 22:14 UTC (History)
2 users (show)

Fixed In Version: system-config-printer-1.2.5-6.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-22 22:14:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Output of SNMP scan for JetDirect connected printer HP LaserJet 4000 (19.45 KB, text/plain)
2010-09-09 09:20 UTC, Joachim Frieben
no flags Details

Description Joachim Frieben 2010-09-04 22:07:26 UTC
Description of problem:
After the network install a fully updated F13 system, system-config-printer suggests driver "laserjet.ppd" ("HP LaserJet Series PCL 4/5") for the HP LaserJet 4000 attached via JetDirect which only offers the most basic options for setting up this model, e.g. a maximum resolution of only 600 dpi whereas the highest available resolution is 1200 ProRes.

Version-Release number of selected component (if applicable):
system-config-printer-1.2.3-3.fc13.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Launch s-c-p for setting up an HP LaserJet 4000 printer.
2. Choose interface type "JetDirect" and enter the printer's IP address.
  
Actual results:
s-c-p suggests driver "laserjet.ppd" ("HP LaserJet Series PCL 4/5")

Expected results:
s-c-p suggests the optimum HP Laserjet 4000 series Postscript driver or at least driver "pxlmono.ppd" ("HP LaserJet Series PCL6 CUPS") which is listed together with the "laserjet.ppd" one.

Additional info:
After manually installing package foomatic-4.0.4-12.fc13 plus prerequisites, s-c-p chooses driver "HP LaserJet 4000 Foomatic/hpijs" and wants to install package hpijs-3.10.5-1.fc13 which pulls in net-snmp-5.5-16.fc13, too. Once these packages have been installed, s-c-p chooses yet another driver, this time the "POSTSCRI.PPD" ("HP LaserJet 4000 Series Postscript") one which finally allows to choose a resolution of 1200 dpi.
For previous releases of Fedora, system-config-printer immediately defaulted to the PostScript driver which offers the most possibilities, e.g. specifying the size of the printer memory or higher resolutions.

Comment 1 Jiri Popelka 2010-09-06 14:13:14 UTC
Can you show me the output (if there's any) from
/usr/lib/cups/backend/snmp <printer's IP address>

Comment 2 Joachim Frieben 2010-09-08 08:10:45 UTC
Unfortunately, /usr/lib/cups/backend/snmp <printer's IP address> run from the command line does not return anything.

Comment 3 Jiri Popelka 2010-09-08 09:33:19 UTC
Then try
CUPS_DEBUG_LEVEL=2 /usr/lib/cups/backend/snmp <printer's IP address> 2>&1 | tee snmp.log
and attach the snmp.log file to this bug report. thanks

Comment 4 Joachim Frieben 2010-09-09 09:20:20 UTC
Created attachment 446187 [details]
Output of SNMP scan for JetDirect connected printer HP LaserJet 4000

This scan stems from the original system after a fresh install from the F14 development tree plus updates from the testing repository. However, behaviour is exactly like in the case of F13 plus updates. Installed packages include:
- cups-1.4.4-7.fc14.x86_64
- system-config-printer-1.2.4-1.fc14.x86_64

Comment 5 Joachim Frieben 2010-09-09 09:26:08 UTC
When run from the command line, s-c-p issues the following output to the shell up to the stage where the two available drivers (laserjet.ppd, pxlmono.ppd) are listed, the PCL5 (laserjet.ppd) one being highlighted:

> system-config-printer

(system-config-printer.py:3724): libnotify-WARNING **:
  Missing symbol 'gdk_screen_make_display_name'
No ID match for device socket://192.168.2.2:9100:
MFG:HP;MDL:LaserJet 4000;DES:HP LaserJet 4000;
Using drv:///sample.drv/laserjet.ppd (status: 1)

Comment 6 Joachim Frieben 2010-09-11 11:01:15 UTC
During a fresh net install of F14, I have noticed that printing support is not enabled by default in the package selection for utilization scheme "Software Development" (default was "Desktop"). Once, printing support has been activated manually, packages foomatic-* are scheduled for install, and s-c-p defaults to the proven PS driver.
Thus, the choice of "laserjet.ppd" in the previous case was reasonable. I suppose that printing support had not enabled in F13 by default either.
Is this an installer bug (well, rather an omission in comps)?

Comment 9 Tim Waugh 2010-09-13 15:57:47 UTC
The problem here is just that the Device ID for this printer was missing from the package that provides the driver -- see bug #633227.

I'll keep this bug open to track another problem: that comment #5 shows the wrong Device ID in the debug output as a result of trying different substitutions for the manufacturer's name.

Comment 10 Joachim Frieben 2010-09-23 15:36:58 UTC
(In reply to comment #9)
After a fresh install from the F14 development tree, the issue persists. The package selection was the default one suggested for the purpose of software development. Surprisingly, after install package s-c-p was missing completely (system-config-printer-1.2.4-2.fc14 to be more precise).
After installing the latter, "HP LaserJet Series PCL 4/5 [en]" is suggested as the recommended driver. If I understand comment 9 correctly, then the issue is actually related to package hplip which led to the creaton of bug 633227. However, hplip is not even installed on this system!

Comment 11 Tim Waugh 2010-09-23 15:51:13 UTC
(In reply to comment #10)
> (In reply to comment #9)
> After a fresh install from the F14 development tree, the issue persists. The
> package selection was the default one suggested for the purpose of software
> development. Surprisingly, after install package s-c-p was missing completely
> (system-config-printer-1.2.4-2.fc14 to be more precise).

Perhaps due to this comps change?:

==>
commit bc5188dad910d2e56c9631a9d84a326c861e5ff7
Author: Peter Robinson <pbrobinson>
Date:   Sat Sep 18 08:59:24 2010 +0100

    move printing from X to printing
<==

> After installing the latter, "HP LaserJet Series PCL 4/5 [en]" is suggested as
> the recommended driver. If I understand comment 9 correctly, then the issue is
> actually related to package hplip which led to the creaton of bug 633227.
> However, hplip is not even installed on this system!

The reason that would be an hplip bug even though the package is not installed is to do with the way we automatically install appropriate drivers for printers.  The point is that the hplip should identify itself as an appropriate driver for that printer in the package tags available via PackageKit (which fetches all the package tags from the online repository).

What your comment tells me is that, if the automatic printer driver installation feature is working correctly for you, the hplip package does not have the correct IEEE 1284 Device ID for this printer in its RPM tags.  That's what bug #633227 is tracking.

(Of course, you can install hplip yourself -- but the point is that it should be automatically downloaded and installed when you plug in the printer.)

Comment 12 Tim Waugh 2010-09-27 12:28:14 UTC
Debug message fixed upstream in commit 025669c.

Comment 13 Fedora Update System 2010-10-13 14:47:09 UTC
system-config-printer-1.2.5-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/system-config-printer-1.2.5-1.fc14

Comment 14 Fedora Update System 2010-10-13 14:54:55 UTC
system-config-printer-1.2.5-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/system-config-printer-1.2.5-1.fc13

Comment 15 Fedora Update System 2010-10-14 06:24:09 UTC
system-config-printer-1.2.5-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-printer'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/system-config-printer-1.2.5-1.fc13

Comment 16 Fedora Update System 2010-11-16 23:23:17 UTC
system-config-printer-1.2.5-6.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2010-11-22 22:12:59 UTC
system-config-printer-1.2.5-6.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.