Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2003 02:10:17 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/57630: lptcontrol gives "device busy" if device turned off
Message-ID:  <200310060910.h969AHAl059804@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/57630; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: "Klaus-J.Wolf" <yanestra@seismic.de>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310060910.h969AHAl059804>