Hi,
Below is my original post, along with the responses I received.
Thanks to all who responded. Most of the solutions involve making
minor edits to the interface script. I used the solution suggested
by Charles Nguyen; the solutions given by Rick Schieche and Brooke King
also would work ...
Richard
Original Post:
We have an HP LaserJet 4000TN printer with a duplexing attachment.
I'd like to set up a print queue, such that all jobs sent to the
queue are printed in duplex mode.
The HP JetAdmin utility (Version D.05.15) doesn't appear to allow
this option to be defined when configuring a print queue. I realize
HP does provide a GUI tool (jetprint) which does allow duplexing to
be specified, but I'd like a command-line alternative. I was able to
print in duplex mode on the machine where the JetAdmin software
is installed by supplying option "-o duplex", but that doesn't
work with Suns which are accessing the printer as a remote printer -
I get the error message:
Warning: lj4000 not configured to handle all lp options:
ignoring: -o duplex
How can I define a print queue where the default mode is duplex (either
long-edge or short-edge)? This is in a Solaris 2.5.1/2.6 environment ...
>From Jim Roy [jim@nga.com]
I have set up a que on a 4.1.3 machine for duplex printing to
a remote 2.5.1 machine. The secret is to add DUPLEX=1 to the
.params file in the spool directory on the 4.1.3 machine.
( I think that's all... long time ago... )
Here`s my printcap entry, and the .params file from sd=
# this guy is set up for duplex printing
lj4|lp|Laserjet 4000 TN:\
:mx#0:lp=/var/spool/printers/lj4/.null:\
:sd=/var/spool/printers/lj4:\
:sh:\
:lf=/var/spool/printers/lj4/log:\
:of=/usr/lib/hpnp/hplj.of.sh:\
:if=/usr/lib/hpnp/hplj.if.sh:
nga{jim}132: more .params
STAPLE=no
PSLEVEL=2
EOL=
LANGUAGE=AUTO
PERIPHTYPE=ljx4000
DUPLEX=1
INTRAY=3
BINTRAY=0
OUTTRAY=1
RESOLUTION=600
SUPPRESSHDR=sh
PAPERSIZE=0
xPORT=
PERIPH=laserjet2
>From Matthew Stier [Matthew.Stier@tddny.fujitsu.com]
Okay, I'm betting that on the print clients, that in the /etc/lp/Systems
file, that the print server is defined as type BSD. This is not a problem.
It is the recommended way from Sun, however, the BSD protocols do not
understand "options".
Sun does have a little documented flag for this, called "SVR4-Extensions",
and it needs to be inserted in the 8th field for the print server.
/etc/lp/Systems
printhost:x:-:bsd:-:n:10:SVR4-Extensions:-:
Note: At our site we define simplex and duplex queue for our users. (Some
applications do not permit adding options to the commandline) Once you
create the queues, look for the interfaces script for the queue, and change
the DUPLEX environment variable to type of duplexing you would like the
queue to do.
>From Charles Nguyen [ctn@umn.edu]
1) Define a new printer. Call it duplex or something
2) Go to the directory: /etc/lp/interfaces/model.orig
3) modify line 436 of the file for the printer
(ie: /etc/lp/interfaces/model.orig/duplex)
4) change the option to vduplex.
ie:
...
resolution="def"
econo="def"
duplex="vduplex"
mediasrc="def"
mediadest="def"
...
>From Bismark Espinoza [bismark@alta.jpl.nasa.gov]
Create a jetadmin print queue on a Solaris 2.5.1/2.6 print server.
Then change the /usr/lib/lp/model/net_ljx000 file to always
send the -duplex option.
>From Brooke King [jbking@sandia.gov]
I believe you want the "vd" option for long-side binding. You can
add this to the filter by changing /etc/lp/interfaces/$queue from
options=$5
to
options=$5
if [ -z "$options" ]
then
options=vd
else
options="$option vd"
fi
I have scripts to do this to our print servers' HP duplex queues
so I can invoke them in the print servers' JumpStart finish
scripts.
>From Vladimir [vladimir@math.uic.edu]
I am not sure this would help: try locating the interface script
(it's /etc/lp/interfaces/queue_name in our installation)
and put the line
options="$options duplex"
somewhere in the beginning. That would force duplex printing
on that queue (if that's what you want).
>From Rick Schieche [rschiec@co.pierce.wa.us]
I did this by just creating another printer in JetAdmin and appending a "d"
to the end of the name. Then edit /etc/lp/interfaces/model.orig/<printername>
and change the line in the script that says:
options=$5
to
options=duplex
Then just have people who want to print duplex send it to that printer queue.
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:15 CDT