home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / ultrix / 8477 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.7 KB

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