Andrea Arcangeli (andrea@e-mind.com)
Mon, 3 May 1999 00:15:29 +0200 (CEST)
On Sun, 2 May 1999, Tim Waugh wrote:
>Here is a patch against 2.2.7 that should do I what I meant. What do you
>think?
I can tell you what happens here:
printer down:
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 127, busy, out of paper, on-line
after pressing the poweron button:
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 95, busy, on-line
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 95, busy, on-line
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 95, busy, on-line
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 95, busy, on-line
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 95, busy, on-line
After the printer got initialized:
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 223, on-line
Here it seems that when the printer is down all signal are hardwired to 1
(open connector). When the printer start working it become busy and still
online (PSELECT works fine here).
Now I try to generate an out of paper message simply writing something to
the printer but without putting paper in it. We'll see what will
happens...
root@laser:/home/andrea# echo ciao >/dev/lp0
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 223, on-line
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 223, on-line
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 223, on-line
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 119, busy, out of paper, on-line, error
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 119, busy, out of paper, on-line, error
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 119, busy, out of paper, on-line, error
root@laser:/home/andrea# tunelp /dev/lp0 -s
/dev/lp0 status is 119, busy, out of paper, on-line, error
^^^^^^^^^^^^ ^^^^^
Fine. It seems your patch would work fine here too, and it seems the right
thing to do (I don't have any spec though). I suggest people who is having
troubles with the stock 2.2.x lp driver to apply Tim's patch and feedback
to the list (and to us ;).
Andrea Arcangeli
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2.0b3 on Sun 02 May 1999 - 19:31:26 EDT