Epson scanners don't work with "Automatic" Page Size
How to reproduce:
- Run Simple Scan
- Make sure "Automatic" page size is selected (Go to Preferences -> Scanning -> Page Size and select "Automatic")
- Click "Scan"
Currently
- The scan process is canceled, nothing is scanned. From logs we can see that the height and width is set to maximum
[+10.44s] DEBUG: scanner.vala:910: sane_get_option_descriptor (8)
[+10.44s] DEBUG: scanner.vala:760: Option 8: name='br-x' title='Bottom Right X' type=fixed size=4 unit=mm min=2.539993, max=218.439987, quant=0 cap=soft-select,soft-detect
[+10.44s] DEBUG: scanner.vala:763: Description: Bottom Right X
[+10.44s] DEBUG: scanner.vala:910: sane_get_option_descriptor (9)
[+10.44s] DEBUG: scanner.vala:760: Option 9: name='br-y' title='Bottom Right Y' type=fixed size=4 unit=mm min=2.539993, max=299.719986, quant=0 cap=soft-select,soft-detect
[+10.44s] DEBUG: scanner.vala:763: Description: Bottom Right Y
...
[+10.44s] WARNING: scanner.vala:976: Unable to set single page source, please file a bug
[+10.44s] DEBUG: scanner.vala:571: sane_control_option (6, SANE_ACTION_SET_VALUE, "Color") -> (SANE_STATUS_GOOD, "Color")
[+10.44s] DEBUG: scanner.vala:483: sane_control_option (4, SANE_ACTION_SET_VALUE, 600) -> (SANE_STATUS_GOOD, 600)
[+10.45s] DEBUG: scanner.vala:553: sane_control_option (8, SANE_ACTION_SET_VALUE, option.range.max=218.439987) -> (SANE_STATUS_GOOD)
[+10.45s] DEBUG: scanner.vala:553: sane_control_option (9, SANE_ACTION_SET_VALUE, option.range.max=299.719986) -> (SANE_STATUS_GOOD)
[+11.77s] DEBUG: scanner.vala:1291: sane_start (page=0, pass=0) -> SANE_STATUS_CANCELLED
Workaround:
- Aftet changing the
Page Size
to specific size (eg.A4
), the scan starts correctly:
[+14.63s] WARNING: scanner.vala:976: Unable to set single page source, please file a bug
[+14.63s] DEBUG: scanner.vala:571: sane_control_option (6, SANE_ACTION_SET_VALUE, "Color") -> (SANE_STATUS_GOOD, "Color")
[+14.63s] DEBUG: scanner.vala:483: sane_control_option (4, SANE_ACTION_SET_VALUE, 600) -> (SANE_STATUS_GOOD, 600)
[+14.63s] DEBUG: scanner.vala:523: sane_control_option (8, SANE_ACTION_SET_VALUE, 210.000000) -> (SANE_STATUS_GOOD, 210.000000)
[+14.64s] DEBUG: scanner.vala:523: sane_control_option (9, SANE_ACTION_SET_VALUE, 297.000000) -> (SANE_STATUS_GOOD, 297.000000)
[+19.28s] DEBUG: scanner.vala:1291: sane_start (page=0, pass=0) -> SANE_STATUS_GOOD
Note that everything works fine in xsane
.
Debug log: simple-scan.log
Edited by Bartosz