CUPS and Laserjet 2200 and RedHat 8

  • Follow


Hi,

I had to change from LPR to CUPS, because LPR would not allow me to disable 
two-sided printing (no clue why). With CUPS printing articles takes up to 
half an hour for 12 pages, if there are pictures in it. With LPR the job 
was finished after a few seconds. I think I have direct PS printing without 
conversion to PCL (where can I check that?). While printing (or better 
said: while waiting for it) the CPU is almost idle, so I think the printer 
is the one taking so long.

I have seen similar questions to similar hardware configuration on several 
printing forums, but no definite answer has been given.

Some advice?


0
Reply harald.grossauer (25) 9/30/2003 4:04:52 PM

Harald Grossauer <harald.grossauer@uibk.ac.at> writes:

]Hi,

]I had to change from LPR to CUPS, because LPR would not allow me to disable 
]two-sided printing (no clue why). With CUPS printing articles takes up to 
]half an hour for 12 pages, if there are pictures in it. With LPR the job 

Hm. Interesting. 
I canot explain what is happening but to do single sided try defining a
different printer in lpr.
lps:\
        :sd=/var/spool/lpd/lps:\
        :sh:\
        :if=/var/spool/lpd/lps/filter.simplex:\
        :lp=/dev/usb/lp0:\
        :rw:

Then define the filter.simplex to contain the commands to get the
pritner to print simples. For example I have an HP1300 printer, and I
use the old filters that mandrake used for lpr in their 7.x versions.
But the critical lines are

    echo '^[%-12345X@PJL'
    echo '@PJL DEFAULT DUPLEX=OFF'
    echo '^[%-12345X'
    eval $bestpath 2>/dev/null
    echo '^[%-12345X@PJL'
    echo '@PJL DEFAULT DUPLEX=ON'
        echo '^[%-12345X'

The first tells the printer to go over to pjl. The second sets duplex
off. The third tells it to go back to postscript, the fourth actrually
prints out the file ("bestpath" is a variable set by the rest of the
filter to convert the incoming file to postscript), the fifth again
tells it to go into PJL mode, the sixth to switch on duples printing and
the seventh to go back to postscript again.
Then when you want to print single sided, send the file to lps, and if
you want double sided, send it to the default printer.


]was finished after a few seconds. I think I have direct PS printing without 
]conversion to PCL (where can I check that?). While printing (or better 
]said: while waiting for it) the CPU is almost idle, so I think the printer 
]is the one taking so long.

]I have seen similar questions to similar hardware configuration on several 
]printing forums, but no definite answer has been given.

]Some advice?


0
Reply unruh (868) 9/30/2003 4:23:54 PM


Bill Unruh wrote:

> Harald Grossauer <harald.grossauer@uibk.ac.at> writes:
> 
> ]Hi,
> 
> ]I had to change from LPR to CUPS, because LPR would not allow me to
> disable ]two-sided printing (no clue why). With CUPS printing articles
> takes up to ]half an hour for 12 pages, if there are pictures in it. With
> LPR the job
> 
> Hm. Interesting.
> I canot explain what is happening but to do single sided try defining a
> different printer in lpr.
> lps:\
>         :sd=/var/spool/lpd/lps:\
>         :sh:\
>         :if=/var/spool/lpd/lps/filter.simplex:\
>         :lp=/dev/usb/lp0:\
>         :rw:

Thanks for the answer. But how are the correct parameter settings if the 
printer is a JetDirect network printer with its own IP adress?

Sorry, but in configuring printers in linux I am a complete newbie.

0
Reply harald.grossauer (25) 9/30/2003 4:38:48 PM

On Tue, 30 Sep 2003, Harald Grossauer <harald.grossauer@uibk.ac.at> wrote:
> I had to change from LPR to CUPS, because LPR would not allow me to disable 
> two-sided printing (no clue why). With CUPS printing articles takes up to 
> half an hour for 12 pages, if there are pictures in it. With LPR the job 
> was finished after a few seconds. I think I have direct PS printing without 
> conversion to PCL (where can I check that?). While printing (or better 
> said: while waiting for it) the CPU is almost idle, so I think the printer 
> is the one taking so long.

