*BSD News Article 2994


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!sgiblab!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!laphroaig!cflatter
From: cflatter@nrao.edu (Chris Flatters)
Subject: Re: 386BSD 0.1 lpt.c - anyone got it to wor
Message-ID: <1992Aug3.163647.9629@nrao.edu>
Sender: news@nrao.edu
Reply-To: cflatter@nrao.edu
Organization: NRAO
References: <1992Jul31.234538.19681@cs.tu-berlin.de>
Date: Mon, 3 Aug 1992 16:36:47 GMT
Lines: 18


Well, I've found the major problem (I think): lptinit assumes that
unused bits in the control register stay high after being set.  On some
machines they get reset low.  These tests on the control register
should probably be removed (that is:  everything in the major if block
apart from return(1);.  I think that it is adequate to check that
status port is read-only.

Having done this, I found that I had to increase LPINITDLY to 5 seconds rather
than 4 (I have an oldish, cheap printer).

I now have a printer that works but is somewhat slow.  It takes about 15s to
accumulate data for one line of text.  I don't know if this is a problem with
the driver, with interrupt generation in the system unit or with the printer.

	Chris Flatters
	cflatter@nrao.edu
	cflatter@nrao.edu