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