From owner-freebsd-stable@FreeBSD.ORG Sun Sep 25 16:13:13 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 DB46E16A41F for ; Sun, 25 Sep 2005 16:13:13 +0000 (GMT) (envelope-from stanley.jobson@gmx.ch) Received: from sigma.informatik.hu-berlin.de (sigma.informatik.hu-berlin.de [141.20.20.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 423FB43D49 for ; Sun, 25 Sep 2005 16:13:12 +0000 (GMT) (envelope-from stanley.jobson@gmx.ch) Received: from hadriel.linnet (p54BCDDA2.dip.t-dialin.net [84.188.221.162]) (authenticated bits=0) by sigma.informatik.hu-berlin.de (8.13.4+Sun/8.13.4/INF-2.0-MA-SOLARIS-2.10) with ESMTP id j8PGCkH4028463; Sun, 25 Sep 2005 18:13:07 +0200 (CEST) Date: Sun, 25 Sep 2005 18:12:38 +0200 From: Stanley Jobson To: "Daniel O'Connor" Message-Id: <20050925181238.6bfe01fb.stanley.jobson@gmx.ch> In-Reply-To: <200509252330.05256.doconnor@gsoft.com.au> References: <20050924180909.78a29487.stanley.jobson@gmx.ch> <200509251923.53947.doconnor@gsoft.com.au> <20050925153304.4edf87cb.stanley.jobson@gmx.ch> <200509252330.05256.doconnor@gsoft.com.au> X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Status: No (sigma) X-Spam-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_50, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on rabe Cc: freebsd-stable@freebsd.org 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: Sun, 25 Sep 2005 16:13:14 -0000 > > i have a separate box running win98. from this box i am able to use the > > printer with the orig vendor driver without any problem ... > > Hmm, well it's possible the serial port is broken.. maybe ... > > > > Are you sure nothing else is using the port? (lpd, cups, etc) > > > > i think so: lpd is not running and lsof | grep lpt doesnt show anything > > either : ( > > fstat /dev/lpt0 > and > fstat /dev/lpt0.ctl > > ? root@tyrael seb $ fstat /dev/lpt0.ctl USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME root@tyrael seb $ fstat /dev/lpt0 USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME root@tyrael seb $ > > > so i guess there could be a prob with the ready/status checking > > procedure > > This consists of checking the BUSY pin on the port.. > Parallel ports are (sans ECP/EPP extras) very very simple. > > Have you tried using lptcontrol to put it into simple mode? root@tyrael seb $ lptcontrol -s -d /dev/lpt0.ctl root@tyrael seb $ > What do you see in dmesg? lpt0: switched to interrupt-driven standard mode looks that everything is ok - not ? but open(/dev/lpt0) still complains about "device busy" ... thx regards, stan