Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 1997 16:42:19 -0800 (PST)
From:      Howard Lew <hlew@sequence.Stanford.EDU>
To:        Lars Fredriksen <fredriks@Mcs.Net>
Cc:        questions@freebsd.org
Subject:   RE: weird lpd problem
Message-ID:  <Pine.SUN.3.91.970125164049.26273A-100000@vegemite.Stanford.EDU>
In-Reply-To: <199701241943.NAA02473@Mercury.mcs.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Jan 1997, Lars Fredriksen wrote:

> 
> Howard Lew writes:
> > 
> > System is using the 2.1.5R kernel
> > 
> > 1) lpq always says "waiting for laser to become ready (offline ?)"  
> > 
> > 2) Even if I kill lpd and do a "cat file > /dev/lpt0" I get:  
> > "/dev/lpt0: Device busy." when the laser is idle.
> > 
> > 3) Just to be sure it is a not a cable problem, I can bootup in Win95 and
> > print without any problems in DOS or Windows 95.
> > 
> > 4) I have tried playing around with the SPP/ECP/EPP settings and even
> > changing the parallel port addresses and irqs, but none of the changes help.
> >     
> > 5) I have tried setting the lpt flag to 0xff from 0x0 and it does not
> > help.  Does anyone know what the flag settings mean?
> > 
> > I can not get the "lptest > /dev/lpt0" to work without the same     
> > "/dev/lpt0:  Device busy." message.  I wonder why it keeps saying that 
> > /dev/lpt0 is busy when no device is using it.
> > 
> > Does anyone have any ideas?  This is truly the weirdest problem I have
> > ever faced because the darn printer will print if I bootup in Win95.
> > 
> > Thanks in advance for any help, suggestions, or any input at all.
> > 
> > 
> > 
> > ----
> > Here's the /etc/printcap:
> > 
> > #       @(#)printcap    5.3 (Berkeley) 6/30/90
> >     
> > laser|epson|lp|Epson Laser Printer:\
> >     :sh:\
> >     :lp=/dev/lpt0:\
> >     :sd=/var/spool/lpd:\
> >     :if=/usr/local/libexec/hpif:\
> >     :lf=/var/spool/lpd/logfile:\
> >     :af=/var/spool/lpd/acct:\
> >     :mx#0:sf:
> > 
> 
> What does your dmesg output say about the printer port? Make sure the
> device node /dev/lpt0 isn't pointing to something else. What is in 
> /var/log/lpd-errs? Try using lptcontrol -p to choose polled mode.
> Is another device strapped to irq 7?
> 
> -- 
> --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
> 
> 
> 
> Hi,
> I am seeing the same problem. On mine it appears that the -select signal
> is not comming back from the printer. This printer worked fine with
> the old parallel port so I suspect there is some interaction between
> the parallel port on the new MB and FreeBSD. Dos does not have  problem
> with the port.
> 
> Dmesg says that it found the port at 0x378 using irq 5 and it was 
> assigned to lpt0.
> 
> As the original poster, I have tried virutally any combinations that
> the bios setup will allow me and to no avail. As far as I can tell there
> are no conflicts with ports nor with irqs. I have only one thing left
> to try and that is to disable any devices probed after the lpt0 to see
> if something there stepps on it(like writing a one for the enhanced 
> parallel port control bit).
> 
> Did anyone resolve the original probelm?

Yes, the original problem has been resolved.  In short, it appears to be 
related to certain motherboards.  Try polling instead of using the irq.  
That solves the problem.


> 
> Thanks a lot.
> 
> Lars
> -------------------------------------------------------------------
> Lars Fredriksen		fredriks@mcs.com		(home)
> 			lars@fredriks.pr.mcs.net	(home-home)
> 


----

|| Shoppers Network              BEST PRICES, FULLY x86 COMPATIBLE & FAST!!!
|| PO BOX 16627                  Cyrix 686s now available!
|| San Francisco, CA  94116      Email - info@shoppersnet.com
| ------------------------------> WWW - http://www2.shoppersnet.com
 -------------------------------> WWW - http://www.shoppersnet.com/shopping





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.970125164049.26273A-100000>