home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9104 < prev    next >
Encoding:
Text File  |  1992-08-25  |  3.0 KB  |  64 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!munnari.oz.au!metro!peterw
  3. From: peterw@archsci.arch.su.oz.au (Peter Williams )
  4. Subject: Re: lp1 timeout errors
  5. Message-ID: <1992Aug26.043317.17003@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: freeman.arch.su.oz.au
  8. Organization: Design Computing Unit, The University of Sydney
  9. References: <1992Aug20.232231.22241@athena.mit.edu> <C-AMB.92Aug25101425@solitude.math.utah.edu>
  10. Date: Wed, 26 Aug 1992 04:33:17 GMT
  11. Lines: 51
  12.  
  13. In article <C-AMB.92Aug25101425@solitude.math.utah.edu>, c-amb@math.utah.edu (Mark B. Alston) writes:
  14. |> In article <1992Aug20.232231.22241@athena.mit.edu> tree@midget.towson.edu (Denise Tree) writes:
  15. |> 
  16. |>    Mark B. Alston (c-amb@math.utah.edu) writes:
  17. |> 
  18. |>    | I am having quite a problem printing out files from Linux.
  19. |> 
  20. |>    I had this problem not too long ago when I compiled Ghostscript and started 
  21. |>    sending ps files to /dev/lp1. The large files would g for a while and then 
  22. |>    jam with "cat: write error". The solution, provided by dave Einstein, is
  23. |>    simple:
  24. |> 
  25. |>       in lp.h change the line "#define LP_TIMEOUT 200000" [[B[[Ato a value x100
  26. |>       or more. I tried 20000000 and it worked fine but then I got another
  27. |>       error today. I will double it on my next kernel compile I guess.
  28. |> 
  29. |> 
  30. |> 
  31. |>     Thanks to everyone for there help but the problem remains. I
  32. |> tried this and thought that everything was working but...  I have been
  33. |> recieving the errors again.  I am not convinced that it is an actual
  34. |> timeout error as the printer beeps three times then, quite some time
  35. |> later, the lp timeout (or cat: Write error) occurs.  The delay between
  36. |> printer shutdown and timeout error has me believing that something
  37. |> else is causing the errors.  Perhaps there are some hidden command
  38. |> characters that are messing up my printer.  However, these are
  39. |> straight text files that cat has no problem displaying on my console.
  40. |> Any Ideas??
  41. |> 
  42. |> Thanks
  43. |> 
  44. |> --
  45. |> --------------------------------------------------------
  46. |>   Mark Alston
  47.  
  48. I think that the proper cure for this problem is to get rid of the timeout code
  49. altogether (that's what I do). If your printer runs out of paper in the middle
  50. of a print with the timeout as is you only have the duration of the timeout in
  51. which to replenish the paper or the print gets aborted and you have to start
  52. again. This is a real pain with documents that have more pages than your
  53. hopper size.
  54.  
  55. It is my intention (when I get time and I understand device drivers) to propose
  56. a permanent solution to this problem. Possible enhancements involve examining the
  57. returned signals for information such as "out of paper" that most printers send
  58. as well as just the "printer busy" code.
  59.  
  60. ----------------------------------------------------------------------
  61. Peter Williams                |e-mail: peterw@archsci.arch.su.oz.au
  62. Key Centre for Design Quality |phone: +61-2-692 2053 or +61-2-660 6156
  63. University of Sydney          |+++++++++++++++++++++++++++++++++++++++
  64.