#578838 Doesn't detect print queues on Netgear print servers

#578838#5
Date:
2010-04-23 01:20:26 UTC
From:
To:
When setting up an LPD printer with the gnome Printers applet, selecting
'LPD/LPR printer', entering a hostname or IP address and clicking on 'Probe',
tha applet hangs indefinitely.  The printer concerned is an HP LJ 6mp
connected to a cheap and nasty Netgear print server.

Setting up the printer by manually specifying the queue and so on works fine,
but probing for it doesn't.  At the veyr least, it should fail/timeout
gracefully.

Terminal output from the applet appears below:
# system-config-printer
/usr/bin/system-config-printer:181: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.xml = gtk.glade.XML(xml, domain = domain)
/usr/bin/system-config-printer:262: DeprecationWarning: Use the new widget gtk.Tooltip
  self.tooltips = gtk.Tooltips()
/usr/bin/system-config-printer:263: DeprecationWarning: Use the new widget gtk.Tooltip
  self.tooltips.enable()
PASSTHRU

The line 'PASSTHRU' appears when you click on the 'probe' button.

Thanks,

John.

#578838#8
Date:
2010-08-10 20:42:05 UTC
From:
To:
Hi,
could you try to reproduce the issue with the version in experimental
and run s-c-p with --debug so we get the necessary information?
Cheers,
 -- Guido

#578838#13
Date:
2010-08-13 09:20:48 UTC
From:
To:
Hi again,

I've attached here the output of s-c-p --debug, generated using the
"squeeze" version of s-c-p (1.0.0-6).

It hangs after printing the first "guessed" port name, 'PASSTHRU'; I hit
CTRL-C after a few minutes.

Regards,


John

#578838#18
Date:
2010-08-13 09:02:32 UTC
From:
To:
Hi Guido,

Sorry for the delay in responding.

I've attached a transcript of "system-config-printer --debug", generated
using s-c-p from experimental (1.2.3-0.1).

With this version it all went more or less as it should (no hang),
although it did not identify the printer queue (for reference, Netgear
print servers use queue names like 'p1' or 'p2').

Regards,


John.

#578838#25
Date:
2010-08-13 17:16:54 UTC
From:
To:
severity 578838 normal
retitle 578838 Doesn't detect print queues on Netgear print servers
thanks

Hi John,
Thanks for reporting back. Could you try this patch and see if it then
detects your printers (assuming these are lpd queues):

diff --git a/probe_printer.py b/probe_printer.py
index 56bf7a1..7ab3d0c 100644
--- a/probe_printer.py
+++ b/probe_printer.py
@@ -167,6 +167,9 @@ class LpdServer:
         for nr in range (50):
             candidate.append ("pr%d" % nr)

+        for nr in range (5):
+            candidate.append ("p%d" % nr)
+
         return candidate

     def probe(self):

Cheers,
 -- Guido

#578838#30
Date:
2010-09-28 12:37:01 UTC
From:
To:
Did you get a chance to try the patch? If you don't want to rebuild the
package you can "handedit"

/usr/share/system-config-printer/probe_printer.py

and reinstall system-config-printer to undo the changes if anythong goes
wrong.
Cheers,
 -- Guido