SuSE GmbH

SuSE Support Database

Title: Printing: Unrecoverable error: rangecheck in .putdeviceprops

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

Printing: Unrecoverable error: rangecheck in .putdeviceprops

Applies to

SuSE Linux: Versions in erster Linie: apsfilter und ghostscript to 4.03 der ersten Auflage von SuSE 5.0

Symptom:

You get an error messages while printing. The messages is printed to paper and/or a logfile /var/spool/lpd/DRIVERS_NAME-*-*-*-*/log
Unrecoverable error: rangecheck in .putdeviceprops
                                       (1488)op_array(488)0x818cccc:E

Cause:

Sometimes (depends on the driver) doesn't even recognize its own options.

Solution:

Set the resolution explicitly (e.g. for Epson, Canon). Furthermore you have to set the options mentioned below in /etc/apsfilterrc.TREIBER_NAME (for HP DeskJet) after the actual installation with YaST:
GS_FEATURES="-dBitsPerPixel=16"
or just
GS_FEATURES=""
Make sure that if there is a "if" both variables are set.
if [ "$COLOR" = "mono" ] ; then
  GS_FEATURES=""
#  PRELOADS=""
else
  GS_FEATURES="-dBitsPerPixel=16"
#  PRELOADS=""
fi

A list of possible values may be found in /usr/doc/packages/ghostscript/doc/devices.txt or /var/lib/apsfilter/doc/deskjets.features.

We recommend testing these paramters by invoking ghostscript manually. Here you might see where the error occurs. You may enter somethin like (that's one line!):

gs -q -dNOPAUSE -dSAFER -dSHORTERRORS -sDEVICE=cdeskjet
-r300 -dBitsPerPixel=16 -sPAPERSIZE=a4 -sOutputFile=/dev/null
/usr/doc/packages/ghostscript/examples/alphabet.ps
or:
gs -q -dNOPAUSE -dSAFER -dSHORTERRORS -sDEVICE=bjc600
-r360x360 -dBitsPerPixel=16 -sPAPERSIZE=a4 -sOutputFile=/dev/null
/usr/doc/packages/ghostscript/examples/alphabet.ps

If you replace /dev/null by the actual printer device, e.g. /dev/lp1 the given PostScript file is actually printed. This makes it easy for you to find an optimal combination of necessary parametrs for your printer.

For those using an Epson Stylus: please try experimenting with the resolutions 360x360, 720x360, 720x720, 360x720 (variable GS_RESOL) in combination with the parameter -dSoftweave (variable GS_FEATURES).

Furthermore you may avoid the "staircase effect" while printing directly to the raw device (lpr -Praw DATEI) by entering the following line: (this is an example for a DeskJet printer [cdj550]):

PRINT_RAW_SETUP_PRINTER='\033&k2G\033(s1Q\033&k5W\033&l0L\033&a7L\033(s12H'
This effect is due to the printer which has been setup for DOS. There is a DIP switch for most printers (HP, Canon) to activate/deactivat this behaviour.

Set PRINT_RAW_SUPPRESS_FORMFEED="yes" if you want to avoid a formfeed after the print job has been completed.

Detailed information on apsfilter variables can be found in /etc/apsfilterrc.

----------

See also:

----------

Keywords: DRUCKEN, DESKJET, EPSON, APSFILTER, GHOSTSCRIPT, 5.0

----------

Feedback welcome: Send Mail to smt@suse.de (Please give the following subject: SDB-smt_druck)

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-smt_druck, Copyright SuSE GmbH, Nuremberg, Germany - Version: 01. Feb 1998
SuSE GmbH - Last generated: 07. Oct 1999 18:04:20 by maddin with sdb_gen 1.00.0