lpr to HP laserjet stalls

Michael Ben-Gershon (mybg@netvision.net.il)
Mon, 03 Sep 2001 23:05:29 +0300


Using 'lpr' to print to an HPLaserJet 6P printer often hangs midway.
This may happen both when the printer is used in its 'raw' mode and
as a filter through ghostscript. It is apparent both when printing
locally, and using Samba over the network. My own research seems
to have narrowed the problem down to the kernel. kernel 2.2.x (up to
2.2.19) was fine. I have had the problem with all 2.4.x kernels,
from 2.4.6 to 2.4.9.

I initially thought it was the new lpd supplied with RedHat linux 7.1,
but although I initially thought that reverting to the old lpd had
cured the problem, I now find it happening all the time.

It is intermittent, but very frequent. It is difficult to print more
than about 10 sheets without it happening sometime.

I have serached everywhere but not found any reports of such a problem,
except for one other user who also mailed the RedHat bugzilla list as
follows:

+------- Additional comments from lgt@dmu.ac.uk 2001-08-09 11:59:12 -------
I have exactly this same problem with my HP LaserJet 1100 - random stalls in
multi-page print jobs. The printer stops with the light on that normally
indicates data is left in the buffer that hasn't been printed yet. The print
queue eventually says it's stalled. Pressing the printer button to force out
the
page gives a page of truncated output, then a second page with what looks like
some printer commands on it, starting with "@PJL SET RET=MEDIUM". After
printing
this duff page, the printer is idle but the print queue is still stalled.
Re-starting lpd simply re-prints the same file again, starting from the
beginning, which then fails at some other random point in the file.

I had no trouble whatsoever with RedHat 6.2 or 7.0 and this printer. Now,
however, I can't reliably print anything other than a single page file - and
even that fails sometimes if other files are in the queue.

+--------------------------------------------------------------------------

It seems that his problem is similar, but maybe not exactly the same as mine,
but looks as if is caused by the same fault.

Any ideas?

Michael Ben-Gershon
mybg@netvision.net.il
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/