LPR does not have dynamic settings like CUPS does, so you would need to 
set up a different printer name for single sided printer (per another 
reply).

Are you using a raw queue, or printer specific prefilter queue?  
Is connection direct parallel, built-in JetDirect, or other print
server?

You might try telling CUPS that it is a generic postscript printer and see 
if that works any better.

My CUPS experience is limited to an HP LJ4L on a Linksys EFSP42 (which 
works fine from SuSE 8.2 Pro).  And my 2200DTN experience is limited to 
DOS/Win at work.

I would actually be curious how to print to the 2200DTN through 
an ssh tunnel.  I know how to tunnel (I can access 2200DTN JetDirect web 
interface).  I just do not know how to get LPRng or CUPS to connect to a 
non-standard port on my end of the tunnel (since local printing daemon is 
bound to standard port).

-- 
David Efflandt - All spam ignored  http://www.de-srv.com/
0
Reply efflandt (877) 9/30/2003 8:20:32 PM

On Tue, 30 Sep 2003 18:04:52 +0200, Harald Grossauer <harald.grossauer@uibk.ac.at> wrote:
> I had to change from LPR to CUPS, because LPR would not allow me to disable 
> two-sided printing (no clue why). With CUPS printing articles takes up to 
> half an hour for 12 pages, if there are pictures in it. With LPR the job 
> was finished after a few seconds. I think I have direct PS printing without 
> conversion to PCL (where can I check that?). While printing (or better 
> said: while waiting for it) the CPU is almost idle, so I think the printer 
> is the one taking so long.
> I have seen similar questions to similar hardware configuration on several 
> printing forums, but no definite answer has been given.
> Some advice?

I'm using RH 7.3.  To disable Double-sided printing (with LPR):
  1. from the command line run
     printconf-gui
  2. enter the root password
  3. the printer config gui shows all the defined queues.  Assuming
you already have one defined by IP, highlight it and click edit.  If
not, you'll have to create a new one, giving the IP address, using a
UNIX LPD queue.  I assume you are using the LaserJet 2200, Postscript
driver.
  4. Select the Driver Options tab.  There is a list of options,
including 2 (!) labelled Double-sided printing.  You must set both of
these to off.  The first controls whether double-sided printing is
done along the short edge (flipped) or the long edge (standard).  The
second is just off or on.  The second one is the important one.

If you do this, you won't need CUPS.

-- 
Dale Dellutri <ddelQQQlutr@panQQQix.com> (lose the Q's)
0
Reply ddelQQQlutr (156) 9/30/2003 9:25:38 PM

Dale Dellutri wrote:

> I'm using RH 7.3.  To disable Double-sided printing (with LPR):
>   1. from the command line run
>      printconf-gui
>   2. enter the root password
>   3. the printer config gui shows all the defined queues.  Assuming
> you already have one defined by IP, highlight it and click edit.  If
> not, you'll have to create a new one, giving the IP address, using a
> UNIX LPD queue.  I assume you are using the LaserJet 2200, Postscript
> driver.
>   4. Select the Driver Options tab.  There is a list of options,
> including 2 (!) labelled Double-sided printing.  You must set both of
> these to off.  The first controls whether double-sided printing is
> done along the short edge (flipped) or the long edge (standard).  The
> second is just off or on.  The second one is the important one.

Believe me, I have done this several times (with both of the switches). But 
the settings were never saved. After restarting printconf-gui double sided 
printing was always ON again!

0
Reply harald.grossauer (25) 10/1/2003 6:37:19 AM

The following solved the problem:

Instead of "foomatic + postscript" I installed another printer with 
"foomatic + ljet4". Performance is now very good, quality of printed images 
a bit lower than with postscript.

0
Reply harald.grossauer (25) 10/1/2003 6:38:58 AM

6 Replies
56 Views

(page loaded in 0.096 seconds)


Reply: