lpd tries to print to switched off printer!

lpd tries to print to switched off printer!

Post by Uwe Schuerka » Fri, 31 Mar 1995 04:00:00



dear netters,

I've got a problem with a printer hooked up to the parallel port (an
epson lq-570, but it happens with others as well). The lpd send output
to the printer even if it is switched off. It behaves ok if I manually
set the printer to the offline state. The "paper out" status appears
in syslog as the infamous "lp1 on fire" message, so this message is
apparently not interpreted correctly. I'm using the polling driver on
lp1, hex address 378, so I guess that's pretty much standard.

I wonder: How can I prevent the driver from printing when the printer
is switched off apart from killing lpd?

Thanks in advance for any help,

        hoover

 
 
 

lpd tries to print to switched off printer!

Post by Tomi Leppikang » Sun, 02 Apr 1995 04:00:00


: I wonder: How can I prevent the driver from printing when the printer
: is switched off apart from killing lpd?

Try tunelp

tunelp [-o on] or [-a on] or [-C on]   should help

--

##         http://phoenix.oulu.fi/~tomilepp        ##

 
 
 

lpd tries to print to switched off printer!

Post by Steve Ranc » Wed, 05 Apr 1995 04:00:00


:dear netters,
:
:I've got a problem with a printer hooked up to the parallel port (an
:epson lq-570, but it happens with others as well). The lpd send output
:to the printer even if it is switched off. It behaves ok if I manually
:set the printer to the offline state. The "paper out" status appears
:in syslog as the infamous "lp1 on fire" message, so this message is
:apparently not interpreted correctly. I'm using the polling driver on
:lp1, hex address 378, so I guess that's pretty much standard.
:
:I wonder: How can I prevent the driver from printing when the printer
:is switched off apart from killing lpd?

Try not to print to the printer when it is switched off !!
That should fix it :-)

--
    #-------------------------------#------------------------------#


    #-------------------------------#------------------------------#

 
 
 

lpd tries to print to switched off printer!

Post by R.D. Auchterloun » Thu, 06 Apr 1995 04:00:00




[...]
>:I wonder: How can I prevent the driver from printing when the printer
>:is switched off apart from killing lpd?
>Try not to print to the printer when it is switched off !!
>That should fix it :-)

The correct solution is to get the latest version of the "tunelp"
program (in util-linux-XXX package).
This program is, suprise, used to control the printer driver...
Then "man tunelp"

ray

 
 
 

lpd tries to print to switched off printer!

Post by Simon P Alle » Mon, 10 Apr 1995 04:00:00


Quote:> :dear netters,
> :
> :I've got a problem with a printer hooked up to the parallel port (an
> :epson lq-570, but it happens with others as well). The lpd send output
> :to the printer even if it is switched off. It behaves ok if I manually
> :set the printer to the offline state. The "paper out" status appears
> :in syslog as the infamous "lp1 on fire" message, so this message is
> :apparently not interpreted correctly. I'm using the polling driver on
> :lp1, hex address 378, so I guess that's pretty much standard.
> :
> :I wonder: How can I prevent the driver from printing when the printer
> :is switched off apart from killing lpd?

> Try not to print to the printer when it is switched off !!
> That should fix it :-)

Very funny, not. This is a perfectly good question - just because YOU
don't know the answer doesn't mean you need to take the piss.  What a
muppet you are.

Uwe, I've seen this problem myself.  Now that someone else is
experiencing it I'll look into it. When do you get the LP1 on fire
message?  Do you get it when the printer is off line or when the power is
off or both?

Cheers, Simon.

 
 
 

lpd tries to print to switched off printer!

Post by Steve Ranc » Mon, 10 Apr 1995 04:00:00


Quote:>> :I wonder: How can I prevent the driver from printing when the printer
>> :is switched off apart from killing lpd?

>> Try not to print to the printer when it is switched off !!
>> That should fix it :-)
>Very funny, not. This is a perfectly good question - just because YOU
>don't know the answer doesn't mean you need to take the piss.  What a
>muppet you are.

Sorry if I took this a bit light heartidly ... but on my system when
I print to a swicthed off printer it just goes into the spooler waiting
for the printer to become ready. Even if I shut the system down a number
of times it stays in the spoller. This for me works fine, when I send
something to the printer it will eventually print it even if the printer
was off at the time the print command was issued.

