Here it comes with a printcap entry like:
------------------ printcap ---------------------------
lp10
:cm=Accounting A-1
:lp=lp10%9100
:ifhp=model=hp4,status@
:if=/usr/libexec/filters/ifhp
:sd=/var/spool/lp/lp10
-------------------------------------------------------
And the result:
-------------------------------------------------------
# lpr -Plp10 /etc/hosts
# lpq -Plp10
Printer: lp10@pq
Queue: 1 printable job
Server: pid 1808 active
Unspooler: pid 1809 active
Status: processing 'dfA807pq.dom.ca', size 177, format 'f', IF filter
'ifhp' at 14:32:03.729
Filter_status: getting sync using 'pjl echo' at 14:32:03.749
Rank Owner/ID Class Job Files Size Time
active root@pq+807 A 807 /etc/hosts 177 14:32:03
# lpq -lll -Plp10
Status: waiting for subserver to exit at 14:32:03.718
Status: subserver pid 1809 starting at 14:32:03.720
Status: accounting at start at 14:32:03.720
Status: opening device 'lp10%9100' at 14:32:03.720
Status: printing job 'root@pq+807' at 14:32:03.729
Status: processing 'dfA807pq.dom.ca', size 177, format 'f', IF filter
'ifhp' at 14:32:03.729
Filter_status: pagecounter 0, pages 0 at 12:20:31.615
Filter_status: done at 12:20:31.615
Filter_status: using model 'hp4' at 14:32:03.748
Filter_status: pagecount using 'pjl info pagecount' at 14:32:03.749
Filter_status: setting up printer at 14:32:03.749
Filter_status: getting sync using 'pjl echo' at 14:32:03.749
Filter_status: sync done at 14:32:05.582
Filter_status: code = 11002, 'MP/Tray1/DuplexTray - Letter Paper' at
14:32:16.292
Rank Owner/ID Class Job Files Size Time
active root@pq+807 A 807 /etc/hosts 177 14:32:03
-------------------------------------------------------
Now I modify the printcap to look like this:
lp10
# :lp=lp10%9100
:lp=
:rm=lp10
:rp=raw
# :ifhp=model=hp4,status@
# :if=/usr/libexec/filters/ifhp
:sd=/var/spool/lp/lp10
-------------------------------------------------------
I remove the garbled PCL job
# lprm -Plp10 all
# lpc reread
# lpr -Plp10 /etc/hosts
# lpq -Plp10 -lll
Printer: lp10@pq (dest raw@lp10)
Queue: no printable jobs in queue
Status: sending control file 'cfA633pq.dom.ca' to raw@lp10 at 14:41:26.579
Status: completed sending 'cfA633pq.dom.ca' to raw@lp10 at 14:41:26.603
Status: sending data file 'dfA633pq.dom.ca' to raw@lp10 at 14:41:26.603
Status: completed sending 'dfA633pq.dom.ca' to raw@lp10 at 14:41:26.616
Status: done job 'root@pq+633' transfer to raw@lp10 at 14:41:26.616
Status: subserver pid 3635 exit status 'JSUCC' at 14:41:26.624
Status: [EMAIL PROTECTED]: job 'root@pq+633' printed at 14:41:26.625
Status: job 'root@pq+633' removed at 14:41:26.625
-------------------------------------------------------
The job prints fine. Obviously this is not a paper tray problem but
ifhp problem. I hope this helps.
Ralf
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 13, 2000 10:02 AM
To: [EMAIL PROTECTED]
Subject: RE: LPRng: FW: ifhp-3.3.21 and hp4
I think it wants 'letter' paper in the tray, and you do not
have it, or it thinks that it does not have it. This is a
problem when the PostScript/PCL code forces paper/tray selection.
Could you give me a bit more status?
lpq -lll should tell you a bit more.
Patrick Powell Astart Technologies,
[EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.astart.com)
> From [EMAIL PROTECTED] Tue Sep 12 22:29:45 2000
> From: "Wierzbicki, Ralf" <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: LPRng: FW: ifhp-3.3.21 and hp4
> Date: Tue, 12 Sep 2000 23:15:13 -0400
>
> Really.. Well guess what, there is paper in the paper tray. Test page
works
> fine, the LCD display reads: "READY". Strange, isn't it.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 12, 2000 10:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: FW: ifhp-3.3.21 and hp4
>
>
> > From [EMAIL PROTECTED] Tue Sep 12 07:10:32 2000
> > From: "Wierzbicki, Ralf" <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Subject: LPRng: FW: ifhp-3.3.21 and hp4
> > Date: Tue, 12 Sep 2000 09:16:43 -0400
> >
> > Hi,
> >
> > After downloading and installing ifhp-3.3.21 my HP4 printer stops
working:
> >
> > Filter_status: code = 11002, 'MP/Tray1/DuplexTray - Letter Paper' at
> > 22:23:00.151.
> >
> > Printcap:
> > lp10
> > :lp=lp10%9100
> > :ifhp=model=hp4,status@
> > :if=/usr/libexec/filters/ifhp
> > :sd=/var/spool/lp/lp10
> >
> > The printer is a plain HP4, it speaks PCL only and I didn't have any
> > problems with the previous version of ifhp. Thanks in advance.
> >
> > Ralf
>
> It wants paper in the paper tray...
>
> Patrick
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------