On Thu, Jan 04, 2001 at 01:08:01AM +0100, Peter Osterlund wrote:
> The tunelp man-page seems to think there are printers that need the
> LP_CAREFUL handling. I also noted that if I disconnect my printer from
> the computer, the data will no longer be lost. Apparently the printer
> confuses the parallel port when it is powered off.
I'm afraid that with some (most) printers there's just nothing that
can be done about this, to my knowledge.
> @@ -188,10 +188,7 @@
>  	int error = 0;
>  	unsigned int last = lp_table[minor].last_error;
>  	unsigned char status = r_str(minor);
> -	if ((status & LP_PERRORP) && !(LP_F(minor) & LP_CAREFUL))
> -		/* No error. */
> -		last = 0;
> -	else if ((status & LP_POUTPA)) {
> +	if ((status & LP_POUTPA)) {
>  		if (last != LP_POUTPA) {
>  			last = LP_POUTPA;
>  			printk(KERN_INFO "lp%d out of paper\n", minor);
Believe it or not, there are some printers out there that wave
LP_POUTPA all over the place even when they're happy: they set
LP_PERRORP to mean 'happy', which is what the check is for.
So this part of the patch would break that. :-(
Tim.
*/
--  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 2b29 : Thu Jan 04 2001 - 04:35:05 EST