Solved: Re: /dev/lpt0: Device busy, lptcontrol: ioctl: Operation not supported



On Wed, Jan 23, 2008 at 12:47:56PM +0000, Anton Shterenlikht wrote:

My printing stopped working quite suddenly.

Until today I used FBSD-6.3-prerelease (today I updated to 6.3-stable)
on compaq armada 1700 laptop to print on a parallel HP laserjet 2100
printer in text mode and for postscript via apsfilter. All was fine.

Then I got another parallel printer, epson lq-550 24-pin dot matrix,
and played with printing on both printers by just unplugging one
and plugging the other to the laptop's parallel port. For a while
all was fine.

However, after several days, I cannot now print on either printer.
With laserjet I get

# lptest 20 20 > /dev/lpt0
/dev/lpt0: Device busy.

With matrix printer I get
# lptest 20 20 > /dev/lpt0
#

but nothing is printed.

I tried to play with lptcontrol, but I get the following:

# lptcontrol -i -d /dev/lpt0.ctl
lptcontrol: ioctl: Operation not supported
# lptcontrol -s -d /dev/lpt0.ctl
lptcontrol: ioctl: Operation not supported

I updated the OS and rebuilt the kernel: FreeBSD 6.3-STABLE
Wed Jan 23 10:46:54 GMT 2008, but that didn't help.

In my device.hints I have the following printer related lines:
hint.ppc.0.at="isa"
#hint.ppc.0.irq="7"

to enable the polling mode.

My parallel port settings:

# grep ppc /var/run/dmesg.boot
ppc0: <Parallel port> at port 0x378-0x37f on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
#

There is nothing in the /var/log/lpd-errs.

My questions:

1. Could I have fried my parallel chip by changing the printers with
laptop powered on? How can I check this?

Well, it seems there was some problem with the parallel chip.

I tried various flags with ppc(4), polling and interrupt mode, with no
luck, the "device busy" message was still there, and nothing would print.

After that I decided to switch the machine off and on again, not just a hot
reboot. And that did help, both printers are working fine.

Perhaps due to hot swithching of printers there was some charge(?)
on the parallel port chip, which made it appear busy..

--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233
Fax: +44 (0)117 929 4423
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Parallel Port Interface between PIC and PC
    ... > my current project involves designing a circular sonar-sensor array to ... > would then transmit the readings to the laptop on the robot. ... a USB port and a parallel port. ...
    (sci.electronics.design)
  • Re: parallel port PIC programmer
    ... Now my laptop is dead and, unfortunately, new laptops don't have parallel ... Main problem is that most tait style programmers manipulate the printer ... and I would be surprised if any USB to parallel converter will work out ... However, parallel port programmers are dinosaurs, as are serial port ...
    (sci.electronics.design)
  • Re: printer not printing
    ... of a house across the alley), and I lost my landline. ... tried printing from my laptop, which is networked to my desktop ... My husband checked all the physical connections, ... neighbor with a Parallel port machine is more cost effective IMHO. ...
    (microsoft.public.windowsxp.hardware)
  • Re: printer not printing
    ... and I lost my landline. ... tried printing from my laptop, which is networked to my desktop ... My husband checked all the physical connections, ... neighbor with a Parallel port machine is more cost effective IMHO. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Interrupt storm detection
    ... > setup) which even go as far as to allow DMA to the parallel port ... ... lptcontrol: open: Device busy ... ppbus0: IEEE1284 device found /NIBBLE/PS2/ECP ...
    (freebsd-current)