Solved: Re: /dev/lpt0: Device busy, lptcontrol: ioctl: Operation not supported
On Wed, Jan 23, 2008 at 12:47:56PM +, 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: at port 0x378-0x37f on isa0 > ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode > ppbus0: 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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /dev/lpt0: Device busy, lptcontrol: ioctl: Operation not supported
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. i use my laptop to print on my laserjet, and it works by default settings, but /usr/sbin/lptcontrol -d /dev/lpt0.ctl -e make it much faster. but nothing like you say. check under DOS, but it may be cable problem. ppc0: at port 0x378-0x37f on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 what i have (i don't disable interrupt) ppc0: port 0x378-0x37f,0x778-0x77f irq 7 drq 1 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold check BIOS settings too. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
/dev/lpt0: Device busy, lptcontrol: ioctl: Operation not supported
Hello 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. If I use the spooling system with laserjet I get # lpq waiting for lp to become ready (offline?) Rank Owner Job Files Total Size 1stroot 9(standard input) 317 bytes # cat /var/spool/lpd/good/log PAGE: 1 1 INFO: Printing page 1... # # cat /var/spool/lpd/good/status waiting for lp to become ready (offline?) # and the printer never becomes online. With matrix printer I get # lpq lp is ready and printing Rank Owner Job Files Total Size active root 8(standard input) 317 bytes # lpq no entries but again 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: at port 0x378-0x37f on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 # There is nothing in the /var/log/lpd-errs. I did find some similar posts in various archives, but couldn't see any suggestions. My questions: 1. Could I have fried my parallel chip by changing the printers with laptop powered on? How can I check this? 2. What does "Device busy" really mean, and why I cannot change the setting with lptcontrol? 3. Any other tests I could do to pinpoint the source of the problem? many thanks anton -- 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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"