*BSD News Article 54303


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!pravda.aa.msen.com!news1.best.com!sgigate.sgi.com!enews.sgi.com!decwrl!pa.dec.com!nntpd.lkg.dec.com!usenet
From: Jon Jenkins <jenkinsj@ozy.dec.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: PLEASE HELP: DEClasser printing
Date: 2 Nov 1995 21:20:48 GMT
Organization: Digital Equipment Corp
Lines: 40
Message-ID: <47bcng$vjn@nntpd.lkg.dec.com>
References: <475fcl$j5r@vixen.cso.uiuc.edu>
NNTP-Posting-Host: ozyd13-p3.ozy.dec.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; BSD/386 uname failed)
X-URL: news:475fcl$j5r@vixen.cso.uiuc.edu

Hi just recently I spent quite a bit of time in
the kernel lpt.c file so Im quite famailiar with it.
I have a DEClaser3500 and print with no problems.
I also downloaded the "current" version of the
lpt.c file. Both versions work fine although
code is a bit messy. Basically the driver
works in interrupt mode with a 1 second
garbage collection timeout for missed
interrupts. The write function sleeps until
all chars in buffer have been sent then returns.

If you have the kernel source put a #define DEBUG
at the top of the file and get some debug output
after a kernel rebuild.

Usually if the READY light is blinking it means
the printer is receiving data and steady otherwise.

Is this a graphics file or a text file ??

You could also try the lpt driver in polled
mode (lptcontrol -p) to see if that helps. If
it does it might either mean a problem with you
port hw (no interrupts) or a problem with the
version of lpt.c you are using.

Is the lpd ddaemon still running (didn't die
after trying to print) ??

Jon

-- 
----------------------------------------------------------------------
Name:      Dr Jon Jenkins    Location: Digital Equipment Corporation NaC
Voice/Fax: 61-7-55-75-0151/100         Burnett Place, Research Park,  
Inet:      jenkinsj@ozy.dec.com        Bond University, Gold Coast
Close Proximity: "HEY YOU !!!"         QLD, AUSTRALIA 4229
"Daddy, what's outside the Universe?" (My 5 year old.....)
-----------------------------------------------------------------------