lpd thinks printer is offline

lpd thinks printer is offline

Post by M C Se » Mon, 26 May 1997 04:00:00



can anyone tell me why linux thinks my colour deskjet 400 is offline
when it is not. it prints from dos so it's not a win only printer.
could i have it connected to the wrong /dev/lpx. printcap is expecting
it to be on /dev/lp0, but i don't remember if i had to set this up when
i installed linux (redhat 4.0), or know how to check this out. can
anyone save me.

thanks in advance

matthew

 
 
 

lpd thinks printer is offline

Post by Sid Boyc » Tue, 27 May 1997 04:00:00



> can anyone tell me why linux thinks my colour deskjet 400 is offline
> when it is not. it prints from dos so it's not a win only printer.
> could i have it connected to the wrong /dev/lpx. printcap is expecting
> it to be on /dev/lp0, but i don't remember if i had to set this up when
> i installed linux (redhat 4.0), or know how to check this out. can
> anyone save me.

> thanks in advance

> matthew

        Almost certainly wrong, try "cat file >/dev/lp1", think you'll find it
works.
Regards
--
... Sid Boyce...Amdahl(UK)...44-121 422 0375
                   -----------------------------------
Any opinions expressed above are mine and do not necessarily represent
 the opinions or policies of Amdahl Corporation.

 
 
 

lpd thinks printer is offline

Post by Jim Howe » Wed, 28 May 1997 04:00:00



: can anyone tell me why linux thinks my colour deskjet 400 is offline
: when it is not. it prints from dos so it's not a win only printer.
: could i have it connected to the wrong /dev/lpx. printcap is expecting
: it to be on /dev/lp0, but i don't remember if i had to set this up when
: i installed linux (redhat 4.0), or know how to check this out. can
: anyone save me.

Which /dev/lp?  Look in your kernel log messages (dmesg | grep lp)
or in /var/adm/syslog

Mine says...

May 27 21:15:19 notout kernel: lp1 at 0x0378, (polling)
May 27 21:15:19 notout kernel: lp2 at 0x0278, (polling)

DOS numbers LPT's as it finds them;  drivers/char/lp.c numbers /dev/lp's
for specific addresses from it's table..

struct lp_struct lp_table[] = {
{ 0x3bc, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, 0, 0, 0, {0} },
{ 0x378, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, 0, 0, 0, {0} },
{ 0x278, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, 0, 0, 0, {0} },

Quote:};

So /dev/lp0 is at 0x3bc, which is not where your LPT1 is I suspect.
Jim
 
 
 

1. lpr: lpd thinks my printer is offline

I'm trying to set up lpr (according to the printing HOWTO more or
less, though there are some inconsistent instructions in that
document).

I have slackware 1.2, kernel 1.0.8, and a bj200e.  

My printer works quite well if I just sent stuff to /dev/lp1, but
I've been unable to get lpr to work.

I have lpd up, and if I type

        ls -l | lpr -Pprinter

then I can use  

        lpq -Pprinter

to see that the job has made it into the print queue.  But lpq (and
lpc status) tell me that lpd is waiting for the printer (and both suggest
parenthetically that the printer might be offline).

        The printer isn't offline (and it is on and plugged in), as I'm
able to print by sending stuff straight to /dev/lp1 as I mentioned.
        Oh, also, lprm works if this is helpful in diagnosing the problem.

        Last night I shut down the computer with a job in the queue.
This morning I rebooted, to receive and print a fax.  When I turned the
printer on, the job I had sent to the print queue last night
came out!  (I had tried turning the printer on and off last night.)
Then I printed my fax (not through lpr, but by sending the output of
gs straight to /dev/lp1), and then tried to do lpr again.  Once again,
lpr put my file in the print queue, but lpd seemed to be waiting for the
printer to come online (which it already was).

        Anyone understand my problem?

                Hal Sadofsky

2. Bug in 'find' on Solaris 2.8

3. Lpd hangs at startup when remote printer is offline and there are jobs for the printer

4. IPNAT + IPCHAINS on offcial Redhat 6.1

5. lpd reports that printer is offline (hmmm)

6. lkfile?

7. remote printer for other unix...lpd, host.lpd, etc

8. Energy Saving Tips

9. Firefox 3 thinks Iam "offline" -- nothing could be further from the truth

10. two LPD printers, one physical printer

11. posting test 3, I am writing an offline newsreader.

12. posting test 4, I am writing a offline newsreader

13. Setting up a SCO lpr printer to serve as remote printer for PC lpd's