Skip site navigation (1)Skip section navigation (2)
Date:      19 Mar 1999 19:19:55 -0600
From:      Dave Marquardt <marquard@zilker.net>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/10678: Printing problems using ppc bus
Message-ID:  <85n219vtxg.fsf@localhost.zilker.net>
In-Reply-To: John Brann's message of "Fri, 19 Mar 1999 18:00:41 -0500 (EST)"
References:  <199903192300.SAA02007@freebie.brann.org>

next in thread | previous in thread | raw e-mail | index | archive | help
John Brann <john@brann.org> writes:
> >Number:         10678
> >Category:       kern
> >Synopsis:       Printing problems using ppc bus
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       medium
> >Responsible:    freebsd-bugs
> >State:          open
> >Quarter:        
> >Keywords:       
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Fri Mar 19 15:10:01 PST 1999
> >Closed-Date:
> >Last-Modified:
> >Originator:     John Brann
> >Release:        FreeBSD 3.1-RELEASE i386
> >Organization:
> None
> >Environment:
> 
> 	Hardware is Toshiba Equium (Intel 440FX, 2xPPro 200).
> 	Printer is HP LaserJet 5L on lpt0 (on-board port).
> 
> 	Custom SMP kernel
> 
> 	Parallel port section of kernel config:
> 
> # ppc   ISA-bus parallel port interfaces.
> # 
> device          ppc0    at isa? port? net irq 7
> controller      ppbus0
> controller      vpo0    at ppbus?      
> device          nlpt0   at ppbus?      
> device          plip0   at ppbus?      
> 
> 
> 	section of dmesg output:
> 
> 	ppc0 at 0x378 irq 7 on isa
> 	ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
> 	ppb0: IEEE1284 device found /NIBBLE
> 	Probing for PnP devices on ppbus0:
> 	ppbus0: <Hewlett-Packard HP LaserJet 5L/0101.03> HP ENHANCED PCL5,PJL
> 	nlpt0: <generic printer> on ppbus 0
> 	nlpt0: Interrupt-driven port
> 	plip0: <PLIP network interface> on ppbus 0
> 
> 
> >Description:
> 
> 	Using the ppc controller and nlpt0, I was unable to produce
> 	useful graphic printed output.  All suitable drivers at all
> 	print densities produced memory overruns in the printer.
> 	(partial graphic output folloed by lines of garbage characters).
> 
> >How-To-Repeat:
> 
> 	Using apsfilter port, set up Laserjet printer using any of 
> 	'laserjet', 'ljet4', 'ljet4dith' drivers.  
> 
> 	Specify any print density (most default to 600dpi, problem is 
> 	observed at 150dpi and up).  
> 
> 	Print test page through apsfilter setup, observe bad output.
> 
> >Fix:
> 	
> 	Removing ppc0 and associated entries and restoring (deprecated)
> 	lpt0 solved the problem.  printing successful at 600dpi.

I found that changing

	   device          ppc0    at isa? port? net irq 7

to

	   device          ppc0    at isa? port? net

did the trick for me, i.e. make PPC do polling (I guess).  I just read
the ppc(4) man page (after the fact), and maybe doing something like

	   device          ppc0    at isa? port? net irq 7 flags 0x20

might also do the trick.  The ppc(4) man page is completely unhelpful
w.r.t. forcing parallel ports into polling mode.

-Dave




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?85n219vtxg.fsf>