Hi Stephen,
I'm aware of this situation. Whether it's a problem
that we can fix in the current printing subsystem
is unclear to me.
I spent some time yesterday trying to cause printer
errors (out of paper or offline). I probably
wasn't printing files that are large enough,
because every time that I printed (e.g., printer.c),
lpr (& lpd) finished and the USB printer driver
finished before the printer (Epson 740) had printed
just 2-3 lines. I added some dbg() lines to
printer.c in open(), write(), and close(), and
the driver was well out of the picture in my
small test (but not in yours), so I'll use a bigger
test next time.
In any case, printers have some local buffering (size
varies from one printer to the next), so even with
large files, if the printer runs out of paper on the
last few pages, the printer driver will have finished,
the HCD will have transferred all of the data to the
printer, and the error will be local to the printer,
its LEDs etc., and the user (if one is around).
I'd like to see a solution to this problem and I'll
keep looking into it. I'd also be happy for someone
to fix it before I do. 8;)
~Randy
-----Original Message-----
From: Stephen J. Gowdy [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 16, 2000 11:04 PM
To: [EMAIL PROTECTED]
Subject: [linux-usb] printer out of paper
Hi,
For the first time I had my printer (Epson 740) run out of paper
while printing. I see the following in syslog;
Jun 16 22:56:22 adsl-216-102-214-189 kernel: printer.c: nonzero read/write
bulk
status received: -2
Jun 16 22:56:22 adsl-216-102-214-189 kernel: printer.c: usblp0: timed out
Jun 16 22:56:22 adsl-216-102-214-189 kernel: printer.c: usblp0: error -2
writing
to printer
Jun 16 22:56:24 adsl-216-102-214-189 last message repeated 125 times
The printer thinks it is waiting for data but lpd has finished
sending. Is this a known limitation of printer.c? Is this printer
out-of-spec somehow?
regards,
Stephen.
--
/------------------------------+-=-=-=-=-+-------------------------\
|Stephen J. Gowdy |A4000/040| Mail Stop 50A-2160, LBL, |
|http://www.ph.ed.ac.uk/~gowdy/ | 1GB HD| 1 Cyclotron Rd, Berkeley,|
| |20MB RAM| CA 94720, USA |
|InterNet: [EMAIL PROTECTED] |3.4xCDROM| Tel: +1 510 495 2796 |
\------------------------------+-=-=-=-=-+-------------------------/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]