On Sun, 06 Feb 2000, Ray Olszewski wrote:
> At 08:26 PM 2/5/00 -0700, John Starkey wrote [in part]:
> 
> >> > WinPrinter???
> >>
> >> pbm2ppa isn't a device driver in the sense that it operates the IO
> >> interface for the device.  It simply takes the pbm format data from gs
> >> and rearranges it to a ppa form that we hope the printer will like.
> >
> >Ok. But does it have to be anywhere special to work???
> 
> The script or command line that is calling it needs to be able to find it.
> You are piping to it, right? (Yes, I confirmed that by looking at the script
> example quoted below.) So as long as it is in the exceutables PATH, you are
> OK. If it isn't, specify the full path to it in the command-line call. In
> the script version that one of us (Richard? this thread is getting tangled
> ...) suggested, you probablt need to put the full path to pbm2ppa on the line.

I think the first thing which needs to be done is verifiy that the
printer is on /dev/lp1, as i said before normaly speaking we know
that such a device would be on /dev/lp0, may i suggest the use of 
cat /proc/ioports.
An example of /dev/lp0 =

0378-037f : parport0
0778-077a : parport0

The parport0 first shows 0378 which is correct, the second now i dont
know why it appiers, but my printer is on /dev/lp0.
Of course cat ioports needs to be done after loading of the modules.

Now i forgot to answer things in my last message, one was about how
to start kerneld automaticly, normaly speaking it should be started
at bootime, at least its my understanding that Redhat starts it
automaticly, now if it does not start then use 'linuxconf' to start
it automaticly, thier is no need to put it into rc.local as that is
way to late to start it, it needs to be started at the start of the
boot process.

Another was parport_probe, that module should get loaded as soon as
you issue any command to print, or you do modprobe lp, but it is not
needed for the printer, it will dissapier automaticly as it is not
needed, that could happen before you get chance to do lsmod, or it
could take five minutes, it just depends on where the scheduler is in
its cycle, thats the reason you did not see it.

Now i see what the file pbm2ppa is, i did not know i was so dense ;-)
It would be beter to add the path of pbm2ppa as follows.

#!/bin/sh

pbm="/usr/sbin/pbm2ppa"
cat $1 | gs -sDEVICE=pbmraw -q -dNOPAUSE -r600 -sOutputFile=- | 
$pbm - - > /dev/lp1

Once again do we know the printer is on /dev/lp1 or lp0 ??
And i am presuming pbm2ppa is in /usr/sbin/

Not having pbm2ppa i cant say how it works or say what the options
are, what does look fishy is the -s option OutputFile, is it meant to
be substituted with a real file name, i'm sorry i can help there and
also sorry if i am confusing the issue even more.

> >> cat >/usr/local/bin/printest
> >> #!/bin/sh
> >> cat $1 | gs -sDEVICE=pbmraw -q -dNOPAUSE -r600 -sOutputFile=- | \
> >> pbm2ppa - - > dev/lp1
> 
> >> echo "high their" >/dev/lp1
> >>
> >> I doubt it'll print right, but at least if we don't get "no such
> >> device" we are making progress.
> >
> >Still didn't work but there was no response from the "high their" command.
> >So we've made progress???
> 
> Alas, no. If I recall correctly, part of what makes ppa the true technology
> from hell for Linux users is these junky printers will not accept plain
> ascii -- they ONLY speak ppa -- so an "echo" test won't work. N
> 
> The introduction of ppp was not HP's proudest moment. Read up at the picante
> printer site I'm sure I mentioned in an earlier posting.

Thats true.

> 
> ------------------------------------"Never tell me the odds!"---
> Ray Olszewski                                        -- Han Solo
> Palo Alto, CA                                  [EMAIL PROTECTED]        
> ----------------------------------------------------------------
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to