1994-09-03 13:10:09 +00:00
|
|
|
.\"
|
|
|
|
.\" lptcontrol - a utility for manipulating the lpt driver
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
2004-10-01 20:04:20 +00:00
|
|
|
.Dd October 1, 2004
|
1994-09-03 22:47:08 +00:00
|
|
|
.Dt LPTCONTROL 8
|
2001-07-10 15:12:08 +00:00
|
|
|
.Os
|
1994-09-03 22:47:08 +00:00
|
|
|
.Sh NAME
|
2001-02-01 16:44:04 +00:00
|
|
|
.Nm lptcontrol
|
1997-09-25 06:36:29 +00:00
|
|
|
.Nd a utility for manipulating the lpt printer driver
|
1994-09-03 22:47:08 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2004-10-01 20:04:20 +00:00
|
|
|
.Fl e | i | p | s
|
|
|
|
.Op Fl d Ar control_device
|
1994-09-03 22:47:08 +00:00
|
|
|
.Sh DESCRIPTION
|
1994-09-03 13:10:09 +00:00
|
|
|
The
|
1997-09-25 06:36:29 +00:00
|
|
|
.Nm
|
2004-10-01 20:04:20 +00:00
|
|
|
utility is used to set either the interrupt-driven, extended, standard,
|
|
|
|
or polling mode of individual
|
1994-09-03 22:47:08 +00:00
|
|
|
.Xr lpt 4
|
2001-02-01 16:44:04 +00:00
|
|
|
devices.
|
|
|
|
When a printer is switched from
|
1999-02-14 12:23:49 +00:00
|
|
|
a mode to another, this change will only take effect
|
1994-09-03 13:10:09 +00:00
|
|
|
the next time the device is opened.
|
1999-02-14 12:23:49 +00:00
|
|
|
.Pp
|
2000-03-01 14:09:25 +00:00
|
|
|
Extended mode is anything the parallel port interface can support.
|
|
|
|
For an
|
1999-02-14 12:23:49 +00:00
|
|
|
ECP/ISA parallel port, it may be FIFO+DMA or ECP.
|
1999-11-27 16:54:36 +00:00
|
|
|
.Pp
|
1994-09-03 22:47:08 +00:00
|
|
|
The following command line options are supported:
|
2001-07-15 08:06:20 +00:00
|
|
|
.Bl -tag -width indent
|
2004-10-01 20:04:20 +00:00
|
|
|
.It Fl e
|
|
|
|
Turn on extended mode.
|
1994-09-03 22:47:08 +00:00
|
|
|
.It Fl i
|
1997-09-25 06:36:29 +00:00
|
|
|
Turn on interrupt-driven mode.
|
1994-09-03 22:47:08 +00:00
|
|
|
.It Fl p
|
1997-09-25 06:36:29 +00:00
|
|
|
Turn on polled mode.
|
1999-05-28 02:09:46 +00:00
|
|
|
.It Fl s
|
2004-07-02 23:13:00 +00:00
|
|
|
Turn on standard mode, i.e., turn off extended mode.
|
2004-10-01 20:04:20 +00:00
|
|
|
.It Fl d Ar control_device
|
|
|
|
Set the mode of the printer control device specified by
|
|
|
|
.Ar control_device .
|
2001-07-15 08:06:20 +00:00
|
|
|
The default value for
|
2004-10-01 20:04:20 +00:00
|
|
|
.Ar control_device
|
1994-09-03 13:10:09 +00:00
|
|
|
is
|
2004-10-01 20:04:20 +00:00
|
|
|
.Pa /dev/lpt0.ctl .
|
1994-09-03 22:47:08 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2001-07-15 08:06:20 +00:00
|
|
|
One of
|
2004-10-01 20:04:20 +00:00
|
|
|
.Fl e , i , p
|
1999-02-14 12:23:49 +00:00
|
|
|
or
|
2004-10-01 20:04:20 +00:00
|
|
|
.Fl s
|
1994-09-03 13:10:09 +00:00
|
|
|
must be specified.
|
1994-09-03 22:47:08 +00:00
|
|
|
.Sh FILES
|
1997-09-25 06:36:29 +00:00
|
|
|
.Bl -tag -width /sys/i386/conf/GENERIC -compact
|
|
|
|
.It Pa /dev/lpt?
|
1999-11-27 16:54:36 +00:00
|
|
|
printer devices
|
2004-07-18 02:22:47 +00:00
|
|
|
.It Pa /dev/lpt?.ctl
|
1999-11-27 16:54:36 +00:00
|
|
|
printer control devices
|
1997-09-25 06:36:29 +00:00
|
|
|
.It Pa /sys/i386/conf/GENERIC
|
1999-11-27 16:54:36 +00:00
|
|
|
kernel configuration file
|
2004-10-01 20:04:20 +00:00
|
|
|
.It Pa /boot/device.hints
|
2005-01-11 11:47:22 +00:00
|
|
|
device hints for the parallel port chipset driver,
|
2004-10-01 20:04:20 +00:00
|
|
|
.Xr ppc 4
|
1994-09-03 22:47:08 +00:00
|
|
|
.El
|
2001-02-01 16:44:04 +00:00
|
|
|
.Sh SEE ALSO
|
2004-10-01 20:04:20 +00:00
|
|
|
.Xr lpt 4 ,
|
|
|
|
.Xr ppc 4 ,
|
|
|
|
.Xr device.hints 5
|
1994-09-03 22:47:08 +00:00
|
|
|
.Sh HISTORY
|
2001-02-01 16:44:04 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility
|
1997-09-25 06:36:29 +00:00
|
|
|
first appeared in
|
|
|
|
.Fx 1.1.5
|
2005-01-18 20:02:45 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Geoffrey M. Rehmet
|
|
|
|
.Sh BUGS
|
|
|
|
The control device name should never have been an option,
|
|
|
|
but should have been an optional argument.
|
|
|
|
Because of this, a single argument is treated as a device name.
|