So what do you want ?, an error to come back to the application that the
printer is switched off, or what you just want the print to go into a
bit bucket without any messages ?

If the printer is switched off and you decide not to print what is in the
spooler than just use "lprm" to get rid of the appropriate entry.

Again sorry .... or am I still missing the point ?

Steve Rance

--
    #-------------------------------#------------------------------#


    #-------------------------------#------------------------------#

 
 
 

lpd tries to print to switched off printer!

Post by Kari Varvik » Tue, 11 Apr 1995 04:00:00



Quote:> > :dear netters,
> > :
> > :I've got a problem with a printer hooked up to the parallel port (an
> > :epson lq-570, but it happens with others as well). The lpd send output
> > :to the printer even if it is switched off. It behaves ok if I manually
> > :set the printer to the offline state. The "paper out" status appears
> > :in syslog as the infamous "lp1 on fire" message, so this message is
> > :apparently not interpreted correctly. I'm using the polling driver on
> > :lp1, hex address 378, so I guess that's pretty much standard.
> > :
> > :I wonder: How can I prevent the driver from printing when the printer
> > :is switched off apart from killing lpd?

I faced this problem myself too :(
I know that it should work and my friend has configuration in
which it works fine (tested today). My configuration files
seemed to be like his, but I didn't get that spooling to work,
when printer is offline or powered off. It just losts every
printing job. Any ideas?
--

 
 
 

lpd tries to print to switched off printer!

Post by Michael K. Johns » Tue, 11 Apr 1995 04:00:00


   > :I've got a problem with a printer hooked up to the parallel port (an
   > :epson lq-570, but it happens with others as well). The lpd send output
   > :to the printer even if it is switched off. It behaves ok if I manually

Get the latest tunelp from tsx-11.mit.edu or any of its mirrors, and
read the man page.  It explains that there is an option that can be
set in newer kernels (you use the tunelp program to do this) that
tries to detect when the printer is turned off.

NOTE: Not all printers/ports behave well when they are turned off;
that's outside spec, as I recall.  If it doesn't work for you, you
will have to come up with a patch that happens to work with your
printer (if that is possible; it isn't for some combinations) or you
will be SOL.

michaelkjohnson

 
 
 

lpd tries to print to switched off printer!

Post by R.D. Auchterloun » Wed, 12 Apr 1995 04:00:00



>dear netters,
[...]
>I wonder: How can I prevent the driver from printing when the printer
>is switched off apart from killing lpd?

simple,

1. Get tunelp (from util-linux-2.2) if you haven't already got it.
2. man tunelp (you are looking for the "careful" flag among others)

ray

 
 
 

lpd tries to print to switched off printer!

Post by ch.. » Wed, 12 Apr 1995 04:00:00




>> > :dear netters,
>> > :
>> > :I've got a problem with a printer hooked up to the parallel port (an
>> > :epson lq-570, but it happens with others as well). The lpd send output

  <SNIP>

Quote:>> > :I wonder: How can I prevent the driver from printing when the printer
>> > :is switched off apart from killing lpd?

> I faced this problem myself too :(
> I know that it should work and my friend has configuration in
> which it works fine (tested today). My configuration files
> seemed to be like his, but I didn't get that spooling to work,
> when printer is offline or powered off. It just losts every
> printing job. Any ideas?

I'd double-check the cable (parallel cable?) to make sure all signals are
routed correctly.  If it's a home-brew cable, maybe something's come loose?
 
 
 

1. lpd tries to print to switched off prin


This used to be a problem. The solution is simple now.  Get a recent version
of tunelp and set-up the printer options (in rc.local) with:

tunelp /dev/lp1 -o on -C on

Assuming your printer IS /dev/lp1. This will give the off-line support you
need.

Karl

--------------------------------------------------------------------------
Vitrociset S.p.A.                               Tel   : +(49) 6151 902041
European Space Agency                           Fax   : +(49) 6151 904041

2. groff, troff, mgs, gs, and MAN broke.. please help

3. lpd - can it know if the printer is switched off?

4. Compiling Kdevelop 2.1.2 for KDE 3.0.2

5. Printing to switched off printer

6. REPOST: Massive Probes from Korea

7. lpd sends jobs even when printer is off?

8. Virus-Scanner

9. no queue when printer switched off

10. only root can print to remote lpd printer (2)

11. Problem printing from Solaris to LPD printer server.

12. Trouble printing to a remote HPK80 printer using LPD