System:
- Debian GNU/Linux 2.2; kernel 2.2.16 with USB backport patches
- LPRng 3.6.20
- ifhp 3.3.17
- Lexmark Optra E312 on /dev/usb/lp0

printcap:
===
lexmark
        :lp=/dev/usb/lp0
        :if=/usr/local/lib/filters/ifhp -Tmodel=lexmark_optra_e312
        :sd=/var/spool/lpd/lexmark
        :cm=Lexmark Optra E312 (USB)
        :rw
        :sh
===

If I set up LPRng to use ifhp as an input filter, ifhp fails to obtain 
sync from the printer.

===
using model 'lexmark_optra_e312' at 21:42:51.623
pagecount using 'pjl info pagecount' at 21:42:51.625
setting up printer at 21:42:51.625
getting sync using 'pjl echo' at 21:42:51.625
[... and that's where it stops.]
===

If I then cancel the job and cat /dev/usb/lp0, I get
===
@PJL USTATUS DEVICE
CODE=10023
DISPLAY="Busy"
ONLINE=TRUE

@PJL ECHO [EMAIL PROTECTED]

@PJL INFO PAGECOUNT
33

@PJL USTATUS DEVICE
CODE=10001
DISPLAY="Ready"
ONLINE=TRUE
===
... so sync *is* coming back; LPRng/ifhp just aren't seeing it.

If I set ifhp to sync@, pagecount@, waitend@, the job prints.

If I change the printcap so that
:lp=|/usr/local/lib/filters/ifhp 
-Tmodel=lexmark_optra_e312,dev=/dev/usb/lp0
and remove the if= entry, the job prints, but ifhp doesn't even bother 
trying to get sync/pagecount/waitend.
===
using model 'lexmark_optra_e312' at 22:21:44.360
setting up printer at 22:21:44.366
pagecounter 0 at 22:21:44.367
sending job file at 22:21:44.369
starting transfer at 22:21:44.370
file program = '/usr/bin/file -' at 22:21:44.379
started FILE_UTIL- '/usr/bin/file -' at 22:21:44.380
file information = 'ascii_text' at 22:21:44.469
initial job type 'ascii_text' at 22:21:44.469
decoded job type 'PCL' at 22:21:44.469
job type 'PCL' at 22:21:44.469
transferring 7 bytes at 22:21:44.471
100 percent done at 22:21:44.473
finished writing file, cleaning up at 22:21:44.475
sent job file at 22:21:44.475
pagecounter 0, pages 0 at 22:21:44.479
done at 22:21:44.480
===
...which is contrary to the status, pagecount, waitend configuration in 
ifhp.conf.

Various debug logs have shown nothing particularly enlightening, but then 
I'm not exactly sure what I'm looking for.

Thoughts?

TIA,
--Benjamin Gilbert

-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to