Summary: | Cannot print to /dev/lpt0 with HP Laserjet 1005 : Device Busy | ||
---|---|---|---|
Product: | Base System | Reporter: | Hernán Di Pietro <hernandp> |
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Open --- | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | Unspecified | ||
Hardware: | Any | ||
OS: | Any |
Description
Hernán Di Pietro
2004-12-16 16:40:17 UTC
This problem also exists on my Emachines Celeron 600 running FreeBSD 6.4 using the escputil program with an Epson printer. I have the parallel port set to NIBBLE mode that may be part of the problem. However, the Epson has to use NIBBLE mode to talk to the computer. Here's a snippet of the dmesg: ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7 drq 3 flags 0x1 on acpi0 ppc0: Generic chipset (NIBBLE-only) in NIBBLE mode ppbus0: <Parallel port bus> on ppc0 ppbus0: IEEE1284 device found /NIBBLE Probing for PnP devices on ppbus0: ppbus0: <EPSON Stylus C84> PRINTER ESCPL2,BDC,D4 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 cat /boot/loader.conf hint.ppc.0.flags="0x1" nat-rtr# To demonstrate the problem cd /usr/ports/print/gimp-gutenprint make install cd work/gutenprint-5.1.7/src/escputil make install ./escputil -i -u -r /dev/lpt0 Escputil version 5.1.7, Copyright (C) 2000-2006 Robert Krawitz Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l' This is free software, and you are welcome to redistribute it under certain conditions; type 'escputil -l' for details. Cannot open /dev/lpt0 read/write: Device busy lptcontrol -p -d /dev/lpt0.ctl ./escputil -i -u -r /dev/lpt0 Escputil version 5.1.7, Copyright (C) 2000-2006 Robert Krawitz Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l' This is free software, and you are welcome to redistribute it under certain conditions; type 'escputil -l' for details. Ink color Percent remaining Black 17 Cyan 29 Magenta 26 Yellow 31 Setting lpt0 back to interrupt driven mode then makes the escputil program get the device busy error message again One more note - /usr/sbin/lpd works perfectly with the port set to interrupt mode. It is only the escputil program that gets the Device Busy error message if the port is in interrupt mode. For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped |