The attached patch (to apply to the hpfax.py file) fixes the problem.

   Till


Till Kamppeter wrote:
Hi,

I have found a bg in the current HPLIP (1.7.1). I have run "lpinfo -v" and saw the "hp:/..." URI of my HP LaserJet 3390 (on USB) twice. I found that strange and tried starting the CUPS backends manually. There I found out that hpfax gives

-----------------------------------------------------------------------
[EMAIL PROTECTED]:~/ubuntu/foomatic-db$ /usr/lib/cups/backend/hpfax
direct hp:/usb/HP_LaserJet_3390?serial=00CNMJP81545 "HP Fax" "HP_LaserJet_3390 HP Fax" "MFG:HP;MDL:Fax;DES:HP Fax;"
[EMAIL PROTECTED]:~/ubuntu/foomatic-db$
-----------------------------------------------------------------------

It should give

-----------------------------------------------------------------------
[EMAIL PROTECTED]:~/ubuntu/foomatic-db$ /usr/lib/cups/backend/hpfax
direct hpfax:/usb/HP_LaserJet_3390?serial=00CNMJP81545 "HP Fax" "HP LaserJet 3390 HP Fax" "MFG:HP;MDL:Fax;DES:HP Fax;"
[EMAIL PROTECTED]:~/ubuntu/foomatic-db$
-----------------------------------------------------------------------

Note the URI having to begin with "hpfax:/...". Another small thing which you could fix is removing the underscores from the "HP_LaserJet_3390 HP Fax" (4th field of the output), as this field is used for the human-readable listing in the web interface of CUPS.

   Till


--- hpfax.py.orig	2007-02-08 16:59:09.000000000 +0000
+++ hpfax.py	2007-02-14 12:42:47.000000000 +0000
@@ -130,7 +130,7 @@
         except Error:
             continue
 
-        print 'direct %s "HP Fax" "%s HP Fax" "MFG:HP;MDL:Fax;DES:HP Fax;"' % (uri, model)
+        print 'direct %s "HP Fax" "%s HP Fax" "MFG:HP;MDL:Fax;DES:HP Fax;"' % ('hpfax' + uri[2:], model.replace('_', ' '))
         good_devices += 1
 
     if not good_devices:
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

Reply via email to