]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - usr.sbin/lptcontrol/lptcontrol.8
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / usr.sbin / lptcontrol / lptcontrol.8
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
25 The
26 .Nm
27 utility is used to set either the interrupt-driven, extended, standard,
28 or polling mode of individual
29 .Xr lpt 4
30 devices.
31 When a printer is switched from
32 a mode to another, this change will only take effect
33 the next time the device is opened.
34 .Pp
35 Extended mode is anything the parallel port interface can support.
36 For an
37 ECP/ISA parallel port, it may be FIFO+DMA or ECP.
38 .Pp
39 The following command line options are supported:
40 .Bl -tag -width indent
41 .It Fl e
42 Turn on extended mode.
43 .It Fl i
44 Turn on interrupt-driven mode.
45 .It Fl p
46 Turn on polled mode.
47 .It Fl s
48 Turn on standard mode, i.e., turn off extended mode.
49 .It Fl d Ar control_device
50 Set the mode of the printer control device specified by
51 .Ar control_device .
52 The default value for
53 .Ar control_device
54 is
55 .Pa /dev/lpt0.ctl .
56 .El
57 .Pp
58 One of
59 .Fl e , i , p
60 or
61 .Fl s
62 must be specified.
63 .Sh FILES
64 .Bl -tag -width /sys/i386/conf/GENERIC -compact
65 .It Pa /dev/lpt?
66 printer devices
67 .It Pa /dev/lpt?.ctl
68 printer control devices
69 .It Pa /sys/i386/conf/GENERIC
70 kernel configuration file
71 .It Pa /boot/device.hints
72 device 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
80 The
81 .Nm
82 utility
83 first appeared in
84 .Fx 1.1.5
85 .Sh AUTHORS
86 .An Geoffrey M. Rehmet
87 .Sh BUGS
88 The control device name should never have been an option,
89 but should have been an optional argument.
90 Because of this, a single argument is treated as a device name.