Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Sep 2005 18:12:38 +0200
From:      Stanley Jobson <stanley.jobson@gmx.ch>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: lpt0 always busy
Message-ID:  <20050925181238.6bfe01fb.stanley.jobson@gmx.ch>
In-Reply-To: <200509252330.05256.doconnor@gsoft.com.au>
References:  <20050924180909.78a29487.stanley.jobson@gmx.ch> <200509251923.53947.doconnor@gsoft.com.au> <20050925153304.4edf87cb.stanley.jobson@gmx.ch> <200509252330.05256.doconnor@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
> > i have a separate box running win98. from this box i am able to use the
> > printer with the orig vendor driver without any problem ...
> 
> Hmm, well it's possible the serial port is broken..

maybe ...

> 
> > > Are you sure nothing else is using the port? (lpd, cups, etc)
> >
> > i think so: lpd is not running and lsof | grep lpt doesnt show anything
> > either : (
> 
> fstat /dev/lpt0
> and
> fstat /dev/lpt0.ctl
> 
> ?

root@tyrael seb $ fstat /dev/lpt0.ctl 
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
root@tyrael seb $ fstat /dev/lpt0
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
root@tyrael seb $ 

> 
> > so i guess there could be a prob with the ready/status checking
> > procedure
> 
> This consists of checking the BUSY pin on the port..
> Parallel ports are (sans ECP/EPP extras) very very simple.
> 
> Have you tried using lptcontrol to put it into simple mode?

root@tyrael seb $ lptcontrol -s -d /dev/lpt0.ctl 
root@tyrael seb $

> What do you see in dmesg?

lpt0: switched to interrupt-driven standard mode

looks that everything is ok - not ?
but open(/dev/lpt0) still complains about "device busy" ...

thx
regards,
stan





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050925181238.6bfe01fb.stanley.jobson>