serial problem, the sequel [Macintosh serial printing]
hi
I try to set up the serial printer port on a Macintosh 630.
# cat text.txt > /dev/ttyS1 makes the printer to load a page and print
some garbage on the beginning of the very fist line. like
ll1rplpllcr02lnplp`1210
some of them are white on a black background.
the result of
$ lpr postcsriptfile.ps
is looking quite close, but the printer spoils several sheets one after
the other.
As the symptoms are the same with both commands, I suspect the serial
settings.
I set a
# stty 57600 raw -echo crtscts < /dev/ttyS1
before any attemp of printing, as I was advised.
then # stty -a < /dev/ttyS1 gives
speed 57600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>;
start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O;
min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl
-ixon -ixoff -iuclc
-ixany -imaxbel
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
-isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt echoctl
echoke
As this may be fine (and I wrong), here is an other clue, my printcap
file, generated by magicfilter for a hp520:
# This file was generated by /usr/sbin/magicfilterconfig.
#
lp|lp|HP520:\
:lp=/dev/ttyS1:sd=/var/spool/lpd/lp:bf=2400:fc=0:fs=1:\
:sh:pw#80:pl#72:px#1440:mx#0:\
:if=/etc/magicfilter/dj500-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs
Reply to: