From owner-freebsd-questions Thu Jul 19 21:45: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtprelay1.adelphia.net (smtprelay1.adelphia.net [64.8.25.6]) by hub.freebsd.org (Postfix) with ESMTP id E6FE837B406 for ; Thu, 19 Jul 2001 21:44:58 -0700 (PDT) (envelope-from ipthomas_77@yahoo.com) Received: from scraemondaemon.my.domain ([24.49.96.3]) by smtprelay1.adelphia.net (Netscape Messaging Server 4.15) with ESMTP id GGR94902.5JR; Fri, 20 Jul 2001 00:43:21 -0400 Received: (from ipt@localhost) by scraemondaemon.my.domain (8.11.4/8.11.4) id f6K4gkx00736; Fri, 20 Jul 2001 00:42:46 -0400 (EDT) (envelope-from ipt) Date: Fri, 20 Jul 2001 00:42:46 -0400 From: User & Ian Patrick Thomas To: ipthomas_77@yahoo.com Cc: freebsd-questions@freebsd.org Subject: Re: /dev/lpt0 is always busy Message-ID: <20010720004246.A715@localhost> References: <20010718190203.A51074@localhost> <20010718192226.A69370@moo.holy.cow> <20010718231324.F80368@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010718231324.F80368@localhost>; from ipthomas_77@yahoo.com on Wed, Jul 18, 2001 at 11:13:24PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG As it was put forth by User & Ian Patrick Thomas on Wed, Jul 18, 2001 at 11:13:24PM -0400... > I did this > > lptcontrol -p -d /dev/lpctl0 > > and this time it did not give an error message, but I am still getting > the busy signal when I try to run the lptest. I am going to try and recompile > a kernel with the lpt0 set without an IRQ and see if this makes a difference. > I'll also try the rc.conf route. Thanks for the help. > > Ian > > As it was put forth by parv on Wed, Jul 18, 2001 at 07:22:26PM -0400... > > on Jul 18 19:11, i got this from User... > > > I have never attempted to get a printer working > > > on FreeBSD until now so excuse my very limited knowledge. > > > I just obtained an HP LaserJet IIP and after attempting the > > > printer test as described in the handbook > > > > > > lptest > /dev/lpt0 > > > > > > I get > > > > > > /dev/lpt0: Device busy. > > > > > > After trying to change the Printer to polling mode using > > > lptcontrol -p, I get > > > > > > lptcontrol: open: Device busy > > > > > > i don't know why lptest would give you a busy msg, but to put lpt in > > polling mode you need to do... > > > > # lptcontrol -p -d /dev/lpctl0 > > > > ...at least that's what i had to do after making kernel w/ updated > > source tree as of jun 24, 2001. lptcontrol didn't complain w/ old > > sources (don't remember the date) though. > > > > see man page for lptcontrol. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message After recompiling the kernel with the printer set up to boot in polled mode and enabling debugging here is what dmesg has to say ppc0: at port 0x378-0x37f on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppi0: on ppbus0 plip0: on ppbus0 out=55 in=55 tout=10000 out=aa in=aa tout=10000 out=fe in=fe tout=10000 out=fd in=fd tout=10000 out=fb in=fb tout=10000 out=f7 in=f7 tout=10000 out=ef in=ef tout=10000 out=df in=df tout=10000 out=bf in=bf tout=10000 out=7f in=7f tout=10000 out=1 in=1 tout=10000 out=2 in=2 tout=10000 out=4 in=4 tout=10000 out=8 in=8 tout=10000 out=10 in=10 tout=10000 out=20 in=20 tout=10000 out=40 in=40 tout=10000 out=80 in=80 tout=10000 lpt0: on ppbus0 oldirq 0 lpt0: Polled port irq 0 0 After doing lpc status lpt0 I get the following unknown printer lpt0 which makes sense because I havn't put anything in /etc/printcap other than what is in there as default. The FreeBSD online handbook says that unless the printer is a PostScript language printer, mine isn't, then the following test should work lptest > /dev/lpt0 It doesn't and the device is supposedly busy doing nothing. The cord is hooked up correctly and the little lcd display says 00 Ready. This is an old HP LaserJet IIP so it should use PCL. Is there anything else I can try to get more info for troubleshooting or should I go and get a different printer? If so, what are Printers that work with BSD that don't cost to much(under $300, or $200 if possible)? Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message