summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man5/sane-umax_pp.5
blob: 76c72a6797d2d70d2faad21126e3fe8af1f986ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
.TH "sane\-umax_pp" "5" "14 Jul 2008" "" "SANE Scanner Access Now Easy"
.IX sane\-umax_pp
.SH "NAME"
sane\-umax_pp \- SANE backend for Umax Astra parallel port flatbed scanners
.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 610P
.br
Astra 1220P
.br
HP3200C
.br
Astra 1600P
.br
Astra 2000P
.br
Genius ColorPage-Life Pro
.br
.RE
.PP
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.
.PP
The new 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 a software method to recognize them properly. Under windows, model is
set by the driver installed, regardless of the hardware.
.PP
.TP
.B 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.
.PP
This backend does support parport sharing only
.I
if you have a kernel with ppdev support.
.I
.PP
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
.BR saned (8)
and
.BR sane\-net (5)).
A more relaxed solution (security wise) is to add suid bit to the frontend
(See
.BR chmod (1)).
The backend drop root privileges as soon as it can, right after gaining direct
access to IO ports, which lessen risks when being root.

.SH "DEVICE NAMES"
This backend expects device names of the form:
.PP
.RS
.I port value
.RE
.PP
Where
\fBvalue\fR is :

.RS
.TP
auto
autodetect all parallel ports and probe
them for scanner
.TP
safe\-auto
autodetect all parallel ports and probe
them for scanner, but does not try direct
hardware access
.TP
.I /dev/ppi0
uses *BSD ppi device, depending on the
number of available parallel port, you
have to use
.IR /dev/ppi1 ,
.IR /dev/ppi2 ", ..."
.TP
.I /dev/parport0
uses Linux ppdev device, depending on the
number of available parallel port, you
have to use
.IR /dev/parport1 ,
.IR /dev/parport2 ", ..."
.TP
0x378
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
.PP
.RE
\fBNOTE:\fR in all cases, you must have sufficient privileges
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
.I /dev/ppi*
or
.I /dev/parport*
devices.
.PP
.RE
You can rename any device using the
.PP
.RS
.I name devname
.br
.I model model
.br
.I vendor vendor
.RE
.PP
options. These options apply to the last port option.

.SH "CONFIGURATION"
Please make sure to edit
.I umax_pp.conf
.B before
you use the backend.
.PP
The contents of the
.I 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 eight options supported are
.BR red\-gain ,
.BR green\-gain ,
.BR blue\-gain ,
.BR red\-offset ,
.BR green\-offset ,
.BR blue\-offset ,
.BR astra ,
and
.BR buffer .

Options
.BR red\-gain ,
.B green\-gain
and
.B 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.

.PP

Options
.B red\-offset
,
.B green\-offset
and
.B blue\-offset
allow you to adjust the offset of your scanner for the given color. Values
range from 0 (lowest offset) to 15 (highest).
.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 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.
.PP

Option
.B 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.

.PP



.SH "FILES"
.TP
.I /etc/sane.d/umax_pp.conf
The backend configuration file (see also description of
.B SANE_CONFIG_DIR
below).
.TP
.I /usr/lib/x86_64-linux-gnu/sane/libsane\-umax_pp.a
The static library implementing this backend.
.TP
.I /usr/lib/x86_64-linux-gnu/sane/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.  On *NIX systems, 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
.IR /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
.B SANE_CONFIG_DIR
to "/tmp/config:" would result in directories
.IR tmp/config ,
.IR . ,
and
.I /etc/sane.d
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
.ft CR
.nf
level   debug output
\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
 0       nothing
 1       errors
 2       warnings & minor errors
 3       additional information
 4       debug information
 5       code flow (not supported yet)
 6       special debug information
.fi
.ft R
.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
.ft CR
.nf
level   debug output
\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
 0       nothing
 1       errors
 8       command blocks
 16      detailed code flow
 32      dump datafiles
 255     everything
.fi
.ft R
.RE
.PP

.PP
.SH "SEE ALSO"
.BR sane (7),
.BR sane\-net (5),
.BR saned (8)

.TP
For latest bug fixes and information see
.I http://umax1220p.sourceforge.net/

.SH "AUTHOR"
St\['e]phane Voltz
.RI < stef.dev@free.fr >

.SH "CREDITS"
Support for the 610P has been made possible thank to an hardware donation
by William Stuart.

.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
.I "scanimage \-V"
to determine this
.TP
.I the backend version and your scanner hardware
Run
.I "SANE_DEBUG_UMAX_PP=255 scanimage \-L 2>log"
as root. If you don't get any output
from the
.B sane\-umax_pp
backend, make sure a line "umax_pp" is included into your
.I /etc/sane.d/dll.conf
file.
If your scanner isn't detected, make sure you've defined the right port address, or the
correct device
in your
.I umax_pp.conf
file.
.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.