On Sun, Feb 06, 2005 at 01:24:08PM -0800, David Lawyer wrote:
> I submitted this bug over a month ago. It was rejected as not being a
> lprng bug. But new information I just obtained indicates that it may be
> in part a lprng bug.
OK, let's have another look at it.
> > Once I type lpr (or pr) to print something, it hangs if I try to print
> > something more (use lpr or pr again). Also cat test-file > /dev/ttyS1
> > will not work either. It just hangs and nothing gets printed. I'm
> > using kernel 2.6.8-1 but the old kernel 2.4.26 prints fine and doesn't
> > have this problem.
That would strongly imply it is still the kernel doing something at
least different, perhaps wrong.
> By using lpc and typing lpq I read: Status: cannot open /dev/ttyS1
> 'Interrupted system call", attempt 1, sleeping 10. So the problem is
> that the serial port can't be opened. But the minicom program can open
> this port and then I can type to the printer from the PC keyboard (like
> an old typewriter). Also, the modemstat program can open ttyS1. So why
> can't lprng open it?
Can minicom and/or modemstat open it after printing once? I'm thinking
lprng is sitting there waiting for something and the "something" is not
happening.
> If I set stty clocal (disable modem control signals) and put stty=clocal
> in /etc/printcap then the problem is fixed. But I didn't have to do
> this previously and didn't discover until just now that this will still
> permit CTS/RTS hardware flow control which I need due to a printer
> buffer size of 256 bytes.
I agree that that particular stty line solves this problem, but brings
about others. Overwriting a printer input buffer can lead to exciting
results, but not the ones you want.
Can you send my what your printcap is? The LPRng Cookbook suggests
this:
lp:lp=/dev/tty00
:stty=raw crtscts 19200
:sd=/var/spool/lpd/%P
Also if it is a postscript printer that sends back status you will need
a :rw clause to tell lprng to be read/write.
See:
http://www.lprng.com/PrintingCookbook/index.html#AEN703
http://www.lprng.com/LPRng-Reference-Multipart/serial.htm
--
Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/ MIEE Debian developer
csmall at : enc.com.au ieee.org debian.org
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]