From owner-freebsd-stable@FreeBSD.ORG Sat Sep 24 16:35:02 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0B4616A41F for ; Sat, 24 Sep 2005 16:35:02 +0000 (GMT) (envelope-from dcp1990@neptune.atopia.net) Received: from neptune.atopia.net (neptune.atopia.net [209.128.231.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id B045043D49 for ; Sat, 24 Sep 2005 16:35:02 +0000 (GMT) (envelope-from dcp1990@neptune.atopia.net) Received: by neptune.atopia.net (Postfix, from userid 1034) id 1046D614E; Sat, 24 Sep 2005 12:35:02 -0400 (EDT) Date: Sat, 24 Sep 2005 12:35:01 -0400 From: Dan Ponte To: freebsd-stable@freebsd.org Message-ID: <20050924163501.GA53285@neptune.atopia.net> Mail-Followup-To: freebsd-stable@freebsd.org References: <20050924180909.78a29487.stanley.jobson@gmx.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050924180909.78a29487.stanley.jobson@gmx.ch> User-Agent: Mutt/1.5.8i Subject: Re: lpt0 always busy X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 16:35:03 -0000 On Sat, Sep 24, 2005 at 06:09:09PM +0200, stanley jobson was witnessed plotting the following conspiracy: > hi, > i am now trying for weeks to get my lpt0 working without any success :( > > i always get "device busy" (running lptcontrol, lptest, > open(/dev/lpt0)). i found a lot of questions about this via google and > some hints too (e.g. excluding device ppi from kernel) but all this > didnt help :( > > i should mention that my printer connected to lpt0 is a funny gdi > printer which only works under win98. so my idea was to use qemu to run > a emulated win98 to get my printer working - but therefore qemu needs to > be able to open /dev/lpt0 ... > > finally i wrote a simple c prog which just calls open(/dev/lpt0) but it > also always fails with device busy :( > > what are the requirements to successfully open lpt0 port (apart from > having connected a printer to it) ? > > does fbsd expects a response from the printer (e.g. ready status)? maybe > my printer is not able to do this ... if so: what are possible > workarounds? could i convice the kernel that lpt0 is ready? > > thx > regards, > stan > > ps: i am running fbsd 5.4 > Usually, if you get "device busy," it means that the printer is simply not on or connected properly. Check your parallel cable. -Dan -- Dan Ponte http://www.theamigan.net/ A great many people think they are thinking when they are merely rearranging their prejudices. -- William James