Camille Dominique on Wed, 26 Dec 2001 17:42:41 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

can't get hardware-duplex to work


Hi, 
Since I've been using the 7.x versions of apsfilter, I haven't been able
to get duplex printing to work anymore.

I'm printing over the network to an HPLaserJet 5M postscript with a
duplex unit, and it used to work before with the 6.1x version of
apsfilter.

I did an aps2file -D, and there is a spot where it says "unset DUPLEX" ?
Anyway, I'd like to know if I'm missing something:

**** my apsfilterrc settings:

PRINTER='PS'
PAPERSIZE='a4'
METHOD='auto'
QUALITY='medium'
COLOR='gray'
RESOLUTION='600x600'

HARDWARE_DUPLEX=set
ASCII_HEADER=set
DUPLEX=set

**** and this is what aps2file -D gave me 
 (dont' feel irritated by me replacing my host-, user- and 
  queuenames for the posting):

+ PATH=/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin
+ umask 077
+ trap '' 1 13
+ trap 'rm -rf "$APS_TMPDIR"; exit $return_code;' 0
+ trap 'exit 9' 1 5 7 10 12 15
+ '[' 3 -gt 0 ']'
+ variable=
+ variable=HOST
+ '[' HOST ']'
+ value=(my_hostname)
+ '[' '!' (my_hostname) ']'
+ eval 'HOST="$value"'
++ HOST=(my_hostname)
+ shift
+ '[' 2 -gt 0 ']'
+ variable=
+ variable=USER
+ '[' USER ']'
+ value=(my_username)
+ '[' '!' (my_username) ']'
+ eval 'USER="$value"'
++ USER=(my_username)
+ shift
+ '[' 1 -gt 0 ']'
+ variable=
+ variable=JOB
+ '[' JOB ']'
+ value=handbook.html
+ '[' '!' handbook.html ']'
+ eval 'JOB="$value"'
++ JOB=handbook.html
+ shift
+ '[' 0 -gt 0 ']'
+ unset variable value
+ echo dummy
+ read -r dummy
+ read_r=-r
++++ dirname /usr/local/etc/apsfilter/basedir/bin/apsfilter
+++ dirname /usr/local/etc/apsfilter/basedir/bin
++ dirname /usr/local/etc/apsfilter/basedir
+ CONF_DIR=/usr/local/etc/apsfilter
+ '[' -d /usr/local/etc/apsfilter/basedir ']'
++ eval echo '~(my_username)'
+++ echo /home/(my_username)
+ HOMEDIR=/home/(my_username)
+ SPOOLDIR=/var/spool/lpd/(my_queue)
+ '[' /var/spool/lpd/(my_queue) ']'
++ basename /var/spool/lpd/(my_queue)
+ QUEUE=(my_queue)
+ '[' -f /usr/local/etc/apsfilter/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/apsfilterrc
+ '[' -f /usr/local/etc/apsfilter/(my_queue)/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/(my_queue)/apsfilterrc
++ PRINTER=PS
++ PAPERSIZE=a4
++ METHOD=auto
++ QUALITY=medium
++ COLOR=gray
++ RESOLUTION=600x600
++ HARDWARE_DUPLEX=set
++ MAXCOPIES=20
++ ASCII_HEADER=set
++ PS_NUP=2
++ DUPLEX=set
+ '[' -f /usr/local/etc/apsfilter/(my_queue)/apsfilterrc.(my_username) ']'
+ '[' -n '' -a -f /home/(my_username)/.apsfilter/apsfilterrc.(my_queue) ']'
+ export PATH
+ : /tmp
+ APS_TMPDIR=/tmp/apsfilter13080
+ rm -rf /tmp/apsfilter13080
+ mkdir -m 711 /tmp/apsfilter13080
+ '[' 0 -ne 0 ']'
+ export TEMP=/tmp/apsfilter13080 TMPDIR=/tmp/apsfilter13080
+ TEMP=/tmp/apsfilter13080
+ TMPDIR=/tmp/apsfilter13080
+ : /usr/bin/mawk
+ : medium bi plain gray
+ '[' '' ']'
+ '[' '!' dummy ']'
+ '[' handbook.html = stdin -o handbook.html = '(stdin)' -o handbook.html = '(STDIN)' ']'
+ '[' '' ']'
+ : 20
+ '[' '' ']'
+ COPIES=1
+ '[' 1 -gt 20 ']'
+ '[' 1 = 0 ']'
+ '[' '' ']'
+ LANDSCAPE=
+ PORTRAIT=set
+ '[' '' = short ']'
+ BINDING=long
+ '[' '' ']'
+ : 2
+ '[' -e /usr/local/etc/apsfilter/restrictions ']'
+ '[' -e /usr/local/etc/apsfilter/(my_queue)/restrictions ']'
+ WIDTH_POINTS=595
+ HEIGHT_POINTS=842
+ WIDTH_INCHES=8.26
+ HEIGHT_INCHES=11.69
+ DRIVER_SCRIPT=PS
+ '[' '!' -e /usr/local/etc/apsfilter/basedir/driver/PS ']'
+ '[' -z PS ']'
+ '[' -e /usr/local/etc/apsfilter/basedir/driver/PS ']'
+ . /usr/local/etc/apsfilter/basedir/driver/PS
+ '[' '' ']'
+ '[' set ']'
+ unset DUPLEX


