home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!umd5!shy.umd.edu!hunt
- From: hunt@shy.umd.edu (Brian Hunt)
- Newsgroups: comp.unix.ultrix
- Subject: printing parity problem
- Message-ID: <hunt.722428088@shy.umd.edu>
- Date: 22 Nov 92 10:28:08 GMT
- Sender: news@umd5.umd.edu
- Lines: 44
-
- I've got a minor but annoying problem with printing from my Decstation
- 5000/240 running Ultrix 4.2A over a serial line (to a Laserjet 3, but
- I don't think that's significant). After I reboot, it seems the
- computer defaults to sending characters to the printer with even
- parity (whereas I need it to be sending 8-bit characters, i.e. no
- parity). I can fix this by setting the RAW tty mode flag in
- /etc/printcap, but that screws up flowcontrol, so then I have to
- change it back. Is there a better way to tell the computer never to
- use parity on the printer's tty?
-
- My /etc/printcap is pretty standard (at least the relevant parts),
- being cribbed from the file of printcaps at gatekeeper.dec.com; here
- it is:
-
- lp|lj|Laserjet:\
- :lp=/dev/tty01:\
- :fc#0177777:\
- :fs#0000303:\
- :xc#0xffff:\
- :xs#0x4800:\
- :br#19200:\
- :mx#0:\
- :pl#66:\
- :pw#80:\
- :lf=/usr/adm/lpd-errs:\
- :sd=/usr/spool/lpd:\
- :sh:\
- :if=/local/lib/lpdfilters/textf:\
- :xf=/usr/lib/lpdfilters/xf:\
- :df=/usr/loc/bin/dvi -p%D:\
- :uv=4.0:
-
- After rebooting, I have to (when I remember) change the field
- ":fs#0000303:" to ":fs#0000343", print a short text file, and then
- change it back. Having done so, the computer mysteriously gets things
- right (i.e. no parity) until the next reboot. I'm about to add
- something to /etc/rc.local to do the above shuffle automatically, but
- I figure there's got to be a solution that doesn't involve multiple
- printcaps...
-
- Any help will be greatly appreciated.
-
- Brian Hunt
- hunt@ipst.umd.edu
-