Red Hat Bugzilla – Bug 244546
Better model matching (5400 != 540C)
Last modified: 2007-11-30 17:12:07 EST
Description of problem:
I just noticed this on my root terminal when running system-config-printer:
[root@gizmo ~]# Writing new pickle
Please report a bug in Bugzilla against 'foomatic':
Include this complete message.
Guessing HP-DeskJet_540C from IEEE 1284 ID:
<model>Deskjet 5400 series</model>
<description>Deskjet 5400 series</description>
This may be related to a bug I've just posted id=244544.
Version-Release number of selected component (if applicable):
I think ,just plug in a Deskjet 5400 series (via USB).
Please try the test update:
yum --enablerepo=updates-testing update foomatic
Once the package is installed, is the correct printer model selected from the
list when you go to add a new queue?
Created attachment 157872 [details]
Console output from system-config-printer
In the system-config-printer tool, no. It's still choosing 540C as the model
after I delete both drivers for the Deskjet 5440 and go through the New Printer
process. The attachment 157872 [details] is the console output. I noticed that only one
5400 series driver is showing up in the list of New Printers.
Please attach the output of '/usr/sbin/lpinfo -l -v'. Thanks.
Created attachment 157889 [details]
Thanks. Now please show me the output of this command:
find /sys/devices -name ieee1284_id | xargs cat
That command returned nothing, so I did a
find /sys/devices | grep ieee
And with grep 1284
Still nothing. I'll attach the full 'find' listing.
Without that information I won't be able to fix this.
Created attachment 161760 [details]
Listing of the /srv/devices virtual directory
Created attachment 161761 [details]
Actual files from the previous listing
Passed file names to 'cat' as requested
I'm not sure of the current status of the bug as I haven't used the GUI recently
and received the error. I've been using the CUPS daemon remotely with a web
browser to configure the printer: I had a but with the same printer not working
on Samba because the default configured printer name was too long, and recently
the driver was switched to 'raw' rather than the HP Linux driver. Let me know
what other information I can provide, thanks.
Please show me the full output of this command, when the printer is connected
and switched on:
/usr/sbin/lpinfo -l -v
Created attachment 205881 [details]
Output of `/usr/sbin/lpinfo -l -v`
The model matching algorithm in system-config-printer needs to be a lot smarter.
The printer's model should be sorted in with the available models and the
before and after matches should be compared to see which is "better". In this
case it would be between DeskJet 5160 and DeskJet 5440, with 5440 being "better"
(longer initial match).
Unfortunately, HP seems to have chosen to be inconsistent with the series name,
so we have 'DeskJet' (capital J) and 'Deskjet' (lowercase J), and this would
throw off the sorting.
So, I think we'll need to perform case insensitive sorting.
Fixed in SVN for 0.7.74.x and trunk. No package built yet.
Fixed in 0.7.74.4.