igor denisov <[email protected]> wrote:

> * Predrag Punosevac <[email protected]> [Fri, 21 Aug 2009 14:02:44 
> -0400]:
> > 2009/8/21 igor denisov <[email protected]>:
> > > Hi there,
> > >
> > > I have a problem with Samsung ML-2015
> > >
> > > /etc/printcap
> > >
> > > lp|local printer|ML2015:\
> > >        :lp=/dev/lpt0:\
> > >        :sd=/var/spool/output:\
> > >        :lf=/var/log/lpd-errs:
> > >
> > > rc.conf
> > >
> > > lpd_flags=""
> > >
> > > ps ax | grep lpd
> > > 114 ?? Is 0:00.00 lpd
> > > 25472 S+ 0:00.00 grep lpd
> > >
> > > Run
> > >
> > > #lptest 70 5 | lpr -PML2015
> > >
> > > LCD blincks, printer sounds promising and no any output at all.
> > >
> > > Regards,
> > > Igor.
> > >
> > > --
> > > igor denisov.
> > >
> > > --
> > > Internet Explorer 8 - sqjnphrek| hmrepmer`! http://ie.rambler.ru/
> >
> > I could not find that particular model in Open Printing database but
> > most of those cheep Samsung printers require Splix 2.0 driver since
> > they speak Samsung proprietary language. Splix 2.0 is ported to 
> OpenBSD.
> > Are you sure that your printer speaks PostScript? You printcap looks
> > OK for a PostScript printer.
> >
> > Cheers,
> > Predrag
>
> Well, when I issue
> #gs -h
>
> Available 
> devices:................................,samsunggdi,..........................
>
> sumsunggdi supports ML2010 so looks like should run.
>
> Regards,
> Igor.
>
>
> --
> igor denisov.
>
> --
> Internet Explorer 8 - ?????????? ?????????! http://ie.rambler.ru/

You are contradicting yourself. You showed us a printcap file for 
PostScript capable printer. Now you are telling me that there is 
a GhostScript driver for it. Then your printcap is not correct as
you need a input filter. You have a choice of using foomatic-rip or
writing a small filter yourself. 
It should look something like
more /usr/local/libexec/lpfilter-ps
#!/bin/sh
# Treat LF as CR+LF
printf "\033&k2G" || exit 2
# Print the postscript file
/usr/local/bin/gs -dSAFER -dBATCH -dQUIET -dNOPAUSE -q -sDEVICE=ljet4 \
-sOutputFile=- -sPAPERSIZE=a4 - && exit 0
exit 2

Replace ljet4 with the name of the driver which you believe supports
your printer. 

Printcap should look like

lp|local|HP:\
        :lp=/dev/lpt0:\
        :sd=/var/spool/output:\
        :lf=/var/log/lpd-errs:
        :sh:mx#0:if=/usr/local/libexec/lpfilter-ps:

You just need to edit device node /dev/lpt0 otpion (maybe).

Cheers,
Predrag

P.S. I would check OpenPrinting data base before I really believe that
Samsung printer can be driven by GhostScript. I am not saying it is not
possible. I am just saying that in my experience those cheep one tend
to require Splix.

Reply via email to