Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 1995 20:53:05 +0100 (MET)
From:      j@uriah.sax.de (J Wunsch)
To:        aledm@relay-europe.ps.net (Aled Morris)
Cc:        hackers@FreeBSD.org
Subject:   Re: lpt
Message-ID:  <199502131953.UAA18869@bonnie.tcd-dresden.de>
In-Reply-To: <Pine.3.89.9502131652.B8328-0100000@relay-europe.ps.net> from "Aled Morris" at Feb 13, 95 04:47:36 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Aled Morris wrote:
| 
| Am I supposed to be able to "echo hello > /dev/lpt0" to test my parallel 
| printer?

of course
| 
| Needless to say, it doesn't work.  It just hangs for a minute and comes
| back "/dev/lpt0: Device busy". 

| lpt0 at 0x3bc-0x3c3 irq 7 on isa
| lpt0: Interrupt-driven port
| lp0: TCP/IP capable interface

Can you try to find out if the open() would hang or the write()?
[Short C program à la ``Hello world''.]  Watch out for possible
console/syslog messages.

Perhaps your cabling is bad, you can try to configure your lpt
port for polled IO, simply omit the ``irq 7'' from the config line.
(just guessing...)

-- 
cheers, J"org                             work:      --- no longer ---
                                          private:   joerg_wunsch@uriah.sax.de

Never trust an operating system you don't have sources for. ;-)



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