]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/tunelp.8.adoc
Merge branch 'uuid-time64_t' of https://github.com/thkukuk/util-linux
[thirdparty/util-linux.git] / sys-utils / tunelp.8.adoc
CommitLineData
295b3979 1//po4a: entry man manual
b9d2ddfb
MB
2= tunelp(8)
3:doctype: manpage
4:man manual: System Administration
5:man source: util-linux {release-version}
6:page-layout: base
7:command: tunelp
8
9== NAME
10
11tunelp - set various parameters for the lp device
12
13== SYNOPSIS
14
4d297435 15*tunelp* [options] _device_
b9d2ddfb
MB
16
17== DESCRIPTION
18
19*tunelp* sets several parameters for the /dev/lp__?__ devices, for better performance (or for any performance at all, if your printer won't work without it...) Without parameters, it tells whether the device is using interrupts, and if so, which one. With parameters, it sets the device characteristics accordingly.
20
21== OPTIONS
22
23*-i*, *--irq* _argument_::
4eab78d3
MB
24specifies the IRQ to use for the parallel port in question. If this is set to something non-zero, *-t* and *-c* have no effect. If your port does not use interrupts, this option will make printing stop. The command *tunelp -i 0* restores non-interrupt driven (polling) action, and your printer should work again. If your parallel port does support interrupts, interrupt-driven printing should be somewhat faster and efficient, and will probably be desirable.
25+
26*NOTE*: This option will have no effect with kernel 2.1.131 or later since the irq is handled by the parport driver. You can change the parport irq for example via _/proc/parport/*/irq_. Read _/usr/src/linux/Documentation/admin-guide/parport.rst_ for more details on parport.
b9d2ddfb
MB
27
28*-t*, *--time* _milliseconds_::
4eab78d3 29is the amount of time in jiffies that the driver waits if the printer doesn't take a character for the number of tries dictated by the *-c* parameter. 10 is the default value. If you want fastest possible printing, and don't care about system load, you may set this to 0. If you don't care how fast your printer goes, or are printing text on a slow printer with a buffer, then 500 (5 seconds) should be fine, and will give you very low system load. This value generally should be lower for printing graphics than text, by a factor of approximately 10, for best performance.
b9d2ddfb
MB
30
31*-c*, *--chars* _characters_::
4eab78d3
MB
32is the number of times to try to output a character to the printer before sleeping for *-t* _TIME_. It is the number of times around a loop that tries to send a character to the printer. 120 appears to be a good value for most printers in polling mode. 1000 is the default, because there are some printers that become jerky otherwise, but you _must_ set this to '1' to handle the maximal CPU efficiency if you are using interrupts. If you have a very fast printer, a value of 10 might make more sense even if in polling mode. If you have a _really_ old printer, you can increase this further.
33+
34Setting *-t* _TIME_ to 0 is equivalent to setting *-c* _CHARS_ to infinity.
b9d2ddfb
MB
35
36*-w*, *--wait* _milliseconds_::
4eab78d3 37is the number of usec we wait while playing with the strobe signal. While most printers appear to be able to deal with an extremely short strobe, some printers demand a longer one. Increasing this from the default 1 may make it possible to print with those printers. This may also make it possible to use longer cables. It's also possible to decrease this value to 0 if your printer is fast enough or your machine is slow enough.
b9d2ddfb
MB
38
39*-a*, *--abort* _<on|off>_::
4eab78d3 40This is whether to abort on printer error - the default is not to. If you are sitting at your computer, you probably want to be able to see an error and fix it, and have the printer go on printing. On the other hand, if you aren't, you might rather that your printer spooler find out that the printer isn't ready, quit trying, and send you mail about it. The choice is yours.
b9d2ddfb
MB
41
42*-o*, *--check-status* _<on|off>_::
4eab78d3 43This option is much like *-a*. It makes any *open*(2) of this device check to see that the device is on-line and not reporting any out of paper or other errors. This is the correct setting for most versions of *lpd*.
b9d2ddfb
MB
44
45*-C*, *--careful* _<on|off>_::
4eab78d3
MB
46This option adds extra ("careful") error checking. When this option is on, the printer driver will ensure that the printer is on-line and not reporting any out of paper or other errors before sending data. This is particularly useful for printers that normally appear to accept data when turned off.
47+
48*NOTE*: This option is obsolete because it's the default in 2.1.131 kernel or later.
b9d2ddfb
MB
49
50*-s*, *--status*::
4eab78d3 51This option returns the current printer status, both as a decimal number from 0..255, and as a list of active flags. When this option is specified, *-q* off, turning off the display of the current IRQ, is implied.
b9d2ddfb
MB
52
53*-r*, *--reset*::
4eab78d3 54This option resets the port. It requires a Linux kernel version of 1.1.80 or later.
b9d2ddfb
MB
55
56*-q*, *--print-irq* _<on|off>_::
4eab78d3 57This option sets printing the display of the current IRQ setting.
b9d2ddfb
MB
58
59== FILES
60
4eab78d3 61_/dev/lp?_,
b9d2ddfb
MB
62_/proc/parport/*/*_
63
64== NOTES
65
66*-o*, *-C*, and *-s* all require a Linux kernel version of 1.1.76 or later.
67
68*-C* requires a Linux version prior to 2.1.131.
69
625e9c61 70include::man-common/bugreports.adoc[]
b9d2ddfb 71
625e9c61 72include::man-common/footer.adoc[]
b9d2ddfb
MB
73
74ifdef::translation[]
625e9c61 75include::man-common/translation.adoc[]
b9d2ddfb 76endif::[]