From bpk@kern.com  Mon May  8 20:53:00 1995
Received: from tortoise.kern.com (tortoise.kern.com [204.212.36.75])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA02429
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 8 May 1995 20:52:36 -0700
Received: (from bpk@localhost) by tortoise.kern.com (8.6.11/8.6.9) id UAA00560; Mon, 8 May 1995 20:34:58 -0700
Message-Id: <199505090334.UAA00560@tortoise.kern.com>
Date: Mon, 8 May 1995 20:34:58 -0700
From: bpk@kern.com
Reply-To: bpk@kern.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Printing extremely slow when printing with a Deskjet 540.
X-Send-Pr-Version: 3.2

>Number:         388
>Category:       kern
>Synopsis:       Printing extremely slow when printing with a Deskjet 540.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May  8 21:00:00 1995
>Closed-Date:    Sun May 14 15:17:59 PDT 1995
>Last-Modified:
>Originator:     Brian Koehmstedt
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
Kern Internet Services -- Bakersfield, CA
bpk@kern.com
>Environment:

	Observed with HP Deskjet 540 printer.  Using printer on LPT1
(/dev/lpt0).

>Description:

	When I dump anything (tried both cat and lpr) to the printer device 
the following things occur:
#1) Printer immediately loads up the paper as it normally would to begin
printing.
#2) Pauses without printing a single character for roughly 3-5 minutes.
#3) Prints a line or two.  Pauses for a long amount of time.  An average
pause seems to be around 10-15 minutes.  I have a feeling it pauses longer
with longer files.  Then prints another line or two.  Continues looping in
this fashion.

	I'm sure this isn't a problem with my printer.  This exact printer
has worked previously under NetBSD, Linux, and DOS.  Seems to me this might
be some kind of buffer problem in the kernel code.  I've tried printing both
raw text and PCL formatted files and both had the same problem described
above.

>How-To-Repeat:

	Using a HP Deskjet 540 printer (or possibly others too):	
cat <favorite file here> > /dev/lpt0

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gpalmer 
State-Changed-When: Sun May 14 15:17:59 PDT 1995 
State-Changed-Why:  
This wasn't a problem with the kernel, rather the port used didn't generate 
interrupts. Switching to polled mode fixed the problems. 
>Unformatted:



