Re: Printing to off-line printer in 2.4.0-prerelease

Tim Waugh (tim@cyberelk.demon.co.uk)
Thu, 4 Jan 2001 09:27:51 +0000


--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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.
*/

--6TrnltStXW4iwmi0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6VEIXONXnILZ4yVIRAjO7AKChug3lPUy3hDkf5jkKSfrndBlf9ACgh0JG
L/WPcTTe4ZgVFOkC+1QbRTg=
=z2rp
-----END PGP SIGNATURE-----

--6TrnltStXW4iwmi0--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/