home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10728 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  3.3 KB

  1. Path: sparky!uunet!crdgw1!rpi!usc!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpcc05!hpbbn!hpuamsa!reink
  2. From: reink@hpuamsa.neth.hp.com (Reinier Kleipool)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: [386BSD] Help needed getting Laserjet II+ to work with 386BSD.
  5. Message-ID: <21250010@hpuamsa.neth.hp.com>
  6. Date: 28 Dec 92 12:40:04 GMT
  7. References: <1992Dec24.001912.1@sunvax.sun.ac.za>
  8. Organization: HP-Sales Office-The Netherlands
  9. Lines: 85
  10.  
  11. / hpuamsa:comp.unix.bsd / abs@sunvax.sun.ac.za / 11:19 pm  Dec 23, 1992 /
  12. >I successfully installed the lp patches, and the port is seen.
  13. >But when I print, the port or printer seem to just hang. The form feed
  14. >light on the laser comes on, but that is all. Nothing else happens.
  15. >lpc reports the status as printing, but thats it. If I cat directly to 
  16. >/dev/lp ( set up as c 14 0) the same happens.
  17. >
  18. >Can anyone please help me ?
  19.  
  20.  
  21. abs@cs.sun.ac.za.
  22. ----------
  23.  
  24. Yes!
  25.  
  26.    Probably the CR definition of the laserjet isn't setup correctly.
  27. I use an input filter script to set all the correct parameters on the ljet.
  28.  
  29. here is my /etc/printcap file:
  30. ------------------------------ /etc/printcap ----------------------------
  31.  
  32. #    @(#)printcap    5.3 (Berkeley) 6/30/90
  33.  
  34. lp|local line printer:\
  35.     :lp=/dev/lpt1:sd=/var/spool/lpd:lf=/var/log/lpd-errs:sh:\
  36.     :if=/usr/local/filters/if_ljet3:\
  37.     :vf=/usr/local/filters/vf_lett3:\
  38.     :df=/usr/local/filters/df_ljet3:
  39. ------------------------------------------------------------------------
  40. And this is my homebrew if= input filter script:
  41. ( be shure you have the execve magic number patch installed, otherwise
  42.   #!/bin/sh will not work!)
  43. -------------------------- /usr/local/filters/if_ljet3 -----------------
  44.  
  45. #!/bin/sh
  46. printf "\033E\033&k2G"
  47. cat -
  48. printf "\033E"
  49. --------------------------------------------------------------------------
  50. And here an filter that attempts to print two pages side by side. (use lpr -d)
  51. ------------------------- /usr/local/filters/df_ljet3 --------------------
  52.  
  53. #!/bin/sh
  54. # Page layout variables
  55. LINES=76
  56. TOPMARGIN=5
  57. LEFTMARGIN=0
  58. VMI=5
  59. GUTTER=7
  60. # internal variables: DO NOT CHANGE
  61. width=`expr 162 + 2 \* $GUTTER`
  62. # Reset the printer
  63. printf "\033E"
  64. # set line termination to cr->cr; lf->cr+lf; ff->cr+ff
  65. printf "\033&k2G"
  66. # select landscape orientation
  67. printf "\033&l1O"
  68. # setup the page: vmi, enable perf skip
  69. printf "\033&l${VMI}c1L"
  70. # Top margin TOPMARGIN lines
  71. printf "\033&l${TOPMARGIN}E"
  72. # Text Length $LINES lines
  73. printf "\033&l${LINES}F"
  74. # left margin of LEFTMARGIN chars
  75. printf "\033&a${LEFTMARGIN}L"
  76. # select 16.6 pitch font
  77. printf "\033(s16.6H"
  78. cat - | sed "/ /d" | pr -2 -n:${GUTTER} -w${width} -e -f -l${LINES}  -v -
  79. printf "\033E"
  80. ---------------------------------------------------------------------------
  81.  
  82. Hope this helps,
  83.  
  84. Reinier Kleipool.
  85.  
  86.  
  87.   /\
  88. -(  )-/##---------------------------------------------------------------------
  89.   }{/   ##    One has to look out  -- Overschie ------------------------------
  90. .====.        for engineers- they  -- Reinier Kleipool  ----------------------
  91. | [] |   begin with sewing machi-  -- Mail -----------------------------------
  92. |    |   nes and  end up with the  -- X400: C=nl A=400net P=hp O=hp S=Kleipool
  93. |    |   atomic bomb.....          -- desk: Reinier Kleipool/ hpitcb/75     --
  94. | [] |              Marcel Pagnol  -- unix: reink@hpuamsa.neth.hp.com       --
  95. ------------------------------------------------------------------------------
  96.