sane-microtek2(5)
π NAME π
sane-microtek2 β SANE backend for Microtek scanners with SCSI-2 command set β¨ (this is the sane-microtek2(5) page, and SANE stands for Scanner Access Now Easy π
).
β¨ DESCRIPTION β¨
okay so the sane-microtek2 library implements a SANE (Scanner Access Now Easy) backend that gives you access to Microtek scanners with a SCSI-2 command set. This backend can be considered alpha to beta. Some scanner models are reported to work well, others not β it's giving experimental energy, bestie π.
There exists a different backend for Microtek scanners with SCSI-1 command set. Refer to sane-microtek(5) for details.
And there is partial progress for the ScanMaker 3600. See http://sourceforge.net/projects/sm3600.
At present, the following scanners are known positively to work with this backend β vendor, product id, remark, all of it:
- Microtek β product id
E3+β Parport and SCSI - Microtek β product id
X6β SCSI - Microtek β product id
X6ELβ SCSI - Microtek β product id
X6USBβ USB - Microtek β product id
ScanMaker V300β Parport and SCSI - Microtek β product id
ScanMaker V310β Parport and SCSI - Microtek β product id
ScanMaker V600β Parport and SCSI - Microtek β product id
ScanMaker 330β SCSI - Microtek β product id
ScanMaker 630β SCSI - Microtek β product id
ScanMaker 636β SCSI - Microtek β product id
ScanMaker 9600XLβSCSI; only flatbed mode? - Microtek β product id
Phantom 330CXβ Parport - Microtek β product id
SlimScan C3β Parport - Microtek β product id
SlimScan C6β USB - Microtek β product id
Phantom 636β SCSI - Microtek β product id
Phantom 636CXβ Parport - Microtek β product id
V6USLβ SCSI and USB - Microtek β product id
V6UPLβUSB; not stable - Microtek β product id
X12USLβSCSI; only 8bit color, work in progress - Vobis β product id
HighScanβ SCSI (E3+ based models) - Scanport β product id
SQ300βParport? - Scanport β product id
SQ4836β SCSI - Scanpaq β product id
SQ2030β Parport
Additional information can be found at http://www.sane-project.org/.
If you own a Microtek scanner other than the ones listed above, it may or may not work with SANE! Because equal scanners are sold under different names in different countries your model may be equivalent to one of the above.
The parport scanners work with the ppscsi + onscsi kernel modules. See http://cyberelk.net/tim/parport/ppscsi.html and http://penguin-breeder.org/kernel/download/.
The USB scanners work with the microtek kernel module. You may have to add the vendor and model codes to microtek.c if they aren't yet listed there.
Both parport and USB scanners need the generic SCSI support, so check if you have loaded the scsi_mod and sg modules!
β οΈ bestie, real talk warning β οΈ If you try your scanner for the first time keep an eye on it. If it gets commands that it doesn't understand the scanhead may go beyond the scan area. The scanner then makes strange noises. In this case immediately switch off the scanner or disconnect its power cable to prevent damages!
If your scanner is a different one than the models mentioned above and it is working please tell the author about it. It would be nice if you add a logfile to this information (creation of the logfile: see below).
If your scanner is not working properly you also should create a logfile and send it to the author. He will use the information to improve the backend and possibly make your scanner work.
π How to create the logfile? π
- put the line
option dump 2into yourmicrotek2.conffile or change the existingoption dumpto2 - in a terminal (bash) type:
export SANE_DEBUG_MICROTEK2=30
scanimage -l0 -t0 -x100 -y20 2>scan.log >sout.pnm
You get two files: scan.log contains the logfile and sout.pnm the scanned image (if there was scanned something). Zip them before sending.
π 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 sane-microtek2 driver:
- Color, grayscale, halftone and lineart scans.
- Highlight, midtone, shadow, contrast, brightness, exposure time control, gamma correction, threshold (dependent of the scan mode and the scanner capabilities)
- Transparency media adapter, automatic document feeder
Additional options can be enabled or disabled in the microtek2.conf file. See the configuration section of this manpage.
π¦ 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 /etc/sane.d/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. Global options that are valid for all devices are placed above the device names. Device-specific options are placed under the device name. Note that, except for option dump <n> and option strip-height <n>, the entry in the microtek2.conf file only enables the corresponding option for being showed in the frontend. There, in the frontend, you can switch the options on and off. Currently the following options are supported:
option dump <n>β enables printing of additional information about the SCSI commands that are sent to the scanner to stderr. This option is primarily useful for debugging purpose. This option has to be a global option and is best placed at the top of themicrotek2.conffile.- If
n=1the contents of the command blocks and the results for theINQUIRYandREAD SCANNER ATTRIBUTEScommand are printed to stderr. - If
n=2the contents of the command blocks for all other SCSI commands are printed to stderr, too. - If
n=3the contents of the gamma table is printed, too. - If
n=4all scan data is additionally printed to stderr. - The default is
n=1.
- If
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 to1.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.
- 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
The following options enable or disable additional frontend options. If an option is set to <on> an appropriate option will appear in the frontend.
option no-backtrack-option <on/off>β prevents the scanner head from moving backwards between the read commands. This speeds up scanning. Try it.option lightlid-35 <on/off>β If you use the LightLid-35 transparency adapter you get an advanced option which switches off the flatbed lamp during the scan.option toggle-lamp <on/off>β You get a button in the frontend where you can switch on and off the flatbed lamp.option lineart-autoadjust <on/off>β You can tell the backend to try to determine a good value for the lineart threshold.option backend-calibration <on/off>β Some scanners (e.g. Phantom 330CX and 636CX) need to have calibrated the data by the backend. Try this option if you see vertical stripes in your pictures.option colorbalance-adjust <on/off>β Some scanners (e.g. Phantom 330CX and 636CX) need to have corrected the color balance. If this option is enabled you get advanced options where you can balance the colors. And you will have a button to use the values that the firmware of the scanner provides.
A sample configuration file is shown below:
option dump 1
option strip-height 1.0
/dev/scanner
option no-backtrack-option on
# this is a comment
/dev/sge
option lightlid-35 on
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 following configuration file for this backend:
option dump 1
option strip-height 14.0
option no-backtrack-option on
option backend-calibration on
option lightlid-35 on
option toggle-lamp on
option lineart-autoadjust on
option colorbalance-adjust off
scsi * * Scanner
In this case all SCSI-Scanners should be detected automatically because of the
scsi * * Scanner
line.
π FILES π
/etc/sane.d/microtek2.confβ The backend configuration file./usr/lib64/sane/libsane-microtek2.aβ The static library implementing this backend./usr/lib64/sane/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 of255requests all debug output to be printed. Smaller levels reduce verbosity. To see error messages on stderr setSANE_DEBUG_MICROTEK2to1(Remark: The whole debugging levels should be better revised). E.g. just say:
export SANE_DEBUG_MICROTEK2=128
π SEE ALSO π
π AUTHORS π
- Bernd Schroeder (not active anymore)
- Karsten Festag
<karsten.festag@gmx.de>.
and that's the whole page, bestie π«Ά β from SANE Scanner Access Now Easy, source/version vibe and date: 13 Jul 2008, and the page itself is sane-microtek2(5). periodt π
β¨
π¦ where this page comes from
- fedora 43: sane-backends 1.4.0-4.fc43 Β· GPL-2.0-or-later WITH SANE-exception AND GPL-2.0-or-later AND GPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND IJG AND MIT
- fedora 44: sane-backends 1.4.0-6.fc44 Β· GPL-2.0-or-later WITH SANE-exception AND GPL-2.0-or-later AND GPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND IJG AND MIT
- opensuse-leap 16.0: sane-backends 1.3.0-bp160.1.14 Β· GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
- opensuse-leap 16.0: sane-backends 1.3.0-bp160.1.14 Β· GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
- opensuse-leap 16.0: sane-backends 1.3.0-bp160.1.14 Β· GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
- opensuse-leap 16.0: sane-backends 1.3.0-bp160.1.14 Β· GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms