1# Plustek-SANE Backend configuration file
2# For use with LM9831/2/3 based USB scanners
3#
4
5# each device needs at least two lines:
6# - [usb] vendor-ID and product-ID
7# - device devicename
8# i.e. for Plustek (0x07B3) UT12/16/24 (0x0017)
9# [usb] 0x07B3 0x0017
10# device /dev/usbscanner
11# or
12# device libusb:bbb:ddd
13# where bbb is the busnumber and ddd the device number
14# make sure that your user has access to /proc/bus/usb/bbb/ddd
15#
16# additionally you can specify some options
17# warmup, lOffOnEnd, lampOff
18#
19# For autodetection use
20# [usb]
21# device /dev/usbscanner
22#
23# or simply
24# [usb]
25#
26# or if you want a specific device but you have no idea about the
27# device node or you use libusb, simply set vendor- and product-ID
28# [usb] 0x07B3 0x0017
29# device auto
30#
31# NOTE: autodetection is safe, as it uses the info it got
32#       from the USB subsystem. If you're not using the
33#       autodetection, you MUST have attached that device
34#       at your USB-port, that you have specified...
35#
36
37[usb]
38
39#
40# options for the previous USB entry
41#
42# switch lamp off after xxx secs, 0 disables the feature
43# (can also be set via frontend)
44option lampOff 300
45
46# warmup period in seconds, 0 means no warmup, -1 means auto-warmup
47# (can also be set via frontend)
48option warmup -1
49
50# 0 means leave lamp-status untouched, not 0 means switch off
51# on sane_close
52# (can also be set via frontend)
53option lOffOnEnd 1
54
55#
56# options to tweak the image start-position
57# (WARNING: there's no internal range check!!!)
58#
59# for the normal scan area
60#
61option posOffX 0
62option posOffY 0
63
64# for transparencies
65option tpaOffX 0
66option tpaOffY 0
67
68# for negatives
69option negOffX 0
70option negOffY 0
71
72#
73# for setting the calibration strip position
74# (WARNING: there's no internal range check!!!)
75# -1 means use built in
76# (can also be set via frontend)
77option posShadingY -1
78option tpaShadingY -1
79option negShadingY -1
80
81#
82# to invert the negatives, 0 disables the feature
83#
84option invertNegatives 0
85
86#
87# to disable the internal sensor speedup function,
88# 1 disables the feature
89#
90option disableSpeedup 0
91
92#
93# to save/restore coarse calibration data
94# (can also be set via frontend)
95option cacheCalData 0
96
97#
98# use alternate calibration routines
99#
100option altCalibration 0
101
102#
103# for skipping whole calibration step
104#
105option skipCalibration 0
106
107#
108# for skipping entire fine calibration step
109# coarse calibration is done
110#
111option skipFine 0
112
113#
114# discard the result of the fine white calibration
115#
116option skipFineWhite 0
117
118#
119# some scanners have a dark calibration strip, in
120# general this one should be used for calibration.
121# As this could cause some trouble, this option
122# overrides that and the dark calibration will be
123# done by switching the lamp off
124#
125option skipDarkStrip 0
126
127# for replacing the gain values found during coarse
128# calibration
129# (can also be set via frontend)
130option red_gain   -1
131option green_gain -1
132option blue_gain  -1
133
134# for replacing the offset values found during coarse
135# calibration
136# (can also be set via frontend)
137option red_offset   -1
138option green_offset -1
139option blue_offset  -1
140
141#
142# for replacing the default lampoff settings, this
143# works only for CIS devices like CanoScan LiDE20
144# (can also be set via frontend)
145option red_lampoff   -1
146option green_lampoff -1
147option blue_lampoff  -1
148
149#
150# for adjusting the default gamma values
151# (can also be set via frontend)
152option redGamma         1.0
153option greenGamma       1.0
154option blueGamma        1.0
155option grayGamma        1.0
156
157#
158# to enable TPA (EPSON or UMAX, if autodetection fails)
159# 0 means default behaviour as specified in the internal tables
160# 1 means enable (needed for UMAX 3450)
161option enableTPA 0
162
163#
164# model override functionality, currently only available for
165# Mustek devices, using NSCs' vendor ID: 0x0400 and
166# also their product ID: 0x1000 (LM9831) 0x1001 (LM9832)
167#
168# mov/PID    |    0x1000   |   0x1001
169# ---------------------------------------
170# 0 (default)| BearPaw1200 | BearPaw 2400
171# 1          |   ignored   | BearPaw 1200
172#
173option mov 0
174
175#
176# and of course the device-name
177#
178# device /dev/usbscanner
179device auto
180
181#
182# to define a new device, start with a new section:
183# [usb]
184#
185