From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 6 02:10:18 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1EF916A4BF for ; Mon, 6 Oct 2003 02:10:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 585E243FDF for ; Mon, 6 Oct 2003 02:10:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h969AIFY059805 for ; Mon, 6 Oct 2003 02:10:18 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h969AHAl059804; Mon, 6 Oct 2003 02:10:17 -0700 (PDT) (envelope-from gnats) Date: Mon, 6 Oct 2003 02:10:17 -0700 (PDT) Message-Id: <200310060910.h969AHAl059804@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Bruce Evans Subject: Re: bin/57630: lptcontrol gives "device busy" if device turned off X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Bruce Evans List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2003 09:10:18 -0000 X-List-Received-Date: Mon, 06 Oct 2003 09:10:18 -0000 The following reply was made to PR bin/57630; it has been noted by GNATS. From: Bruce Evans To: "Klaus-J.Wolf" Cc: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/57630: lptcontrol gives "device busy" if device turned off Date: Mon, 6 Oct 2003 19:02:03 +1000 (EST) On Mon, 6 Oct 2003, Klaus-J.Wolf wrote: > >Description: > "lptcontrol -ei -d /dev/lpt0" during boot time fails with "device busy" > if the printer is turned off at that time. lptcontrol should be run on the control device (not /dev/lptN). Support for using the control device automatically was broken in rev.1.8 of lptcontrol.c. Existence of the documented control device was broken in FreeBSD-5 as part of devfs lossage. The documented control device is "/dev/lpctlN" (see lptcontrol(8), but devfs creates "/dev/lptN.ctl". The lpt driver also has support for control bits in the minor number. (The control device is a special case of this -- it uses bit 0x80.) There are 6 control bits, giving a total of 64 possible devices per unit. devfs only creates 2 of these. Bruce