^^^^^^^^^^^^^^ is this normal ?


+ unpack print_auto
+ local HEADER FILE_TYPE unpacker unpacker_opts
+ DEPTH=1
+ HEADER=/tmp/apsfilter13080/header1
+ dd bs=1k count=16
++ file /tmp/apsfilter13080/header1
+ FILE_TYPE=/tmp/apsfilter13080/header1: HTML document text
++ echo HTML document text
++ tr A-Z a-z
+ FILE_TYPE=html document text
+ unpacker=
+ '[' '' ']'
+ cat /tmp/apsfilter13080/header1 -
+ eval print_auto
++ print_auto
++ print_html
++ local opts paper
++ find_filter htmldoc
++ type htmldoc
++ '[' gray = full ']'
++ opts=--gray
++ eval htmldoc --webpage --gray --format ps --portrait --size 595x842pt -
+++ htmldoc --webpage --gray --format ps --portrait --size 595x842pt -
++ print_ps
++ local paper gs_cmd
++ '[' '' ']'
++ ps_postprocessing
++ '[' '' ']'
++ eval psnup -q -2 '|' ps_set_duplex
+++ psnup -q -2
++ print_data
++ local c
++ '[' '' ']'
++ '[' 1 = 1 ']'
++ print_copy
++ '[' dummy ']'
++ cat
+++ ps_set_duplex
+++ local tumble duplex
+++ '[' long = short ']'
+++ tumble=false
+++ '[' '' ']'
+++ duplex=false


^^^^^^^^^^^^^^^^^ and this here ?


+++ /usr/bin/mawk '{ print } /^%%EndProlog/ { print "countdictstack\n/psset_mark\n{\n%%BeginFeature: *Duplex false\n  (<<) cvx exec /Duplex (false) cvx exec (>>) cvx exec\n  systemdict /setpagedevice get exec\n%%EndFeature\n%%BeginFeature: *Tumble false\n  (<<) cvx exec /Tumble (false) cvx exec (>>) cvx exec\n  systemdict /setpagedevice get exec\n%%EndFeature\n} stopped\n{ /psset_mark eq { exit } if } loop\ncountdictstack exch sub dup 0 gt\n{\n  { end } repeat\n}{\n  pop\n} ifelse" }'

Unable to read image file "apsfilter4.gif"!                                    

    Real filename = "apsfilter4.gif"                                           

    Error = 2, "No such file or directory"                                     
++ return
+ rm -f /tmp/apsfilter13080/header1
+ rm -rf /tmp/apsfilter13080
+ exit

**** end of file



thanks for any hint,
-- 
Camille