[sane-devel] Weird behavior setting option on epsonscan2
Thiago Milczarek Sayão
thiago.sayao at gmail.com
Mon Dec 5 12:21:12 GMT 2022
Hi,
I am detecting the need to reload options when calling sane_control_option
an then reloading the options.
It's weird that it accepts the new configuration.
Maybe I'm doing something wrong and It's losing other configurations when
setting the Color (I suspect it's returning to ADF source).
Cheers.
Em sex., 2 de dez. de 2022 às 19:42, Ralph Little <skelband at gmail.com>
escreveu:
> Hi,
>
> On Fri, Dec 2, 2022 at 2:28 PM Thiago Milczarek Sayão <
> thiago.sayao at gmail.com> wrote:
>
>> Hi,
>>
>> I've downloaded epson drivers here:
>> https://support.epson.net/linux/en/epsonscan2.php
>>
>> Scanning generally works, but there's one option behaving weird:
>>
>> SaneOptionDescriptor {
>> name='mode',
>> title='Scan mode',
>> desc='Selects the scan mode (e.g., lineart, monochrome, or color).',
>> type=SANE_TYPE_STRING,
>> unit=SANE_UNIT_NONE,
>> size=11,
>> cap=5,
>> constraintType=SANE_CONSTRAINT_STRING_LIST, list=[Color, Grayscale,
>> Monochrome]
>> }
>>
>> When I set this option to Color, Grayscale or Monochrome scanning it will
>> return SANE_STATUS_NO_DOCS as if
>>
>> SaneOptionDescriptor {
>> name='source',
>> title='Scan source',
>> desc='Selects the scan source (such as a document-feeder).',
>> type=SANE_TYPE_STRING,
>> unit=SANE_UNIT_NONE,
>> size=8,
>> cap=5,
>> constraintType=SANE_CONSTRAINT_STRING_LIST, list=[ADF, Flatbed]
>> }
>>
>> was set to ADF. But I'm always sure to set to Flatbed.
>>
>>
>> Does it make a difference if you change the order of the option sets?
> Some options (typically mode and source) request a reload of options as
> other options can be affected.
>
> Cheers,
> Ralph
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20221205/67e43b3c/attachment.htm>
More information about the sane-devel
mailing list