   
   
   
   
SANE-logoUMAX-logo Configuration
sane-umax-doc.htmlIndex Frontend options:
sane-umax-standard-options-doc.htmlStandard options sane-umax-advanced-options-doc.htmlAdvanced options Supported scanners:
sane-umax-powerlook-doc.htmlPower Look series sane-umax-mirage-doc.htmlMirage series sane-umax-astra-doc.htmlAstra series sane-umax-vista-doc.htmlVista series sane-umax-uc-doc.htmlUC series sane-umax-others-doc.htmlothers sane-umax-not-listed-doc.htmlNot listed scanners sane-umax-scanner-clones-doc.htmlUMAX scanner clones sane-umax-parport-doc.htmlUMAX parallel port scanners sane-umax-config-doc.htmlConfiguration sane-umax-speed-doc.htmlSpeed of UMAX scanners http://www.rauch-domain.de/sane-umaxSANE-umax homepage http://www.sane-project.orgSANE homepage http://www.xsane.org/XSane homepage CONFIGURATION:
The configuration file for this backend resides in
/usr/local/etc/sane.d/umax.conf.
Its contents is a list of options and device names that correspond to UMAX
scanners. Empty lines and lines starting with a hash mark (#) are ignored.
A sample configuration file is shown below:
option scsi-buffer-size-min 65536option scsi-buffer-size-max 131072option scan-lines 40option preview-lines 10option scsi-maxqueue 2option handle-bad-sense-error 0option execute-request-sense 0option force-preview-bit-rgb 0option slow-speed -1option care-about-smearing -1option calibration-full-ccd -1option calibration-width-offset -1option calibration-bytes-pixel -1option invert-shading-data -1option lamp-control-available 0#scsi Vendor Model Type Bus Channel ID LUNscsi UMAX * Scanner * * * * */dev/scanner# this is a comment/dev/sgeThe special device name must be a generic SCSI device or a
symlink to such a device. To find out to which device your scanner is assigned
and how you have to set the permissions of that device, have a look at
http://www.sane-project.org/man/sane-scsi.5.htmlsane-scsi .
When the generic scsi driver of the system supports selection
of scsi buffer sizes the umax backend calculates the scsi buffer
sizes in dependance of the numbers of bytes per scanline.
With 
scsi-buffer-size-min and scsi-buffer-size-maxthe scsi buffer size can be defined in a range between 4KB and 1MB.
Especially the minimum value is very important. If this value is
set too small the backend is not able to send gamma tables to the
scanner or to do a correct color calibration. This may result in
strange color effects. If the minimum value is set too large then
the backend is not able to allocate the requested scsi buffer size
and aborts with out of memory error. The default is 32KB, for
some scanners it should be increased to 64KB.
The option 
scan-lines defines the the number of lines that
shall be scanned with one scsi read command for a real scan.
The number of lines that are read with one scsi command for
preview scans are defined by the option 
preview-lines.
Both have to be in the range between 1 and 65536.
With the option 
scsi-maxqueue you can define the number
of scsi commands that shall be queued. UMAX scanners do not
support command queueing - as far as I know. But some scsi controller
drivers do support queueing in the kernel. In this case it does not
make sense to queue more than 2 commands.
When you are able to do color previews but color scans do not
work you can set the option 
force-preview-bit-rgb 1.
This always sets the preview bit when acquiring a color scan.
The image quality may be reduced.
Some scanners (especally very old scanners) may need the options
slow-speed and/or care-about-smearing. The value
-1 uses the value defined by the driver, 0 disables the feature,
1 enables the feature. 
Do not change these options unless
you really know what you do, you can destroy your scanner
by setting wrong values for this options!!!
Some scsi drivers (or may be some scanners) do return an invalid
error code when a scsi command is executed. There are different
ways to handle such bad error codes. You can define the behaviour
of the umax-backend by setting the option 
handle-bad-sense-errorin umax.conf. You can set the following values:
0 : handle as device busy1 : handle as ok2 : handle as i/o error3 : ignore bad error code, continue sense handlerIn most cases it does work when this condition is handled as a
device busy state so this is the default (0).
The option 
execute-request-sense disables(0) or enables(1)
the scsi command REQUEST_SENSE. The command can be called when the
scanner asks the driver to do calibration. The driver does
not know the required calibration parameters for all scanners.
Some scanners return the needed parameters when the driver
executes the REQUEST_SENSE command. But there is a problem
with the REQUEST_SENSE command on some systems with some
scsi controller drivers. This can cause a system hang.
So the safe way is to disable the REQUEST_SENSE command,
but the driver may not be able to do correct calibration
in this case.
For some scanners the calibration has to be done by the driver.
For this the driver has to know some values about the calibration
data. When the REQUEST_SENSE command is disabled or the scanner
does not return the correct data the driver needs to know the
correct parameters. For some scanners the parameters are stored
in the driver. When these values are not set correct the image
might look very strange. To be sure that you have a problem
with the calibration please enable debug output.
calibration-full-ccd:The calibration can be done for each element of the CCD (1)
or for each pixel of the requested image(0). 
The value -1 enables the value defined in the driver.
calibration-width-offset:Some scanners use more pixels than calculated by image/CCD
parameters. A value larger or equal 0 defines the offset.
The value -1 enables the value defined in the driver.
calibration-bytes-pixel:Some scanners use 1 byte calibration data although the
scanner supports more than 8 bits/pixel. You can define
1 or 2 bytes per pixel calinration data. 
The value -1 enables the value defined in the driver.
invert-shading-data:Some scanners need inverted shading data (1), others
need original shading data (0).
The value -1 enables the value defined in the driver.
SCSI ADAPTER TIPS:
The UMAX-scanners do block the scsi-bus for a few seconds while
scanning. It is not necessary to connect the scanner to its own SCSI-adapter.
But if you need short response time for your SCSI-harddisk (e.g. if your
computer is a file-server), I suggest you use an own SCSI-adapter for your
UMAX-scanner.
The SCSI-adapters that are shipped with some Umax-scanners
are very simple ones. I suggest not to use them. If you really want to
try: the UDS-IS11 uses a DTC3181E chip (compatible to NCR5380). On linux
you may have the chance to get it work with the recent g_NCR5380-driver.
The card does not have IRQ/DMA. Try the following option for kernel boot
option:
        dtc_3181e=0x280,255
 or use the following command:
        insmod g_NCR5380 ncr_irq=255
ncr_addr=0x280 dtc_3181e=1
     - ncr_irq=255 : no IRQ, no DMA
     - ncr_irq=254 : autoprobe IRQ
     - ncr_addr : can be: 0x220 0x240 0x280 0x2A0 0x2C0 0x300 0x320 0x340
 
For
http://support.umax.co.uk/technotes/f096B.htminformation about the umax-scsi-cards take a look here.
See the relevant hardware FAQs and HOWTOs for your platform
for more information.
See also: http://www.sane-project.org/man/sane-scsi.5.htmlsane-scsi FILES:
The backend configuration file: /usr/local/etc/sane.d/umax.confThe static library implementing this backend: /usr/local/lib/sane/libsane-umax.aThe shared library implementing this backend : /usr/local/lib/sane/libsane-umax.so
(present on systems that support dynamic loading)
ENVIRONMENT:
SANE_DEBUG_UMAXIf the library was compiled with debug support enabled, this
environment variable controls the debug level for this backend. E.g., a
value of 128 requests all debug output to be printed. Smaller levels reduce
verbosity:
SANE_DEBUG_UMAX values Number Remark 0
print important errors (printed each time) 1
print errors 2 print sense 3
print warnings 4 print scanner-inquiry 5
print information 6 print less important information 7 print called procedures 8 print reader_process messages 10
print called sane-init-routines 11
print called sane-procedures 12
print sane-infos 13
print sane option control messages Example:
export SANE_DEBUG_UMAX=8
This page has been changed on 27th. feburary 2001 Author: 
mailto:Oliver.Rauch@rauch-domain.deOliver Rauch 