home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10583 < prev    next >
Encoding:
Text File  |  1992-12-23  |  12.8 KB  |  288 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!psinntp!dg-rtp!ponds.uucp!rivers
  3. From: rivers@ponds.uucp (Thomas David Rivers)
  4. Subject: Re: New kernel on rachel.ibmpcug.co.uk
  5. References: <Bzo9qv.7Gs@ibmpcug.co.uk> <BzoI6z.8uJ@ibmpcug.co.uk>
  6. Message-ID: <1992Dec23.034326.1570@ponds.uucp>
  7. Date: Wed, 23 Dec 1992 03:43:26 GMT
  8. Lines: 278
  9.  
  10.  
  11. Well, enough requests, etc... have been posted recently to warrant
  12. (at least in my opinion) a repost of this driver.
  13.  
  14. I have been successfully using it for some time now with my
  15. HP Laserjet clone (an Epson Action Laser II).  I've had no lost
  16. char's etc... - it works well with graphics (ghostscript output
  17. and HP stuff from Windows) and text.
  18.  
  19. Also, it doesn't seem to put any unreasonable load on my system.
  20.  
  21. I don't know anything about the internals, except that installation
  22. wasn't straightforward (you have to muck around in config.c yourself.)
  23. If you have any questions, I suggest contacting the original author(s)
  24. (see below.)
  25.  
  26. Finally, we need to provide a *fixed* major # for the printer - I'm
  27. getting tired of moving it around for every new driver that comes up...
  28.  
  29. Currently mine is set to 16.
  30.  
  31.     - Dave Rivers -
  32.     (rivers@ponds.uucp)
  33.  
  34. ------------- cut here ----------------------------
  35.  
  36. >From: wolf@dentaro.GUN.de (Wolfgang Stanglmeier)
  37. Newsgroups: comp.unix.bsd
  38. Subject: replacement for lpt.c without interrupts
  39. Date: 6 Sep 92 14:37:03 GMT
  40. Organization: Colognists, Germany
  41.  
  42. I hacked the 386bsd LPT-driver to work without interrupts.
  43. The busy loop timeout value adapts automatically to
  44. the printer and system speed.
  45.  
  46. It should be a full replacement for the standard driver.
  47.  
  48. This driver keeps my printer busy without slowing down the system.
  49. [I remember the 90% system time when printing hppcl graphic files
  50.  with the ix/386 lpt-driver WITH interrupts]
  51.  
  52. The driver supports up to 4 printers.
  53. The minor number is interpreted as follows:
  54.  
  55.     D D P E - - # #
  56.  
  57. DD:    Debug,    00: no
  58.         01: statistical data when closing device
  59.         10: statistical data for every write call
  60.         11: lots of silly data
  61.  
  62. P:    Prime on open.
  63.  
  64. E:    Errormessage.
  65.         Logs "no paper", "offline", "printer error" conditions
  66.         to the console.
  67.  
  68. ##:    Device,    0: lpt0
  69.         1: lpt1
  70.         2: lpt2        (on display adapter)
  71.  
  72. This driver uses the ideas of Piercarlo Grandis polling printer driver.
  73.  
  74. ----------------------------------------------------------------------
  75.  
  76. >From: ajv@xhost92.csd.mot.com
  77. Newsgroups: comp.unix.bsd
  78. Subject: Re: replacement for lpt.c without interrupts
  79. Date: 9 Sep 92 06:00:18 GMT
  80.  
  81. wolf@dentaro.GUN.de (Wolfgang Stanglmeier) writes:
  82.  
  83. >I hacked the 386bsd LPT-driver to work without interrupts.
  84. >The busy loop timeout value adapts automatically to
  85. >the printer and system speed.
  86.  
  87. <excellent driver follows...>
  88.  
  89. I was working on something very much along the same lines.  However,
  90. Mr. Stanglmeier hit the nail right on the head first.  I have rolled
  91. in some of my other work on handling syscall restarts, and in the
  92. process applied my BSD-kernel style of indentation.  What follows is
  93. substantially the same driver, with my own minor improvements.
  94.  
  95. Kudos, Mr. Stanglmeier!  My printer thanks you. :-)
  96.  
  97.                     Andy Valencia
  98.                     ajv@csd.mot.com (for now)
  99.                     jtk@netcom.com (if it bounces)
  100.  
  101. -----------------------------------------------------------------------
  102.  
  103. begin 644 lpt.c.Z
  104. M'YV0+U0H *$"Q) W</+(27,T0*,:D !$C1PX8(*ZD8<,F39@V((RX *'D
  105. M34<Z>EB H%*&39DF=>:4&5@P"$<0"QO2F8.SC$PY=LJ0<4&3)@@I0M/,H;-0
  106. M3!TZ:=ZX 1'D0,<N 2#-USILZ<L9HK7I5#-<P<O* ,/-&3ILY*N^DH8,&
  107. M1%L0<NE^I6.TS1LR:<RD&1,&JE25:+7"*>-V+AVA(.#(>6,G#1G(= N#H*N5
  108. M+<<W<MV< 3%&*F##;N8830RB31DZ.HS&&(D4\-*F3Z.FMFL&A%>P8DG_U=HF
  109. MYD,YK\-PW8QFK!C*6DLGS.G0*(CK;MY %:N2KE(0'9?R%FYUKFZ>9)EW-LD&
  110. M--?1ML>P4>Y:#E&"(&303GH[C5/4/"UGEAMHJ<666ZT9UY-D?]41'&=4/1>4
  111. M<-,Q5!U^UX&0W79E=(?&=^$]]$9OI94'(%56J;<6>^Z)!D)\\Z51WU93<6;=
  112. M=62\,48=KKE!1V&ZH4C&"W=IUYP<K17&F$=L\,1@99==E5==$-K&E'^Y275?
  113. M03.,9!,;5)$1E!Q0S?%>DH\M%$:3K97AHVYGFE%&86#Y9!>268WG'4]>F4''
  114. M'8G=F*!XML$QGUH0>M9>:*.%,<8:V=WA$AEGE-$C;#=2\2&?(_[)VG=A"-<&
  115. M'%*Y*6)O(LR @PU"3$&$""^6$51[BY6EUHT:<>012"*19-)<*:W4TDM9;0D"
  116. M#2,Y4<9<1ZI(H&MZ-A?KK @QIN%=$#ZK5:JKMOJJH&V$H9886F5U%1UO@.!F
  117. MCG+(=&=DD_GU&+P-CK%3K L%=949\3+W79^>(B?HE'OYMM@8@0T&;U1(WK$0
  118. M'8]-M5AC<YBI95'X48%$$E. ,,431E!Q11!2% $"QR $8= 334#QA!-%.$$%
  119. M"""#H"JKKH) 1!%6%,'$$U 4000(0F2141),,)%$$$V$-)(23RA-A18@&!6$
  120. M$T.CG(3,,>\\M!%/2'%4$5,40?(02*2,-0A"5S%$$%0D\7(03(  1152N%QV
  121. MQR\SD<5(&J-LU,<ACURRQT@\40430SOQQ,Q"F#S$RU,DL7/)0U/Q!-$FJSQY
  122. M$TT4(<402]<-A11/$.$V%2,9I;')._?\<]!BXWT$V2LA 3<(590M1<=7)#YV
  123. M%%4D<;CG+(<^>NEVHZ[Z$#,;Y?C,302QA,F]FUQSX,"'O<261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?^=X P(P52<%R.=WVK!P7S5SU38$N7QX#\!P(+2($ 
  157. M& 0"R('_IS@STX'SEX BR("O!X&I%WG3\P4EDV%9@ )UYWQ<(08HT&HMX .M
  158. M]@6G1@<IX 4'6'^B0P4I8 (':(%+('YAMQ,N40:5]F-M,1=J\7X2*'F55X#=
  159. M!P5:(#I/L (X,!'^!P5O0P5H(WY !AYGQB#D0H,J\7.%\2-C@ 8TN ,*<!L.
  160. M\A#7\7(T5V-(\G-DX(<@T ,@L <_QX8=HH8_ C&.@@8J(0(_)P)]8(=$=R/2
  161. MH183YQ?21@:%$2I EB[YIHE:(6]R(@<T 74MF"$;9025TX4%2'LR0 ,M]F(J
  162. M4!!QIAP0(R,^H0!62'S7$3>A0X*7AP9ZH (Q8 .<ITZZ6#!W\"&EMG>+IQ6]
  163. M&'\_0T9PAP+$6!!>9WO*Z!I+ 84\T8P;H15[!W?!%X&^"$=!@ 4(" 5;<QTR
  164. M4 ,UH(5A%RYX !YO@!#" 69!=F-.L6IX@8N %W;7L6L=<14'X2.3P09F<2\W
  165. MAH@@X (2R8L"48L9HBE:L2C6,H\-678D(A5,81*D0B:^@09?P09E,1,6>1W(
  166. MD7YA( :EEAX.,Q<OZ1(L0)%5LY(1*9$C\1];T1MMH!:7,0=KH :O079"=@?6
  167. MDB-WX 8J,1>1]@9B0"[M@I/7X170TA'%!A>6!B$C^1!R<1,;DF31(16"<09U
  168. M,A16Z3'ID@1)0I3J 1)[P8NH"'^1)WE#\ 5*&'?3%P;BAX?VHH@^V"EC4(@*
  169. MD !SB!8)H (]. 9PL ,)D !AMR-R@!P^\B*=&&H+XR.+R6() &0)T)A?X2.0
  170. M&79*]A@\$0=U4 :K>17+T8,W6 =FT)F'.0<F22:A.08TUXFE61"@%V2<^"-"
  171. MAINT&9JW20>YZ8.+V)N;&60E$I(^-F21B7;&*9V-R11LP)R_:2T_&!/#B9S%
  172. M60=?D)ARD)QF,'C,>9YAT'00L7?I871R0"!LD +A.9ZC5IX]"&9SP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
  221. MYFI@DLIG7=&>?9GTW==;'AFIS=RM9MA.JWN_SLFPW\NB'"[+,=XN:^+.A^"?
  222. M38B3Y0323,W6C!51L8-T_P7(829DL.*GS^($62D/47@@,7$MH-N.PG8?3OJ5
  223. MQNH5S<Q13?=^$11+KYO,K!*\[R--'!6&G?HJS_H2$=6OG^>"C>UX+@</V^=:
  224. 0+Z8CL"Z9&G8J^FWA!O H !*\
  225.  
  226. end
  227.  
  228. -- 
  229. +------------------------+---------------------------+
  230. | Gary Ward              |  Amdahl Corporation       |
  231. | gpw10@cd.amdahl.com    |  1250 East Arques Avenue  |
  232. | Phone : (408)746-8865  |  P.O. Box 3470 M/S 142    |
  233. |                        |  Sunnyvale, CA 94088-3470 | 
  234. +------------------------+---------------------------+
  235.  
  236.  
  237. >From mozart.unx.sas.com!sas!concert!gatech!darwin.sura.net!Sirius.dfn.de!news.uni-stuttgart.de!news.uni-stuttgart.de!nils Wed Oct  7 09:39:25 EDT 1992
  238. Article: 6775 of comp.unix.bsd
  239. Newsgroups: comp.unix.bsd
  240. Path: mozart.unx.sas.com!sas!concert!gatech!darwin.sura.net!Sirius.dfn.de!news.uni-stuttgart.de!news.uni-stuttgart.de!nils
  241. >From: nils@merlin.ims.uni-stuttgart.de (Cornelis van der Laan)
  242. Subject: Re: How to get parallel printer to work ?
  243. In-Reply-To: gpw10@phoenixcd.amdahl.com's message of 1 Oct 92 18:08:12 GMT
  244. Message-ID: <NILS.92Oct3183527@merlin.ims.uni-stuttgart.de>
  245. Lines: 32
  246. Sender: news@news.uni-stuttgart.de (USENET News System)
  247. Reply-To: nils@ims.uni-stuttgart.de
  248. Organization: IMS, University of Stuttgart, Germany
  249. References: <BvEp92.91@news.cso.uiuc.edu> <66YV02cj24MG01@JUTS.ccc.amdahl.com>
  250. Date: Sat, 3 Oct 1992 17:27:02 GMT
  251. Lines: 32
  252.  
  253. >>>>> On 1 Oct 92 18:08:12 GMT, gpw10@phoenixcd.amdahl.com (Gary Ward) said:
  254.  
  255. Gary> I also have a HP DeskJet 500.  This printer expects <CR><LF> at the
  256. Gary> end of each line.  I provided a simple output filter to add the needed
  257. Gary> <CR> characters and it would then print text fine.  Unfortunately
  258. Gary> doing this screws up graphics printing.  I therefore invented another
  259. Gary> logical printer which does not filter and dump all my graphics to it.
  260.  
  261. There's no problem if you set the Deskjet into the mode where it
  262. automagically expands <LF> to <LF><CR>. Do this with the following
  263. printcap:
  264.  
  265. #
  266. # Setup for HP Deskjet 500:
  267. #
  268. # tr= Eject page at end of all jobs
  269. # mx= Maximum size of job (0 = no limit)
  270. # sh= no header page
  271. # fo= send 'form-feed' when opening device
  272. # ff= the 'form feed': Reset printer, CR=>CR, LF=CR+LF, FF=CR+FF
  273. # tr= (eject page at end of printing ?)
  274. #
  275. jet|rjet|lp|"Deskjet 500":\
  276.     :lp=/dev/lp1:\
  277.     :sd=/usr/spool/lpd/jet:lf=/usr/adm/lpd.errs:af=/usr/adm/lpr-prints:\
  278.     :mx#0:tr=\033&l0H:fo:ff=\033E\033&k2G:sh:
  279.  
  280. As graphics data contain a reset sequence you can just print all your 
  281. files without fiddling with strange in/outfilters.
  282.  
  283. --Nils.
  284.  
  285.  
  286.  
  287.  
  288.