[simple-scan] Epson GT-1500 resolution fix. New logs for Epson GT-1500 and Brother ADS-2200.



commit b5859e38833c9a39dcd8d553ab675277086a1a4e
Author: Arūnas Rukšnaitis <arunas ruksnaitis softar uk>
Date:   Tue Mar 9 14:53:05 2021 +0000

    Epson GT-1500 resolution fix. New logs for Epson GT-1500 and Brother ADS-2200.

 data/logs/Brother_ADS-2200.log |  53 +++++++++
 data/logs/Epson_GT-1500.log    | 238 +++++++++++++++++++++++++++++++++++++++++
 src/scanner.vala               |  10 +-
 3 files changed, 300 insertions(+), 1 deletion(-)
---
diff --git a/data/logs/Brother_ADS-2200.log b/data/logs/Brother_ADS-2200.log
new file mode 100644
index 00000000..3d008d2b
--- /dev/null
+++ b/data/logs/Brother_ADS-2200.log
@@ -0,0 +1,53 @@
+[+0.00s] DEBUG: simple-scan.vala:1720: Starting simple-scan 3.36.3, PID=313755
+[+0.00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
+[+0.02s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for 
‘gsettings-backend’
+[+0.08s] DEBUG: app-window.vala:1906: Loading state from /home/arunasr/.cache/simple-scan/state
+[+0.08s] DEBUG: app-window.vala:1885: Restoring window to 2648x1604 pixels
+[+0.15s] DEBUG: scanner.vala:1539: sane_init () -> SANE_STATUS_GOOD
+[+0.15s] DEBUG: scanner.vala:1545: SANE version 1.0.29
+[+0.15s] DEBUG: scanner.vala:1606: Requesting redetection of scan devices
+[+0.15s] DEBUG: scanner.vala:828: Processing request
+[+0.57s] DEBUG: app-window.vala:1981: Saving state to /home/arunasr/.cache/simple-scan/state
+[+0.97s] DEBUG: scanner.vala:341: sane_get_devices () -> SANE_STATUS_GOOD
+[+0.97s] DEBUG: scanner.vala:353: Device: name="BrotherADS2200:libusb:002:015" vendor="Brother" 
model="ADS2200" type="USB scanner"
+[+0.97s] DEBUG: scanner.vala:353: Device: name="epkowa:interpreter:002:010" vendor="Epson" model="GT-1500" 
type="flatbed scanner"
+[+1.27s] DEBUG: app-window.vala:1981: Saving state to /home/arunasr/.cache/simple-scan/state
+[+4.80s] DEBUG: simple-scan.vala:1536: Requesting scan at 150 dpi from device 'BrotherADS2200:libusb:002:015'
+[+4.80s] DEBUG: scanner.vala:1674: Scanner.scan ("BrotherADS2200:libusb:002:015", dpi=150, 
scan_mode=ScanMode.COLOR, depth=8, type=adf-front, paper_width=2100, paper_height=2970, brightness=21, 
contrast=32, delay=10000ms)
+[+4.80s] DEBUG: scanner.vala:828: Processing request
+[+5.12s] DEBUG: scanner.vala:889: sane_open ("BrotherADS2200:libusb:002:015") -> SANE_STATUS_GOOD
+[+5.12s] DEBUG: scanner.vala:910: sane_get_option_descriptor (0)
+[+5.12s] DEBUG: scanner.vala:760: Option 0: title='Number of options' type=int size=4 cap=soft-detect
+[+5.12s] DEBUG: scanner.vala:763:   Description: Read-only option that specifies how many options a specific 
devices supports.
+[+5.12s] DEBUG: scanner.vala:910: sane_get_option_descriptor (1)
+[+5.12s] DEBUG: scanner.vala:760: Option 1: name='tl-x' title='Top-left x' type=fixed size=4 unit=mm 
min=0.000000, max=165.100006, quant=0 cap=soft-select,soft-detect
+[+5.12s] DEBUG: scanner.vala:763:   Description: Top-left x position of scan area.
+[+5.12s] DEBUG: scanner.vala:910: sane_get_option_descriptor (2)
+[+5.12s] DEBUG: scanner.vala:760: Option 2: name='tl-y' title='Top-left y' type=fixed size=4 unit=mm 
min=0.000000, max=304.800003, quant=0 cap=soft-select,soft-detect
+[+5.12s] DEBUG: scanner.vala:763:   Description: Top-left y position of scan area.
+[+5.12s] DEBUG: scanner.vala:910: sane_get_option_descriptor (3)
+[+5.12s] DEBUG: scanner.vala:760: Option 3: name='br-x' title='Bottom-right x' type=fixed size=4 unit=mm 
min=50.799988, max=215.899994, quant=0 cap=soft-select,soft-detect
+[+5.12s] DEBUG: scanner.vala:763:   Description: Bottom-right x position of scan area.
+[+5.12s] DEBUG: scanner.vala:910: sane_get_option_descriptor (4)
+[+5.12s] DEBUG: scanner.vala:760: Option 4: name='br-y' title='Bottom-right y' type=fixed size=4 unit=mm 
min=50.799988, max=355.599991, quant=0 cap=soft-select,soft-detect
+[+5.12s] DEBUG: scanner.vala:763:   Description: Bottom-right y position of scan area.
+[+5.12s] DEBUG: scanner.vala:910: sane_get_option_descriptor (5)
+[+5.12s] DEBUG: scanner.vala:760: Option 5: name='resolution' title='Scan resolution' type=int size=4 
unit=dpi values=[100, 150, 200, 300, 400, 600] cap=soft-select,soft-detect
+[+5.12s] DEBUG: scanner.vala:763:   Description: Sets the resolution of the scanned image.
+[+5.12s] DEBUG: scanner.vala:910: sane_get_option_descriptor (6)
+[+5.12s] DEBUG: scanner.vala:760: Option 6: name='mode' title='Scan mode' type=string size=256 
values=["Black & White", "Gray", "24 bit Color"] cap=soft-select,soft-detect
+[+5.12s] DEBUG: scanner.vala:763:   Description: Selects the scan mode (e.g., lineart, monochrome, or color).
+[+5.12s] DEBUG: scanner.vala:910: sane_get_option_descriptor (7)
+[+5.12s] DEBUG: scanner.vala:760: Option 7: name='source' title='Scan source' type=string size=256 
values=["Automatic Document Feeder(left aligned)", "Automatic Document Feeder(left aligned,Duplex)"] 
cap=soft-select,soft-detect
+[+5.12s] DEBUG: scanner.vala:763:   Description: Selects the scan source (such as a document-feeder).
+[+5.12s] DEBUG: scanner.vala:910: sane_get_option_descriptor (8)
+[+5.12s] DEBUG: scanner.vala:571: sane_control_option (7, SANE_ACTION_SET_VALUE, "Automatic Document 
Feeder(left aligned)") -> (SANE_STATUS_GOOD, "Automatic Document Feeder(left aligned)")
+[+5.12s] WARNING: scanner.vala:1048: Unable to set Color mode, please file a bug
+[+5.12s] DEBUG: scanner.vala:483: sane_control_option (5, SANE_ACTION_SET_VALUE, 150) -> (SANE_STATUS_GOOD, 
150)
+[+5.12s] DEBUG: scanner.vala:523: sane_control_option (3, SANE_ACTION_SET_VALUE, 210.000000) -> 
(SANE_STATUS_GOOD, 210.000000)
+[+5.12s] DEBUG: scanner.vala:523: sane_control_option (4, SANE_ACTION_SET_VALUE, 297.000000) -> 
(SANE_STATUS_GOOD, 297.000000)
+[+5.13s] DEBUG: app-window.vala:1981: Saving state to /home/arunasr/.cache/simple-scan/state
+[+9.53s] DEBUG: scanner.vala:1285: sane_start (page=0, pass=0) -> SANE_STATUS_GOOD
+[+9.53s] DEBUG: scanner.vala:1312: sane_get_parameters () -> SANE_STATUS_GOOD
+[+9.53s] DEBUG: scanner.vala:1324: Parameters: format=SANE_FRAME_GRAY last_frame=SANE_TRUE 
bytes_per_line=155 pixels_per_line=1240 lines=1753 depth=1
+[+9.53s] DEBUG: simple-scan.vala:1431: Page is 1240 pixels wide, 1753 pixels high, 1 bits per pixel
diff --git a/data/logs/Epson_GT-1500.log b/data/logs/Epson_GT-1500.log
new file mode 100644
index 00000000..830b505e
--- /dev/null
+++ b/data/logs/Epson_GT-1500.log
@@ -0,0 +1,238 @@
+[+0.00s] DEBUG: simple-scan.vala:1720: Starting simple-scan 3.36.3, PID=308842
+[+0.00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
+[+0.02s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for 
‘gsettings-backend’
+[+0.07s] DEBUG: app-window.vala:1906: Loading state from /home/arunasr/.cache/simple-scan/state
+[+0.07s] DEBUG: app-window.vala:1885: Restoring window to 2648x1604 pixels
+[+0.15s] DEBUG: scanner.vala:1539: sane_init () -> SANE_STATUS_GOOD
+[+0.15s] DEBUG: scanner.vala:1545: SANE version 1.0.29
+[+0.15s] DEBUG: scanner.vala:1606: Requesting redetection of scan devices
+[+0.15s] DEBUG: scanner.vala:828: Processing request
+[+0.57s] DEBUG: app-window.vala:1981: Saving state to /home/arunasr/.cache/simple-scan/state
+[+1.08s] DEBUG: scanner.vala:341: sane_get_devices () -> SANE_STATUS_GOOD
+[+1.08s] DEBUG: scanner.vala:353: Device: name="epkowa:interpreter:002:010" vendor="Epson" model="GT-1500" 
type="flatbed scanner"
+[+1.38s] DEBUG: app-window.vala:1981: Saving state to /home/arunasr/.cache/simple-scan/state
+[+27.76s] DEBUG: simple-scan.vala:1536: Requesting scan at 150 dpi from device 'epkowa:interpreter:002:010'
+[+27.76s] DEBUG: scanner.vala:1674: Scanner.scan ("epkowa:interpreter:002:010", dpi=150, 
scan_mode=ScanMode.COLOR, depth=8, type=adf-front, paper_width=2100, paper_height=2970, brightness=21, 
contrast=32, delay=10000ms)
+[+27.76s] DEBUG: scanner.vala:828: Processing request
+[+27.77s] DEBUG: scanner.vala:889: sane_open ("epkowa:interpreter:002:010") -> SANE_STATUS_GOOD
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (0)
+[+27.77s] DEBUG: scanner.vala:760: Option 0: name='(null)' title='Number of options' type=bool size=4 
cap=soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Read-only option that specifies how many options a 
specific devices supports.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (1)
+[+27.77s] DEBUG: scanner.vala:760: Option 1: name='(null)' title='Scan Mode' type=group size=4
+[+27.77s] DEBUG: scanner.vala:763:   Description:
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (2)
+[+27.77s] DEBUG: scanner.vala:760: Option 2: name='mode' title='Scan mode' type=string size=7 
values=["Binary", "Gray", "Color"] cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Selects the scan mode (e.g., lineart, monochrome, or 
color).
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (3)
+[+27.77s] DEBUG: scanner.vala:760: Option 3: name='depth' title='Bit depth' type=int size=4 values=[8, 16] 
cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Number of bits per sample, typical values are 1 for 
"line-art" and 8 for multibit scans.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (4)
+[+27.77s] DEBUG: scanner.vala:760: Option 4: name='halftoning' title='Halftoning' type=string size=26 
values=["None", "Halftone A (Hard Tone)", "Halftone B (Soft Tone)", "Halftone C (Net Screen)"] 
cap=soft-select,soft-detect,inactive
+[+27.77s] DEBUG: scanner.vala:763:   Description: Selects the halftone.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (5)
+[+27.77s] DEBUG: scanner.vala:760: Option 5: name='dropout' title='Dropout' type=string size=6 
values=["None", "Red", "Green", "Blue"] cap=soft-select,soft-detect,inactive,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Selects the dropout.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (6)
+[+27.77s] DEBUG: scanner.vala:760: Option 6: name='brightness-method' title='Brightness Method' type=string 
size=9 values=["iscan", "gimp"] cap=soft-select,soft-detect,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Selects a method to change the brightness of the acquired 
image.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (7)
+[+27.77s] DEBUG: scanner.vala:760: Option 7: name='brightness' title='Brightness' type=int size=4 min=-100, 
max=100, quant=1 cap=soft-select,soft-detect,emulated
+[+27.77s] DEBUG: scanner.vala:763:   Description: Controls the brightness of the acquired image.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (8)
+[+27.77s] DEBUG: scanner.vala:760: Option 8: name='contrast' title='Contrast' type=int size=4 min=-100, 
max=100, quant=1 cap=soft-select,soft-detect,emulated
+[+27.77s] DEBUG: scanner.vala:763:   Description: Controls the contrast of the acquired image.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (9)
+[+27.77s] DEBUG: scanner.vala:760: Option 9: name='sharpness' title='Sharpness' type=int size=4 min=-2, 
max=2, quant=0 cap=soft-select,soft-detect,inactive
+[+27.77s] DEBUG: scanner.vala:763:   Description:
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (10)
+[+27.77s] DEBUG: scanner.vala:760: Option 10: name='gamma-correction' title='Gamma Correction' type=string 
size=25 values=["User defined (Gamma=1.0)", "User defined (Gamma=1.8)"] cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Selects the gamma correction value from a list of 
pre-defined devices or the user defined table, which can be downloaded to the scanner
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (11)
+[+27.77s] DEBUG: scanner.vala:760: Option 11: name='color-correction' title='Color correction' type=string 
size=13 values=["User defined"] cap=soft-select,soft-detect,inactive,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Sets the color correction table for the selected output 
device.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (12)
+[+27.77s] DEBUG: scanner.vala:760: Option 12: name='resolution' title='Scan resolution' type=int size=4 
unit=dpi values=[600] cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Sets the resolution of the scanned image.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (13)
+[+27.77s] DEBUG: scanner.vala:760: Option 13: name='x-resolution' title='X-resolution' type=int size=4 
unit=dpi values=[150, 225, 300, 600, 900, 1200] cap=soft-select,soft-detect,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Sets the horizontal resolution of the scanned image.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (14)
+[+27.77s] DEBUG: scanner.vala:760: Option 14: name='y-resolution' title='Y-resolution' type=int size=4 
unit=dpi values=[150, 225, 300, 600, 900, 1200, 1800, 2400] cap=soft-select,soft-detect,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Sets the vertical resolution of the scanned image.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (15)
+[+27.77s] DEBUG: scanner.vala:760: Option 15: name='threshold' title='Threshold' type=int size=4 min=0, 
max=255, quant=0 cap=soft-select,soft-detect,inactive
+[+27.77s] DEBUG: scanner.vala:763:   Description: Select minimum-brightness to get a white point
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (16)
+[+27.77s] DEBUG: scanner.vala:760: Option 16: name='(null)' title='Advanced' type=group size=4 cap=advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description:
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (17)
+[+27.77s] DEBUG: scanner.vala:760: Option 17: name='mirror' title='Mirror image' type=bool size=4 
cap=soft-select,soft-detect,inactive
+[+27.77s] DEBUG: scanner.vala:763:   Description: Mirror the image.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (18)
+[+27.77s] DEBUG: scanner.vala:760: Option 18: name='speed' title='Scan speed' type=bool size=4 
cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Determines the speed at which the scan proceeds.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (19)
+[+27.77s] DEBUG: scanner.vala:760: Option 19: name='auto-area-segmentation' title='Auto area segmentation' 
type=bool size=4 cap=soft-select,soft-detect,inactive
+[+27.77s] DEBUG: scanner.vala:763:   Description:
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (20)
+[+27.77s] DEBUG: scanner.vala:760: Option 20: name='short-resolution' title='Short resolution list' 
type=bool size=4 cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Display short resolution list
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (21)
+[+27.77s] DEBUG: scanner.vala:760: Option 21: name='zoom' title='Zoom' type=int size=4 min=50, max=200, 
quant=0 cap=soft-select,soft-detect,inactive
+[+27.77s] DEBUG: scanner.vala:763:   Description: Defines the zoom factor the scanner will use
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (22)
+[+27.77s] DEBUG: scanner.vala:760: Option 22: name='red-gamma-table' title='Red intensity' type=int 
size=1024 min=0, max=255, quant=0 cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Gamma-correction table for the red band.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (23)
+[+27.77s] DEBUG: scanner.vala:760: Option 23: name='green-gamma-table' title='Green intensity' type=int 
size=1024 min=0, max=255, quant=0 cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Gamma-correction table for the green band.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (24)
+[+27.77s] DEBUG: scanner.vala:760: Option 24: name='blue-gamma-table' title='Blue intensity' type=int 
size=1024 min=0, max=255, quant=0 cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Gamma-correction table for the blue band.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (25)
+[+27.77s] DEBUG: scanner.vala:760: Option 25: name='wait-for-button' title='Wait for Button' type=bool 
size=4 cap=soft-select,soft-detect,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: After sending the scan command, wait until the button on 
the scanner is pressed to actually start the scan process.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (26)
+[+27.77s] DEBUG: scanner.vala:760: Option 26: name='monitor-button' title='Monitor Button' type=bool size=4 
cap=soft-detect,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Indicates whether a button on the scanner has been pressed.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (27)
+[+27.77s] DEBUG: scanner.vala:760: Option 27: name='polling-time' title='Polling Time' type=int size=4 
unit=microseconds cap=soft-detect,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Time between queries when waiting for device state changes.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (28)
+[+27.77s] DEBUG: scanner.vala:760: Option 28: name='needs-polling' title='Needs Polling' type=bool size=4 
cap=soft-detect,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Indicates whether the scanner needs to poll.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (29)
+[+27.77s] DEBUG: scanner.vala:760: Option 29: name='(null)' title='Color correction coefficients' type=group 
size=4 cap=advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Matrix multiplication of RGB
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (30)
+[+27.77s] DEBUG: scanner.vala:760: Option 30: name='cct-1' title='Red' type=fixed size=4 min=-2.000000, 
max=2.000000, quant=0 cap=soft-select,soft-detect,emulated,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Controls red level
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (31)
+[+27.77s] DEBUG: scanner.vala:760: Option 31: name='cct-2' title='Shift green to red' type=fixed size=4 
min=-2.000000, max=2.000000, quant=0 cap=soft-select,soft-detect,emulated,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Adds to red based on green level
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (32)
+[+27.77s] DEBUG: scanner.vala:760: Option 32: name='cct-3' title='Shift blue to red' type=fixed size=4 
min=-2.000000, max=2.000000, quant=0 cap=soft-select,soft-detect,emulated,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Adds to red based on blue level
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (33)
+[+27.77s] DEBUG: scanner.vala:760: Option 33: name='cct-4' title='Shift red to green' type=fixed size=4 
min=-2.000000, max=2.000000, quant=0 cap=soft-select,soft-detect,emulated,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Adds to green based on red level
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (34)
+[+27.77s] DEBUG: scanner.vala:760: Option 34: name='cct-5' title='Green' type=fixed size=4 min=-2.000000, 
max=2.000000, quant=0 cap=soft-select,soft-detect,emulated,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Controls green level
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (35)
+[+27.77s] DEBUG: scanner.vala:760: Option 35: name='cct-6' title='Shift blue to green' type=fixed size=4 
min=-2.000000, max=2.000000, quant=0 cap=soft-select,soft-detect,emulated,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Adds to green based on blue level
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (36)
+[+27.77s] DEBUG: scanner.vala:760: Option 36: name='cct-7' title='Shift red to blue' type=fixed size=4 
min=-2.000000, max=2.000000, quant=0 cap=soft-select,soft-detect,emulated,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Adds to blue based on red level
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (37)
+[+27.77s] DEBUG: scanner.vala:760: Option 37: name='cct-8' title='Shift green to blue' type=fixed size=4 
min=-2.000000, max=2.000000, quant=0 cap=soft-select,soft-detect,emulated,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Adds to blue based on green level
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (38)
+[+27.77s] DEBUG: scanner.vala:760: Option 38: name='cct-9' title='Blue' type=fixed size=4 min=-2.000000, 
max=2.000000, quant=0 cap=soft-select,soft-detect,emulated,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Control blue level
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (39)
+[+27.77s] DEBUG: scanner.vala:760: Option 39: name='(null)' title='Preview' type=group size=4 cap=advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description:
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (40)
+[+27.77s] DEBUG: scanner.vala:760: Option 40: name='preview' title='Preview' type=bool size=4 
cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Request a preview-quality scan.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (41)
+[+27.77s] DEBUG: scanner.vala:760: Option 41: name='preview-speed' title='Speed' type=bool size=4 
cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description:
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (42)
+[+27.77s] DEBUG: scanner.vala:760: Option 42: name='(null)' title='Geometry' type=group size=4 cap=advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description:
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (43)
+[+27.77s] DEBUG: scanner.vala:760: Option 43: name='scan-area' title='Scan area' type=string size=13 
values=["Maximum", "A4", "A5 Landscape", "A5 Portrait", "B5", "Letter", "Executive", "CD"] 
cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Select an area to scan based on well-known media sizes.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (44)
+[+27.77s] DEBUG: scanner.vala:760: Option 44: name='tl-x' title='Top-left x' type=fixed size=4 unit=mm 
min=0.000000, max=215.899994, quant=0 cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Top-left x position of scan area.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (45)
+[+27.77s] DEBUG: scanner.vala:760: Option 45: name='tl-y' title='Top-left y' type=fixed size=4 unit=mm 
min=0.000000, max=297.179993, quant=0 cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Top-left y position of scan area.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (46)
+[+27.77s] DEBUG: scanner.vala:760: Option 46: name='br-x' title='Bottom-right x' type=fixed size=4 unit=mm 
min=0.000000, max=215.899994, quant=0 cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Bottom-right x position of scan area.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (47)
+[+27.77s] DEBUG: scanner.vala:760: Option 47: name='br-y' title='Bottom-right y' type=fixed size=4 unit=mm 
min=0.000000, max=297.179993, quant=0 cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Bottom-right y position of scan area.
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (48)
+[+27.77s] DEBUG: scanner.vala:760: Option 48: name='quick-format' title='Quick format' type=string size=13 
values=["Maximum", "A4", "A5 Landscape", "A5 Portrait", "B5", "Letter", "Executive", "CD"] 
cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Select an area to scan based on well-known media sizes. 
(DEPRECATED)
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (49)
+[+27.77s] DEBUG: scanner.vala:760: Option 49: name='(null)' title='Optional equipment' type=group size=4 
cap=advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description:
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (50)
+[+27.77s] DEBUG: scanner.vala:760: Option 50: name='source' title='Scan source' type=string size=26 
values=["Flatbed", "Automatic Document Feeder"] cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Selects the scan source (such as a document-feeder).
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (51)
+[+27.77s] DEBUG: scanner.vala:760: Option 51: name='auto-eject' title='Auto eject' type=bool size=4 
cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Eject document after scanning
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (52)
+[+27.77s] DEBUG: scanner.vala:760: Option 52: name='film-type' title='Film type' type=string size=14 
values=["Positive Film", "Negative Film"] cap=soft-select,soft-detect,inactive
+[+27.77s] DEBUG: scanner.vala:763:   Description:
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (53)
+[+27.77s] DEBUG: scanner.vala:760: Option 53: name='focus-position' title='Focus Position' type=string 
size=24 values=["Focus on glass", "Focus 2.5mm above glass"] cap=soft-select,soft-detect,inactive,advanced
+[+27.77s] DEBUG: scanner.vala:763:   Description: Sets the focus position to either the glass or 2.5mm above 
the glass
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (54)
+[+27.77s] DEBUG: scanner.vala:760: Option 54: name='bay' title='Bay' type=string size=4 values=[" 1 ", " 2 
", " 3 ", " 4 ", " 5 ", " 6 "] cap=soft-select,soft-detect,inactive
+[+27.77s] DEBUG: scanner.vala:763:   Description: Select bay to scan
+[+27.77s] DEBUG: scanner.vala:910: sane_get_option_descriptor (55)
+[+27.77s] DEBUG: scanner.vala:760: Option 55: name='eject' title='Eject' type=button size=4 
cap=soft-select,soft-detect
+[+27.77s] DEBUG: scanner.vala:763:   Description: Eject the sheet in the ADF
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (56)
+[+27.78s] DEBUG: scanner.vala:760: Option 56: name='adf-mode' title='ADF Mode' type=string size=8 
values=["Simplex", "Duplex"] cap=soft-select,soft-detect,inactive
+[+27.78s] DEBUG: scanner.vala:763:   Description: Selects the ADF mode (simplex/duplex)
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (57)
+[+27.78s] DEBUG: scanner.vala:760: Option 57: name='detect-doc-size' title='Auto-detect document size' 
type=bool size=4 cap=soft-select,soft-detect,inactive,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Activates document size auto-detection.  The scan area 
will be set to match the detected document size.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (58)
+[+27.78s] DEBUG: scanner.vala:760: Option 58: name='scan-area-is-valid' title='Scan Area Is Valid' type=bool 
size=4 cap=soft-detect,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Indicates whether the current scan area settings are valid.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (59)
+[+27.78s] DEBUG: scanner.vala:760: Option 59: name='adf-auto-scan' title='ADF Auto Scan' type=bool size=4 
cap=soft-select,soft-detect,inactive,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Skips per sheet device setup for faster throughput.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (60)
+[+27.78s] DEBUG: scanner.vala:760: Option 60: name='double-feed-detection-sensitivity' title='Double Feed 
Detection Sensitivity' type=string size=5 values=["None", "Low", "High"] 
cap=soft-select,soft-detect,inactive,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Sets the sensitivity with which multi-sheet page feeds are 
detected and reported as errors.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (61)
+[+27.78s] DEBUG: scanner.vala:760: Option 61: name='ext-sane-status' title='Extended SANE Status' type=int 
size=4 min=0, max=2, quant=0 cap=soft-detect,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Ugly kludge to provide additional status message strings 
to a frontend.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (62)
+[+27.78s] DEBUG: scanner.vala:760: Option 62: name='adf-duplex-direction-matches' title='ADF Duplex 
Direction Matches' type=bool size=4 cap=soft-detect,inactive,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Indicates whether the device's ADF duplex mode, if 
available, scans in the same direction for the front and back.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (63)
+[+27.78s] DEBUG: scanner.vala:760: Option 63: name='deskew' title='Deskew' type=bool size=4 
cap=soft-select,soft-detect,emulated,inactive,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Rotate image so it appears upright.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (64)
+[+27.78s] DEBUG: scanner.vala:760: Option 64: name='autocrop' title='Trim image to paper size' type=bool 
size=4 cap=soft-select,soft-detect,emulated,inactive,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Determines empty margins in the scanned image and removes 
them.  This normally reduces the image to the size of the original document but may remove more.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (65)
+[+27.78s] DEBUG: scanner.vala:760: Option 65: name='calibrate' title='Calibrate' type=button size=4 
cap=soft-select,soft-detect,inactive,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Performs color matching to make sure that the document's 
color tones are scanned correctly.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (66)
+[+27.78s] DEBUG: scanner.vala:760: Option 66: name='clean' title='Clean' type=button size=4 
cap=soft-select,soft-detect,inactive,advanced
+[+27.78s] DEBUG: scanner.vala:763:   Description: Cleans the scanners reading section.
+[+27.78s] DEBUG: scanner.vala:910: sane_get_option_descriptor (67)
+[+27.78s] DEBUG: scanner.vala:571: sane_control_option (50, SANE_ACTION_SET_VALUE, "Automatic Document 
Feeder") -> (SANE_STATUS_GOOD, "Automatic Document Feeder")
+[+27.78s] DEBUG: scanner.vala:571: sane_control_option (2, SANE_ACTION_SET_VALUE, "Color") -> 
(SANE_STATUS_GOOD, "Color")
+[+27.78s] WARNING: scanner.vala:1249: The option adf-mode (56) is inactive and can't be set, please file a 
bug
+[+27.78s] WARNING: scanner.vala:1249: The option adf-auto-scan (59) is inactive and can't be set, please 
file a bug
+[+27.78s] DEBUG: scanner.vala:483: sane_control_option (12, SANE_ACTION_SET_VALUE, 150) -> 
(SANE_STATUS_GOOD, 600)
+[+27.78s] DEBUG: scanner.vala:483: sane_control_option (3, SANE_ACTION_SET_VALUE, 8) -> (SANE_STATUS_GOOD, 8)
+[+27.78s] DEBUG: scanner.vala:523: sane_control_option (46, SANE_ACTION_SET_VALUE, 210.000000) -> 
(SANE_STATUS_GOOD, 210.000000)
+[+27.78s] DEBUG: scanner.vala:523: sane_control_option (47, SANE_ACTION_SET_VALUE, 297.000000) -> 
(SANE_STATUS_GOOD, 297.000000)
+[+27.78s] DEBUG: scanner.vala:418: scale_int: scaling 21 [min: -100, max: 100] to 21 [min: -100, max: 100]
+[+27.78s] DEBUG: scanner.vala:483: sane_control_option (7, SANE_ACTION_SET_VALUE, 21) -> (SANE_STATUS_GOOD, 
21)
+[+27.78s] DEBUG: scanner.vala:418: scale_int: scaling 32 [min: -100, max: 100] to 32 [min: -100, max: 100]
+[+27.78s] DEBUG: scanner.vala:483: sane_control_option (8, SANE_ACTION_SET_VALUE, 32) -> (SANE_STATUS_GOOD, 
32)
+[+28.08s] DEBUG: app-window.vala:1981: Saving state to /home/arunasr/.cache/simple-scan/state
+[+31.23s] DEBUG: scanner.vala:1285: sane_start (page=0, pass=0) -> SANE_STATUS_GOOD
+[+31.23s] DEBUG: scanner.vala:1312: sane_get_parameters () -> SANE_STATUS_GOOD
+[+31.23s] DEBUG: scanner.vala:1324: Parameters: format=SANE_FRAME_RGB last_frame=SANE_TRUE 
bytes_per_line=14880 pixels_per_line=4960 lines=7015 depth=8
+[+31.23s] DEBUG: simple-scan.vala:1431: Page is 4960 pixels wide, 7015 pixels high, 8 bits per pixel
+[+31.31s] DEBUG: simple-scan.vala:1365: Getting color profile for device epkowa:interpreter:002:010
+[+31.33s] DEBUG: simple-scan.vala:1385: Unable to find colord device epkowa:interpreter:002:010: property 
match 'Serial'='sane:epkowa:interpreter:002:010' does not exist
diff --git a/src/scanner.vala b/src/scanner.vala
index 8f19e6e7..6e165bad 100644
--- a/src/scanner.vala
+++ b/src/scanner.vala
@@ -1112,7 +1112,15 @@ public class Scanner : Object
             }
 
             /* Set resolution and bit depth */
-            option = get_option_by_name (handle, Sane.NAME_SCAN_RESOLUTION, out index);
+            /* Epson has separate resolution settings for x and y axes, which is preferable options to set */
+            option = get_option_by_name (handle, Sane.NAME_SCAN_X_RESOLUTION, out index);
+            if (option != null)
+            {
+                set_fixed_or_int_option (handle, option, index, job.dpi, out job.dpi);
+                option = get_option_by_name (handle, Sane.NAME_SCAN_Y_RESOLUTION, out index);
+            }
+             else
+                option = get_option_by_name (handle, Sane.NAME_SCAN_RESOLUTION, out index);
             if (option == null) /* #161 Lexmark CX310dn Duplex */
                 option = get_option_by_name (handle, "scan-resolution", out index);
             if (option != null)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]