More FreeBSD 6.1: open(/dev/lpt0, O_WRONLY) hangs up

2006-07-19 Thread george+freebsd
More information about my /dev/lpt0 problem:

1. Enabling or disabling ACPI has no effect.
2. If I boot up in single user mode, I can cat a file to /dev/lpt0
and it prints on the printer.
3. Once I go to mutliuser mode, open("/dev/lpt0",O_WRONLY) hangs
forever whether I start lpd or not.
4. If I "shutdown now" to get back to single user mode and then
"cat datafile >/dev/lpt0", it hangs until I type control-C, at which
point the shell says: "cannot create /dev/lpt0: Interrupted system call"
(which really means, looking at the code in /usr/src/bin/sh/redir.c,
"cannot OPEN /dev/lpt0").

Help!  -- George Mitchell

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


P.S. FreeBSD 6.1: open(/dev/lpt0, O_WRONLY) hangs up

2006-07-19 Thread george+freebsd
P.S. Here's what dmesg has to say about my parallel port:

ppc0:  port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on 
acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0:  on ppc0
ppbus0: IEEE1284 device found /NIBBLE/ECP
Probing for PnP devices on ppbus0:
ppbus0:  PJL,PCLXL,PCL,EPSONFX,IBMPPR
plip0:  on ppbus0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
ppi0:  on ppbus0


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD 6.1: open(/dev/lpt0, O_WRONLY) hangs up

2006-07-19 Thread george+freebsd
Print jobs get into my print queu, but they don't get out.  So I started
debugging lpd.  After a lot of screwing around, I discovered that the
program was hanging up on line 1875 of printjob.c:

pfd = open(pp->lp, pp->rw ? O_RDWR : O_WRONLY);

pp->lp is "/dev/lpt0"
pp->rw is 0

So then I returned to my shell prompt and typed in:

cat /dev/null >/dev/lpt0

and that hung up uninterruptibly.  What's going on?

FreeBSD 6.1-RELEASE, unmodified generic kernel.  All this worked normally
under 5.3, though that needed 'hw.intr_storm_threshold="2000"'.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"