| Michael Loßin on Tue, 13 Feb 2001 16:00:54 +0100 (CET) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: apsfilter parameters (was: bug in SETUP) |
John Reynolds wrote:
>
> However, I'm having a heck of a time doing what I want to do. Perhaps you or
> someone on the list can help (because honestly the apsfilter.org site wasn't
> much help). Previously I had 4 print queues setup in my printcap (abbreviated):
>
> lp|lp640|aps1-stc640p.upp-letter-auto-default|Printer1 stc640p.upp letter auto d
> efault:\
> :sd=/var/spool/lpd/printer1-stc640p.upp-letter-auto-default:\
>
> lp360|aps2-stc600pl.upp-letter-auto-default|Printer1 stc600pl.upp letter auto de
> fault:\
> :sd=/var/spool/lpd/printer1-stc600pl.upp-letter-auto-default:\
>
> lp720|aps3-stc600p.upp-letter-auto-default|Printer1 stc600p.upp letter auto defa
> ult:\
> :sd=/var/spool/lpd/printer1-stc600p.upp-letter-auto-default:\
>
> lp1440|aps4-stc600ih.upp-letter-auto-default|Printer1 stc600ih.upp letter auto d
> efault:\
> :sd=/var/spool/lpd/printer1-stc600ih.upp-letter-auto-default:\
Did they all use "printer1"? Must be a _very_ old one --
I'd consider that kind of naming a bug.
> each of which used a different .upp file (the 600 works with Epson 640). Now
> when I go into SETUP all I can choose is 1 printer and the printcap entries
> look like this (even though I chose to use a .upp file with uniprint):
Only 1 printer?! There are a couple of upp files for the 640
(I created them, and they were even in use for some time).
Look into the uniprint directory.
BTW: the gimp-print driver ("stp") produces much better
output. Try it!
> lp|Printer1 auto:\
> :lp=/dev/lpt0:\
> :if=/etc/apsfilter/basedir/bin/apsfilter:\
> :sd=/var/spool/lpd/lp:\
> :lf=/var/spool/lpd/lp/log:\
> :af=/var/spool/lpd/lp/acct:\
> :mx#0:\
> :sh:
>
> It was my understanding that previous versions of apsfilter got their
> information from the name of the filter used--which paper type, which .upp file
> to use, etc.
That how it worked up to the 5.x releases.
> It doesn't look like the above printcap entry will be able to
> determine which .upp file to use. How is this accomplished with the new
> version?
Apsfilter gets the printer queue name from the spool dir
entry (in this case "lp"), then looks into the configuration
directory ("/etc/apsfilter/lp/") for a file "apsfilterrc"
which has all the information needed, most prominently
PRINTER, METHOD, PAPERSIZE and RESOLUTION.
> Please point me to some documentation (I've already read the "handbook") which
> might help. How does the current apsfilter mechanisms work?
The internal stuff isn't really covered by the documentation.
Use the source, Luke^H^H^H^HJohn!
HTH
Michael