xref: /freebsd/usr.sbin/lptcontrol/lptcontrol.8 (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1.\"
2.\" lptcontrol - a utility for manipulating the lpt driver
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" $FreeBSD$
14.Dd October 1, 2004
15.Dt LPTCONTROL 8
16.Os
17.Sh NAME
18.Nm lptcontrol
19.Nd a utility for manipulating the lpt printer driver
20.Sh SYNOPSIS
21.Nm
22.Fl e | i | p | s
23.Op Fl d Ar control_device
24.Sh DESCRIPTION
25The
26.Nm
27utility is used to set either the interrupt-driven, extended, standard,
28or polling mode of individual
29.Xr lpt 4
30devices.
31When a printer is switched from
32a mode to another, this change will only take effect
33the next time the device is opened.
34.Pp
35Extended mode is anything the parallel port interface can support.
36For an
37ECP/ISA parallel port, it may be FIFO+DMA or ECP.
38.Pp
39The following command line options are supported:
40.Bl -tag -width indent
41.It Fl e
42Turn on extended mode.
43.It Fl i
44Turn on interrupt-driven mode.
45.It Fl p
46Turn on polled mode.
47.It Fl s
48Turn on standard mode, i.e., turn off extended mode.
49.It Fl d Ar control_device
50Set the mode of the printer control device specified by
51.Ar control_device .
52The default value for
53.Ar control_device
54is
55.Pa /dev/lpt0.ctl .
56.El
57.Pp
58One of
59.Fl e , i , p
60or
61.Fl s
62must be specified.
63.Sh FILES
64.Bl -tag -width /sys/i386/conf/GENERIC -compact
65.It Pa /dev/lpt?
66printer devices
67.It Pa /dev/lpt?.ctl
68printer control devices
69.It Pa /sys/i386/conf/GENERIC
70kernel configuration file
71.It Pa /boot/device.hints
72device hints for the parallel port chipset driver,
73.Xr ppc 4
74.El
75.Sh SEE ALSO
76.Xr lpt 4 ,
77.Xr ppc 4 ,
78.Xr device.hints 5
79.Sh HISTORY
80The
81.Nm
82utility
83first appeared in
84.Fx 1.1.5
85.Sh AUTHORS
86.An Geoffrey M. Rehmet
87.Sh BUGS
88The control device name should never have been an option,
89but should have been an optional argument.
90Because of this, a single argument is treated as a device name.
91