Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Let The Music Play: Join EFF Today

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 58 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       tunelp  <device>  [-i  <IRQ> | -t <TIME> | -c <CHARS> | -w
       <WAIT> | -a [on|off] | -o [on|off] | -C [on|off] | -r | -s
       | -q [on|off] | - T [on|off] ]


       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 parame­
       ters, it tells whether the device is using interrupts, and
       if  so,  which  one.   With parameters, it sets the device
       characteristics accordingly.  The parameters are  as  fol­

       -i <IRQ>
              specifies  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

              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/parport.txt  for  more
              details on parport.

       -t <TIME>
              is  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  pos­
              sible  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.

       -c <CHARS>
              is the number of times to try to output a character

       -w <WAIT>
              is 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 possi­
              ble 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.

       -a [on|off]
              This is whether to abort on  printer  error  -  the
              default is not to.  If you are sitting at your com­
              puter, 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.

       -o [on|off]
              This  option  is much like -a.  It makes any open()
              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  ver­
              sions of lpd.

       -C [on|off]
              This  option adds extra ("careful") error checking.
              When this option is on,  the  printer  driver  will
              ensure  that the printer is on-line and not report­
              ing any out of paper or other errors before sending
              data.   This  is  particularly  useful for printers
              that normally appear to  accept  data  when  turned

              NOTE:  This  option  is  obsolete  because it's the
              default in 2.1.131 kernel or later.

       -s     This 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


              NOTE: Trusting the irq is reported to  corrupt  the
              printing  on some hardware, you must try to know if
              your printer will work or not...

       -r     This option resets the port.  It requires  a  Linux
              kernel version of 1.1.80 or later.

       -q [on|off]
              This  option  sets printing the display of the cur­
              rent IRQ setting.


       -o, -C, and -s all  require  a  Linux  kernel  version  of
       1.1.76 or later.

       -C requires a Linux version prior to 2.1.131.

       -T requires a Linux version of 2.1.131 or later.


       By  some  unfortunate  coincidence  the  ioctl LPSTRICT of
       2.0.36 has the same number as the ioctl LPTRUSTIRQ  intro­
       duced  in  2.1.131.  So,  use of the -T option on a 2.0.36
       kernel with an tunelp compiled under 2.1.131 or later  may
       have unexpected effects.



tunelp                      7 May 1999                  tunelp(8)
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can help in many different ways.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds