sane−umax_pp − SANE backend for Umax Astra parallel port flatbed scanners
The sane−umax_pp library implements a SANE (Scanner Access Now Easy) backend that provides access to Umax parallel port flatbed scanners. The following scanners work with this backend:
Genius ColorPage-Life Pro
This backend handles 75x75, 150x150, 300x300, 600x600 and 600x1200 for 1220P/1600P/2000P dpi scan resolutions, and 75x75, 150x150, 300x300 and 300x600 for 610P. In color and gray levels, there is a software lineart mode.
generation models share a newer version of the 610P ASIC
embedded in an EPAT chip. Only parts such as CCD and ADC
change from one to another. They even all reports being UMAX
Astra 1220P via IEEE1284. There isn’t software way to
recognize them properly. Under windows, model is set by the
driver installed, regardless of the hardware.
EPP/ECP MODES ONLY
The current version of the backend uses only EPP or ECP mode to communicate with the scanner. PS/2 mode isn’t implemented. The 610P only use SPP. It is recommended that you set your parallel port to EPP in BIOS with the current version of this backend. You can leave it to ECP or ECP+EPP, but in this case you may not use ppdev but only direct hardware access if you have to use ECP. ECPEPP will only work if you use a 2.4 or 2.6 kernel with ppdev character device support.
This backend does support parport sharing only if you have a kernel with ppdev support.
Note that if you don’t use the ppdev character device, the backend needs to run as root. To allow user access to the scanner run the backend through the network interface (See saned(8) and sane−net(8)). A more relaxed solution (security wise) is to add suid bit to the frontend (See chmod(1)). The backend drop root priviledges as soon as it can, right after gaining direct access to IO ports, which lessen risks when being root.
This backend expects device names of the form:
Where value is :
autodetect all parallel ports and probe them for scanner
autodetect all parallel ports and probe them for scanner, but does not try direct hardware access
uses *BSD ppi device, depending on the number of available parallel port, you have to use /dev/ppi1, /dev/ppi2, ...
uses linux ppdev device, depending on the number of available parallel port, you have to use /dev/parport1, /dev/parport2, ...
does direct hardware access on the given address. Usual values are 0x378, 0x278, 0x3BC In this case, you have to run the scanner as root (*BSD and linux), or with ’IOPL=yes’ on OS/2
NOTE: in all cases, you must have sufficient priviledges to get access to the chosen device or address. Depending on the security settings, devices may not be available for all users. You have to change permissions on the dev/ppi* or /dev/parport* devices.
You can rename any device using the
options. These options apply to the last port option.
Please make sure to edit umax_pp.conf before you use the backend.
The contents of the umax_pp.conf file is a list of options and device names that correspond to Umax scanners. Empty lines and lines starting with a hash mark (#) are ignored.
The eight options supported are red−gain, green−gain, blue−gain, red−offset, green−offset, blue−offset, astra, and buffer.
Options red−gain , green−gain and blue−gain allow you to adjust the sensitivity of your scanner for the given color. Values range from 0 (lowest gain) to 15 (highest). If the advanced option "Gain" isn’t checked in the frontend, the backend does automatic gain calibration, and do not use user provided values.
Options red−offset , green−offset and blue−offset allow you to adjust the offset of your scanner for the given color. Values range from 0 (lowest offset) to 15 (highest).
Option astra allows you to change the model of your scanner. Current auto detection is based on side effects on scanning when using 1220P command set on other models, so it may fail on unknown hardware combination. Valid values are 610, 1220, 1600 and 2000. It is useful only when autodetection fails to detect properly your scanner model. If your scanner work properly but is reported wrongly, let it be that way. The only valid case to change the model is when your scanner produces "black" or "inverted" scans. In this case you can put the model. Be aware that it will prevent scanner model autodetection.
Option buffer allows you to change the size of the scan buffer. The size must be specified in bytes. The default value is 2 megabytes. Decreasing this value will improve the smoothness of progress bar in the frontend, but will stall the scan more often.
The backend configuration file (see also description of SANE_CONFIG_DIR below).
The static library implementing this backend.
The shared library implementing this backend (present on systems that support dynamic loading).
This environment variable specifies the list of directories that may contain the configuration file. Under UNIX, the directories are separated by a colon (‘:’), under OS/2, they are separated by a semi-colon (‘;’). If this variable is not set, the configuration file is searched in two default directories: first, the current working directory (".") and then in /etc/sane.d. If the value of the environment variable ends with the directory separator character, then the default directories are searched after the explicitly specified directories. For example, setting SANE_CONFIG_DIR to "/tmp/config:" would result in directories "tmp/config", ".", and "/etc/sane.d" being searched (in this order).
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.
2 warnings & minor errors
3 additional information
4 debug information
5 code flow (not supported yet)
6 special debug information
This variable sets the debug level for the SANE interface for the Umax ASIC. Note that enabling this will spam your terminal with some million lines of debug output.
8 command blocks
16 detailed code flow
32 dump datafiles
Stéphane Voltz <firstname.lastname@example.org>
Support for the 610P has been made possible thank to an hardware donation by William Stuart.
doesn’t work, please contact me. But I need some
information about your scanner to be able to help you...
run "scanimage −V" to determine this
the backend version and your scanner hardware
run "SANE_DEBUG_UMAX_PP=255 scanimage −L 2>log" as root. If you don’t get any output from the umax_pp backend, make sure a line "umax_pp" is included into your /etc/sane.d/dll.conf. If your scanner isn’t detected, make sure you’ve defined the right port address, or the correct device in your umax_pp.conf.
the name of your scanner/vendor
also a worthy information. Please also include the optical resolution and lamp type of your scanner, both can be found in the manual of your scanner.
any further comments
if you have comments about the documentation (what could be done better), or you think I should know something, please include it.
More Linux Commands
gnutls_pkcs11_obj_get_info(3) - API function (Man Page).....
This function will return information about the PKCS11 certificate such as the label, id as well as token information where the key is stored. When output is te
XtIsComposite(3) - obtain and verify a widget's class.......
The XtClass function returns a pointer to the widgets class structure. The XtSuperclass function returns a pointer to the widgets superclass class structure. Th
winbind_krb5_locator(7) - A plugin for MIT and Heimdal Kerbe
This plugin is part of the samba(7) suite. winbind_krb5_locator is a plugin that permits MIT and Heimdal Kerberos libraries to detect Kerberos Servers (for the
pow10f(3) - base-10 power functions - Linux manual page.....
The pow10() function returns the value of 10 raised to the power x. VERSIONS These functions first appeared in glibc in version 2.1. CONFORMING TO This is a GNU
fputs_unlocked(3) - nonlocking stdio functions (Man Page)...
Each of these functions has the same behavior as its counterpart without the _unlocked suffix, except that they do not use locking (they do not set locks themse
FontCacheQueryVersion(3) - X-TrueType font cache extension c
FontCache is an extension that is used by X-TrueType to cache informations about fonts. FontCacheQueryExtension returns True if the FontCache extension is avail
XTestFakeButtonEvent(3) - XTest extension functions.........
This extension is a minimal set of client and server extensions required to completely test the X11 server with no user intervention. This extension is not inte
argz_add(3) - functions to handle an argz list (Man Page)...
These functions are glibc-specific. An argz vector is a pointer to a character buffer together with a length. The intended interpretation of the character buffe
mvgetch(3ncurses) - get (or push back) characters from curse
The getch, wgetch, mvgetch and mvwgetch, routines read a character from the window. In no-delay mode, if no input is waiting, the value ERR is returned. In dela
wtouchln(3ncurses) - curses refresh control routines........
The touchwin and touchline routines throw away all optimization information about which parts of the window have been touched, by pretending that the entire win
Tk_DrawTextLayout(3) - routines to measure and display singl
These routines are for measuring and displaying single-font, multi-line, justified text. To measure and display simple single-font, single-line strings, refer t
foreach(n) - Iterate over all elements in one or more lists
The foreach command implements a loop where the loop variable(s) take on values from one or more lists. In the simplest case there is one loop variable, varname