2004-01-23 22:51:26 +03:00
|
|
|
.\" $NetBSD: lptctl.8,v 1.3 2004/01/23 19:51:26 wiz Exp $
|
2004-01-20 02:22:23 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright notice
|
|
|
|
.\"
|
|
|
|
.\" The uncommented requests are required for all man pages.
|
|
|
|
.\" The commented requests should be uncommented and used where appropriate.
|
2004-01-20 02:32:42 +03:00
|
|
|
.Dd January 20, 2004
|
2004-01-20 02:22:23 +03:00
|
|
|
.Dt LPTCTL 8
|
2004-01-23 22:51:26 +03:00
|
|
|
.Os
|
2004-01-20 02:22:23 +03:00
|
|
|
.Sh NAME
|
2004-01-23 22:51:26 +03:00
|
|
|
.Nm lptctl
|
2004-01-20 02:22:23 +03:00
|
|
|
.Nd manipulate lpt devices
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm lptctl
|
|
|
|
.Ar /dev/device
|
|
|
|
.Oo
|
|
|
|
.Op Ar command arg
|
|
|
|
.Ar ...
|
|
|
|
.Oc
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2004-01-23 22:51:26 +03:00
|
|
|
is used to manipulate lpt devices so that a user can change how a printer that
|
|
|
|
is attached to a parallel port works.
|
|
|
|
If no command-argument pairs are specified, the status of the device is printed to
|
|
|
|
standard output using the following format:
|
2004-01-20 02:22:23 +03:00
|
|
|
.Pp
|
|
|
|
dma=[on|off] mode=[standard|nibble|ps2|fast|ecp|epp] ieee=[yes|no]
|
|
|
|
.Pp
|
|
|
|
The status information is also output after commands are carried out.
|
2004-01-23 22:51:26 +03:00
|
|
|
.Sh DEVICE COMMANDS
|
|
|
|
Multiple command-argument pairs can be specified up to a maximum of the total number
|
2004-01-20 02:22:23 +03:00
|
|
|
of distinct commands possible. Available commands are:
|
|
|
|
.Bl -item
|
|
|
|
.It
|
2004-01-23 22:51:26 +03:00
|
|
|
.Cm dma
|
2004-01-20 02:22:23 +03:00
|
|
|
.Ar on | off
|
|
|
|
.Pp
|
|
|
|
Enables or disables DMA.
|
|
|
|
.It
|
2004-01-23 22:51:26 +03:00
|
|
|
.Cm mode
|
|
|
|
.Ar standard | nibble | ps2 | fast | ecp
|
|
|
|
.Ar | epp
|
2004-01-20 02:22:23 +03:00
|
|
|
.Pp
|
2004-01-23 22:51:26 +03:00
|
|
|
Sets port to use a mode of operation: standard centronics mode (standard),
|
|
|
|
nibble mode, bidirectional mode (ps2), fast centronics mode (fast), enhanced
|
|
|
|
capabilities port mode (ecp), or enhanced parallel port mode (epp).
|
2004-01-20 02:22:23 +03:00
|
|
|
.It
|
2004-01-23 22:51:26 +03:00
|
|
|
.Cm ieee
|
2004-01-20 02:22:23 +03:00
|
|
|
.Ar yes | no
|
|
|
|
.Pp
|
2004-01-23 22:51:26 +03:00
|
|
|
Enables or disables the use of IEEE 1284 negotiations during mode changes and
|
2004-01-20 02:22:23 +03:00
|
|
|
channel direction changes.
|
|
|
|
.El
|
|
|
|
.Sh EXIT STATUS
|
2004-01-23 22:51:26 +03:00
|
|
|
.Nm
|
2004-01-20 02:22:23 +03:00
|
|
|
returns 0 on success, >0 on failure.
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -item
|
|
|
|
.It
|
|
|
|
.Pa /dev/lpt?
|
|
|
|
- interrupt-driven printer ports
|
|
|
|
.It
|
|
|
|
.Pa /dev/lpa?
|
|
|
|
- polled printer ports
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ioctl 2 ,
|
|
|
|
.Xr lpt 4 ,
|
|
|
|
.Xr ppbus 4
|
|
|
|
.Sh HISTORY
|
2004-01-23 22:51:26 +03:00
|
|
|
A similar utility called
|
2004-01-20 02:22:23 +03:00
|
|
|
.Nm lptcontrol
|
2004-01-23 22:51:26 +03:00
|
|
|
exists in FreeBSD to control the lpt device. While similar in concept,
|
2004-01-20 02:22:23 +03:00
|
|
|
the implementations are independent.
|
2004-01-20 02:32:42 +03:00
|
|
|
.Nm
|
|
|
|
was added in
|
|
|
|
.Nx 2.0 .
|
2004-01-20 02:22:23 +03:00
|
|
|
.Sh AUTHORS
|
2004-01-23 22:51:26 +03:00
|
|
|
This man page and the
|
2004-01-20 02:22:23 +03:00
|
|
|
.Nm
|
|
|
|
utility were written by Gary Thorpe.
|
|
|
|
.Sh BUGS
|
|
|
|
.Nm
|
2004-01-20 02:32:42 +03:00
|
|
|
opens the printer device and causes device initialization if
|
2004-01-23 22:51:26 +03:00
|
|
|
.Pa /dev/lpa?
|
2004-01-20 02:32:42 +03:00
|
|
|
or
|
|
|
|
.Pa /dev/lpt?
|
2004-01-23 22:51:26 +03:00
|
|
|
are used. Therefore, a printer must be connected and functioning
|
|
|
|
to use this utility or you will have to create a lpt device with an
|
|
|
|
appropriate minor number (see
|
|
|
|
.Xr lpt 4
|
2004-01-20 02:22:23 +03:00
|
|
|
for more details).
|