2002-11-29 20:15:39 +00:00
|
|
|
|
.TH sane-umax_pp 5 "15 February 2002" "@PACKAGEVERSION@" "SANE Scanner Access Now Easy"
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.IX sane-umax_pp
|
|
|
|
|
.SH NAME
|
2002-11-29 20:15:39 +00:00
|
|
|
|
sane-umax_pp \- SANE backend for Umax parallel port flatbed scanners
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
The
|
|
|
|
|
.B 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:
|
|
|
|
|
.PP
|
|
|
|
|
.RS
|
|
|
|
|
Model:
|
|
|
|
|
.br
|
|
|
|
|
--------------------
|
|
|
|
|
.br
|
|
|
|
|
Astra 1220P
|
|
|
|
|
.br
|
|
|
|
|
HP3200C
|
|
|
|
|
.br
|
|
|
|
|
Astra 1600P
|
|
|
|
|
.br
|
|
|
|
|
Astra 2000P
|
|
|
|
|
.br
|
|
|
|
|
.RE
|
|
|
|
|
.PP
|
|
|
|
|
This backend handles 75x75, 150x150, 300x300, 600x600 and 600x1200 dpi scan
|
2003-01-07 06:16:39 +00:00
|
|
|
|
resolutions, in color and gray levels. There is a software lineart mode.
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.PP
|
|
|
|
|
These scanners share the same ASIC. Only parts such as CCD and ADC change from
|
|
|
|
|
one to another. They even all reports being UMAX Astra 1220P via IEEE1284.
|
2003-01-07 06:16:39 +00:00
|
|
|
|
There isn't software way to recognize them properly. Under windows, model is
|
|
|
|
|
set by the driver installed, regardless of the hardware.
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.PP
|
2001-08-01 06:28:22 +00:00
|
|
|
|
.TP
|
|
|
|
|
.B EPP MODE ONLY
|
2001-05-03 19:45:32 +00:00
|
|
|
|
The current version of the backend use only EPP mode to communicate with the
|
|
|
|
|
scanner. PS/2 and SPP mode aren't implemented. It is recommended that you set
|
|
|
|
|
your parallel port to EPP in BIOS with the current version of this backend.
|
2001-08-01 06:28:22 +00:00
|
|
|
|
ECPEPP will only work if you use a 2.4 kernel with ppdev character device support.
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.PP
|
|
|
|
|
This backend does support parport sharing only
|
|
|
|
|
.I
|
|
|
|
|
if you have a kernel with ppdev support.
|
|
|
|
|
.I
|
|
|
|
|
.PP
|
1994-02-15 08:40:30 +00:00
|
|
|
|
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
|
2001-05-03 19:45:32 +00:00
|
|
|
|
run the backend through the network interface (See saned(1) and sane\-net(5)).
|
2001-06-20 04:12:58 +00:00
|
|
|
|
A more relaxed solution (security wise) is to add suid bit to the frontend
|
2001-05-03 19:45:32 +00:00
|
|
|
|
(See chmod(1)).
|
|
|
|
|
The backend drop root priviledges as soon as it can, right after gaining direct
|
2003-01-07 06:16:39 +00:00
|
|
|
|
access to IO ports, which lessen risks when being root.
|
2001-05-03 19:45:32 +00:00
|
|
|
|
|
|
|
|
|
.SH "DEVICE NAMES"
|
|
|
|
|
This backend expects device names of the form:
|
|
|
|
|
.PP
|
|
|
|
|
.RS
|
1994-02-15 08:40:30 +00:00
|
|
|
|
.I port value
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.RE
|
|
|
|
|
.PP
|
|
|
|
|
Where
|
1994-02-15 08:40:30 +00:00
|
|
|
|
.B value
|
|
|
|
|
is the base address, or the ppdev device name of the port your scanner is attached to.
|
|
|
|
|
Known ports are
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.B 0x378
|
|
|
|
|
(lp1)
|
|
|
|
|
.B 0x278
|
|
|
|
|
(lp2) and
|
|
|
|
|
.B 0x3BC
|
2001-06-20 04:12:58 +00:00
|
|
|
|
(lp0). Note that if you are using a Kernel 2.2.x or better , the first
|
|
|
|
|
parallel port is named lp0 regardless of the base address. However,
|
2001-05-03 19:45:32 +00:00
|
|
|
|
this backend requires the base address of your port. If you are not sure which
|
1994-02-15 08:40:30 +00:00
|
|
|
|
port your scanner is connected to, have a look at your /etc/modules.conf.
|
|
|
|
|
.PP
|
|
|
|
|
If you are using the linux ppdev character device, you will have to specify
|
2003-01-07 06:16:39 +00:00
|
|
|
|
the device name, which is /dev/parport0 for the first parallel port. Check
|
|
|
|
|
the permissions on /dev/paraport0, many linux distributions restrict them
|
|
|
|
|
for root only access. Get sure they are like:
|
|
|
|
|
.br
|
|
|
|
|
crw-rw-rw- 1 root root 99, 0 mai 20 2002 /dev/parport0
|
|
|
|
|
.br
|
|
|
|
|
crw-rw-rw- 1 root root 99, 1 mai 20 2002 /dev/parport1
|
|
|
|
|
.br
|
|
|
|
|
crw-rw-rw- 1 root root 99, 2 mai 20 2002 /dev/parport2
|
|
|
|
|
.br
|
|
|
|
|
crw-rw-rw- 1 root root 99, 3 mai 20 2002 /dev/parport3
|
|
|
|
|
.br
|
|
|
|
|
|
2001-05-03 19:45:32 +00:00
|
|
|
|
|
|
|
|
|
You can rename any device using the
|
|
|
|
|
.PP
|
|
|
|
|
.RS
|
|
|
|
|
.I name devname
|
|
|
|
|
.br
|
|
|
|
|
.I model model
|
|
|
|
|
.br
|
|
|
|
|
.I vendor vendor
|
|
|
|
|
.RE
|
|
|
|
|
.PP
|
1994-02-15 08:40:30 +00:00
|
|
|
|
options. These options apply to the last port option.
|
2001-05-03 19:45:32 +00:00
|
|
|
|
|
|
|
|
|
.SH CONFIGURATION
|
|
|
|
|
Please make sure to edit umax_pp.conf
|
|
|
|
|
.B before
|
|
|
|
|
you use the backend.
|
|
|
|
|
.PP
|
|
|
|
|
The contents of the
|
|
|
|
|
.B 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.
|
|
|
|
|
.PP
|
|
|
|
|
The height options supported are
|
2003-02-25 07:04:12 +00:00
|
|
|
|
.BR red-brightness ,
|
|
|
|
|
.BR green-brightness ,
|
|
|
|
|
.BR blue-brightness ,
|
|
|
|
|
.BR red-contrast ,
|
|
|
|
|
.BR green-contrast ,
|
|
|
|
|
.BR blue-contrast ,
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.BR astra ,
|
|
|
|
|
and
|
|
|
|
|
.BR buffer .
|
|
|
|
|
|
|
|
|
|
Options
|
2003-02-25 07:04:12 +00:00
|
|
|
|
.B red-brightness
|
2001-05-03 19:45:32 +00:00
|
|
|
|
,
|
2003-02-25 07:04:12 +00:00
|
|
|
|
.B green-brightness
|
2001-05-03 19:45:32 +00:00
|
|
|
|
and
|
2003-02-25 07:04:12 +00:00
|
|
|
|
.B blue-brightness
|
2001-05-03 19:45:32 +00:00
|
|
|
|
allow you to adjust the sensitivy of your scanner for the given color. Values
|
2003-02-25 07:04:12 +00:00
|
|
|
|
range from 0 (lowest brightness) to 15 (highest). The "Brightness" option isn't
|
|
|
|
|
checked in the frontend, the backend does automatic brightness calibration.
|
|
|
|
|
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.PP
|
|
|
|
|
|
|
|
|
|
Options
|
2003-02-25 07:04:12 +00:00
|
|
|
|
.B red-contrast
|
2001-05-03 19:45:32 +00:00
|
|
|
|
,
|
2003-02-25 07:04:12 +00:00
|
|
|
|
.B green-contrast
|
2001-05-03 19:45:32 +00:00
|
|
|
|
and
|
2003-02-25 07:04:12 +00:00
|
|
|
|
.B blue-contrast
|
|
|
|
|
allow you to adjust the contrast of your scanner for the given color. Values
|
|
|
|
|
range from 0 (lowest contrast) to 15 (highest).
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.PP
|
|
|
|
|
|
|
|
|
|
Option
|
|
|
|
|
.B 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 unkown hardware combination. Valid values are 1220, 1600
|
1994-02-15 08:40:30 +00:00
|
|
|
|
and 2000. It is usefull only 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
|
2003-01-07 06:16:39 +00:00
|
|
|
|
'inverted' scans. In this case you can put the model. Be aware that it will
|
1994-02-15 08:40:30 +00:00
|
|
|
|
prevent autodetection.
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.PP
|
|
|
|
|
|
|
|
|
|
Option
|
|
|
|
|
.B buffer
|
|
|
|
|
allows you to change the size of the scan buffer. The size must be specified in
|
2003-01-07 06:16:39 +00:00
|
|
|
|
bytes. The default value is 2 megabytes. Decreasing this value will improve the
|
|
|
|
|
progress status reporting in the frontend, but will stall the scan more often.
|
|
|
|
|
|
2001-05-03 19:45:32 +00:00
|
|
|
|
.PP
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.SH FILES
|
|
|
|
|
.TP
|
|
|
|
|
.I @CONFIGDIR@/umax_pp.conf
|
|
|
|
|
The backend configuration file (see also description of
|
|
|
|
|
.B SANE_CONFIG_DIR
|
|
|
|
|
below).
|
|
|
|
|
.TP
|
|
|
|
|
.I @LIBDIR@/libsane\-umax_pp.a
|
|
|
|
|
The static library implementing this backend.
|
|
|
|
|
.TP
|
|
|
|
|
.I @LIBDIR@/libsane\-umax_pp.so
|
|
|
|
|
The shared library implementing this backend (present on systems that
|
|
|
|
|
support dynamic loading).
|
|
|
|
|
|
|
|
|
|
.SH ENVIRONMENT
|
|
|
|
|
.TP
|
|
|
|
|
.B SANE_CONFIG_DIR
|
|
|
|
|
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 @CONFIGDIR@. 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
|
|
|
|
|
.B SANE_CONFIG_DIR
|
|
|
|
|
to "/tmp/config:" would result in directories "tmp/config", ".", and
|
|
|
|
|
"@CONFIGDIR@" being searched (in this order).
|
|
|
|
|
.TP
|
|
|
|
|
.B SANE_DEBUG_UMAX_PP
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
.PP
|
|
|
|
|
.RS
|
|
|
|
|
level debug output
|
|
|
|
|
.br
|
|
|
|
|
------- ------------------------------
|
|
|
|
|
.br
|
|
|
|
|
0 nothing
|
|
|
|
|
.br
|
|
|
|
|
1 errors
|
|
|
|
|
.br
|
|
|
|
|
2 warnings & minor errors
|
|
|
|
|
.br
|
|
|
|
|
3 additional information
|
|
|
|
|
.br
|
|
|
|
|
4 debug information
|
|
|
|
|
.br
|
|
|
|
|
5 code flow (not supported yet)
|
|
|
|
|
.br
|
|
|
|
|
6 special debug information
|
|
|
|
|
.RE
|
|
|
|
|
.PP
|
|
|
|
|
.TP
|
|
|
|
|
.B SANE_DEBUG_UMAX_PP_LOW
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
.PP
|
|
|
|
|
.RS
|
|
|
|
|
level debug output
|
|
|
|
|
.br
|
|
|
|
|
------- -------------------------------
|
|
|
|
|
.br
|
|
|
|
|
0 nothing
|
|
|
|
|
.br
|
|
|
|
|
1 errors
|
|
|
|
|
.br
|
|
|
|
|
8 command blocks
|
|
|
|
|
.br
|
|
|
|
|
16 detailed code flow
|
|
|
|
|
.br
|
|
|
|
|
32 dump datafiles
|
|
|
|
|
.br
|
|
|
|
|
255 everything
|
|
|
|
|
.RE
|
|
|
|
|
.PP
|
|
|
|
|
|
|
|
|
|
.PP
|
|
|
|
|
.SH "SEE ALSO"
|
2001-06-10 14:28:45 +00:00
|
|
|
|
sane(7), sane\-net(5), saned(1)
|
2001-05-03 19:45:32 +00:00
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
|
For latest bug fixes and information see
|
|
|
|
|
.I http://umax1220p.sourceforge.net/
|
|
|
|
|
|
|
|
|
|
.SH AUTHOR
|
|
|
|
|
St<EFBFBD>phane VOLTZ <svoltz@wanadoo.fr>, man page derived from mustek_pp man page
|
|
|
|
|
by Jochen Eisinger <jochen.eisinger@gmx.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.SH BUG REPORTS
|
|
|
|
|
If something doesn't work, please contact me. But I need some information about
|
|
|
|
|
your scanner to be able to help you...
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
|
.I SANE version
|
|
|
|
|
run "scanimage -V" to determine this
|
|
|
|
|
.TP
|
|
|
|
|
.I the backend version and your scanner hardware
|
|
|
|
|
run "SANE_DEBUG_UMAX=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 @CONFIGDIR@/dll.conf.
|
|
|
|
|
If your scanner isn't detected, make sure you've defined the right port address
|
|
|
|
|
in your umax_pp.conf.
|
|
|
|
|
.TP
|
|
|
|
|
.I 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.
|
|
|
|
|
.TP
|
|
|
|
|
.I 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.
|