sane-microtek2(5)

NAME
sane-microtek2 - SANE backend for Microtek scanners with SCSI-2 command set

DESCRIPTION
The sane-microtek2 library implements a SANE (Scanner Access Now Easy) backend that provides access to some Microtek scanners with a SCSI-2 command set. This backend should be considered alpha.

There exists a different backend for Microtek scanners with SCSI-1 command set. Refer to sane-microtek(5) for details.

At present, the following scanners are known positively to work with this backend:

    Vendor Product id: Remark:
    -------- -------------- -----------
    Microtek E3plus all modes ok
    Microtek X6 all modes ok
    Microtek ScanMaker 330 all modes ok
    Microtek ScanMaker 630 all modes ok
    Microtek ScanMaker 636 all modes ok
    Microtek Phantom 636 all modes ok
    Vobis HighScan all modes ok

If you own a Microtek scanner with SCSI-2 interface other than the ones listed above, it may or may not work with SANE!

FRONTEND OPTIONS
This backend dynamically enables the options for the frontend, that are supported by the scanner in dependence of the scanning-mode and other options. Not supported options are disabled.

The following options are supported by the Microtek2-driver:

Color, grayscale, halftone and lineart scans.

Highlight, midtone, shadow, contrast, brightness, exposure time control, gamma correction, threshold (dependent of the scan mode)

Transparency media adapter, automatic document feeder

DEVICE NAMES
This backend expects device names of the form:

    special

Where special is the UNIX path-name for the special device that corresponds to the scanner. The special device name must be a generic SCSI device or a symlink to such a device. Under Linux, such a device name could be /dev/sga or /dev/sge, for example.

CONFIGURATION
The configuration file for this backend resides in @CONFIGDIR@/microtek2.conf. Its contents is a list of device names that correspond to Microtek scanners with SCSI-2 interface. Empty lines and lines starting with a hash mark (#) are ignored.

The configuration file may also contain options. Currently two options are supported:

    option dump <n>
    option strip-height <n>

If option dump <n> is enabled additional informations about the SCSI commands that are sent to the scanner are printed to stderr. This option is primarily useful for debugging purpose.

If n=1 the contents of the command blocks and the results for the INQUIRY and READ SCANNER ATTRIBUTES command are printed to stderr.

If n=2 the contents of the command blocks for all other SCSI commands are printed to stderr, too. If n=3 the contents of the gamma table is printed, too. If n=4 all scan data is additionally printed to stderr.

The default is n=1.

The option strip-height <n> , where <n> is a floating point number, limits the amount of data that is read from the scanner with one read command. The unit is inch and <n> defaults to 1.0, if this option is not set in the configuration file. If less than <n> inch of data fit into the SCSI buffer, then the smaller value is used and this option has no effect.

If your system has a big SCSI buffer and you want to make use of the whole buffer, increase the value for <n>. For example, if <n> is set to 14.0, no restrictions apply for scanners with a letter, legal or A4 sized scan area.

At present the options apply to all devices in the configuration file and cannnot be set on a per device basis.

A sample configuration file is shown below:

    option dump 1
    option strip-height 1.0
    /dev/scanner
    # this is a comment
    /dev/sge
This backend also supports the new configuration file format which makes it easier to detect scanners under Linux. If you have only one scanner it would be best to use the configuration file for this backend, that is distributed with SANE. This file is shown below:

    option dump 1
    option strip-height 14.0
    scsi * * Scanner
In this case all SCSI-Scanners should be detected automatically.

FILES

@CONFIGDIR@/microtek2.conf
    The backend configuration file.

@LIBDIR@/libsane-microtek2.a
    The static library implementing this backend.

@LIBDIR@/libsane-microtek2.so
    The shared library implementing this backend (present on systems that support dynamic loading).

ENVIRONMENT

SANE_DEBUG_MICROTEK2
    If 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. To see error messages on stderr set SANE_DEBUG_MICROTEK2 to 1 (Remark: The whole debugging levels should be better revised).
    E.g. just say:
    export SANE_DEBUG_MICROTEK2=128

SEE ALSO
sane-scsi(5)

AUTHOR
Bernd Schroeder