LPT Printer: device busy



Hello!
I am having quite weird problem with the LPT port on my FreeBSD 5.4 box. Mainboard is some i815 based. There is HP LaserJet IIIP printer connected to it. I am sure the printer and cable is 100% ok, checked on 2 comps. And even on the same box it works correctly while booted from M$DO$ bootdisk. In DOS dir > lpt1 prints some output ( not really correct cause I think it is postscript printer ), but it works. While In freeBSD it gives me same error all the time.
I don';t have any idea what can be wrong. I will try to give you as much data as I can. I also tried different modes in setup (SPP,ECP,EPP,ECP+EPP). If anybody have any idea please reply.

Regards, Tomasz Kraus


% echo "TEST" > /dev/lpt0
/dev/lpt0: Device busy.

% lptest -a > /dev/lpt0
/dev/lpt0: Device busy.

I even tried:
% lptcontrol -p -d /dev/lpt0.ctl

and after that:

% echo "TEST" > /dev/lpt0
/dev/lpt0: Device busy.

% lptest -a > /dev/lpt0
/dev/lpt0: Device busy.

part of kernel config(I tried to enable this puc device but with no luck):

# Parallel port
device ppc
device ppbus # Parallel port bus (required)
device lpt # Printer
device plip # TCP/IP over parallel
device ppi # Parallel port interface device
#device vpo # Requires scbus and da

# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to the sio and/or ppc drivers):
#device puc


The same errors. I am not using any print daemons yet. I am just trying to write directly to the printer. I am out of ideas now. What the heck does it mean "DEVICE BUSY"? It can't be busy cause noone is printing, I think it means that BSD can't communicate with port/printer.

dmesg -a:
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.4-RELEASE-p11 #3: Fri Feb 24 17:07:54 CET 2006
root@xxxxxxxxxxxxxxxxxx:/usr/src/sys/i386/compile/GANDALF
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Celeron (994.46-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x68a Stepping = 10
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory = 268369920 (255 MB)
avail memory = 257163264 (245 MB)
(...)
ppc0: <ECP parallel printer port> port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
(...)
.



Relevant Pages

  • partition/cd recognition problem hal GNOME 2.16 FreeBSD RELEASE 6.2
    ... FreeBSD elbereth.gateway.2wire.net 6.2-RELEASE FreeBSD ... 0xf0000000-0xf7ffffff,0xffa80000-0xffafffff irq 16 at ... fdc0: port ... perm devstat 0444 ...
    (freebsd-questions)
  • usb devices dont "wake up"
    ... Copyright 1992-2008 The FreeBSD Project. ... <ACPI PCI bus> on pcib0 ... port ... soft updates support ...
    (freebsd-questions)
  • Is FreeBSD ready for desktop (Mozilla Flash)
    ... monitor,, somehow the install fails to detect ... "Macromedia Flash plugin is not available for FreeBSD. ... I quote again "Install the www/linuxpluginwrapper port. ... servers, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Disappointing speed with ZFS
    ... This way the drives are utilized much more, and same goes for the CPU. ... Copyright 1992-2008 The FreeBSD Project. ... acpi0: on motherboard ... port 0x6000-0x60ff mem 0xe8000000-0xefffffff,0xe0400000-0xe040ffff irq 16 at device 0.0 on pci15 ...
    (freebsd-current)
  • FreeBSD 7.0 BETA 2 crashes when starts up with USB disk plugged in
    ... I encountered another crash when using FreeBSD 7.0 BETA 2. ... pci0: <ACPI PCI bus> on pcib0 ... <Parallel port bus> on ppc0 ...
    (freebsd-current)