kern/75157: Cannot print to /dev/lpt0 with HP Laserjet 1005 : Device Busy

Ted Mittelstaedt tedm at mittelstaedt.us
Sat Jun 13 22:00:11 UTC 2009


The following reply was made to PR kern/75157; it has been noted by GNATS.

From: Ted Mittelstaedt <tedm at mittelstaedt.us>
To: freebsd-gnats-submit at FreeBSD.org, hernandp at speedy.com.ar
Cc:  
Subject: Re: kern/75157: Cannot print to /dev/lpt0 with HP Laserjet 1005 :
 Device Busy
Date: Sat, 13 Jun 2009 14:13:27 -0700

 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
 
 
 
 
 
 


More information about the freebsd-bugs mailing list