1 .\" $NetBSD: lptctl.8,v 1.9 2004/02/04 14:25:13 wiz Exp $
3 .\" Copyright (c) 2004 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd manipulate lpt devices
37 .Nm lptctl Ar device Op Ar command Op Ar ...
40 is used to manipulate lpt devices so that a user can change how a
41 printer that is attached to a parallel port works.
42 If no command-argument pairs are specified, the status of the device
43 is printed to standard output.
44 The status information is also output after commands are carried out.
46 Multiple command-argument pairs can be specified.
47 Available commands are:
51 .Ar standard | nibble | ps2 | fast | ecp | epp
53 Sets port to use a mode of operation: standard centronics mode
54 (standard), nibble mode, bidirectional mode (ps2), fast centronics
55 mode (fast), enhanced capabilities port mode (ecp), or enhanced
56 parallel port mode (epp).
61 Enables or disables DMA.
62 Note DMA is only used in some advanced
63 modes such as ECP, and only if interrupts are enabled too.
68 Enables or disables the use of
70 negotiations during mode changes and channel direction changes.
75 Enables or disables use of interrupts for port operation.
76 If interrupts are disabled, polling is used for data transfers.
77 Default setting depends on device, but polling is commonly preferred.
82 Enables (default) or disables printer initialization sequence
84 Note the initialization sequence is never done
85 on open of control lpt device.
90 Enables or disables (default) automatic LF on CR for data transfers.
94 returns 0 on success, \*[Gt]0 on failure.
99 - printer port control devices
109 A similar utility called
116 While similar in concept, the implementations are independent.
121 This man page and the
123 utility were written by Gary Thorpe.