Bug 996661 - Printers missing from printer discovery list
Summary: Printers missing from printer discovery list
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-13 15:44 UTC by David Woodhouse
Modified: 2013-08-19 20:18 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-14 20:56:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 705851 0 None None None Never

Description David Woodhouse 2013-08-13 15:44:39 UTC
If more than one printer of a given model is discovery by CUPS, control-center chooses to display only *one* of them.

As described in the upstream bug, you don't have to buy a matching pair of printers to test this. You can do it with a simple shell script like this in
/usr/lib/cups/backends:

#!/bin/sh

cat <<EOF
socket socket://127.0.0.1:9100 "foo1" "bar1" "MDL:HP LaserJet M5035 MFP" "left"
socket socket://127.0.0.2:9100 "foo2" "bar2" "MDL:HP LaserJet M5035 MFP" "right"
EOF

Comment 1 David Woodhouse 2013-08-14 15:44:23 UTC
The code in pp-new-printer-dialog.c appears to be almost completely uncommented but it looks like the problem might actually be with the GroupPhysicalDevices method in system-config-printer.

The two devices of the same type are grouped together in the response:

      array [
         string "http"
         string "https"
         string "ipps"
         string "smb"
      ]
      array [
         string "socket://127.0.0.1"
         string "socket://127.0.0.2"
      ]

And this appears to make the dialog ignore all but the first.

Comment 2 Tim Waugh 2013-08-14 16:11:10 UTC
"socket" is not a valid device class (first field).  I think you want 'network' there?

Comment 3 David Woodhouse 2013-08-14 20:56:28 UTC
Doh! That makes it work much better — thanks!

Now I have the opposite problem. If I add one of these "discovered" printers, and then go to add another, the original one that I already added is still there. The control-center code was trying to filter those out, wasn't it?

Comment 4 Marek Kašík 2013-08-19 11:02:55 UTC
(In reply to David Woodhouse from comment #3)
> Now I have the opposite problem. If I add one of these "discovered"
> printers, and then go to add another, the original one that I already added
> is still there. The control-center code was trying to filter those out,
> wasn't it?

Hi David,

control-center doesn't try to filter already added printers out. It keeps them there because user might want to have the same printer with different settings.

Marek

Comment 5 David Woodhouse 2013-08-19 20:18:36 UTC
Makes sense; thanks for the update.

I have all this working fairly nicely now. Apart from the PIN-based secure printing, which works kind of sporadically. qv.


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