From owner-freebsd-questions@FreeBSD.ORG Wed Jan 23 13:05:49 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7419716A421 for ; Wed, 23 Jan 2008 13:05:49 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from diri.bris.ac.uk (diri.bris.ac.uk [137.222.10.112]) by mx1.freebsd.org (Postfix) with ESMTP id 2A51613C4E3 for ; Wed, 23 Jan 2008 13:05:49 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from seis.bris.ac.uk ([137.222.10.93]) by diri.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1JHf2O-0007EV-7d for freebsd-questions@freebsd.org; Wed, 23 Jan 2008 12:49:06 +0000 Received: from mech-aslap33.men.bris.ac.uk ([137.222.184.33]) by seis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1JHf2N-0003ss-9a for freebsd-questions@freebsd.org; Wed, 23 Jan 2008 12:49:03 +0000 Received: from mech-aslap33.men.bris.ac.uk (localhost [127.0.0.1]) by mech-aslap33.men.bris.ac.uk (8.14.2/8.14.2) with ESMTP id m0NCludB001480 for ; Wed, 23 Jan 2008 12:47:56 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-aslap33.men.bris.ac.uk (8.14.2/8.14.2/Submit) id m0NCluPN001479 for freebsd-questions@freebsd.org; Wed, 23 Jan 2008 12:47:56 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-aslap33.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Wed, 23 Jan 2008 12:47:56 +0000 From: Anton Shterenlikht To: freebsd-questions@freebsd.org Message-ID: <20080123124756.GA1246@mech-aslap33.men.bris.ac.uk> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Spam-Score: -1.3 X-Spam-Level: - Subject: /dev/lpt0: Device busy, lptcontrol: ioctl: Operation not supported X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 13:05:49 -0000 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 1st root 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