[sane-devel] Q: improving epson2 for Epson 12000XL

Wolfram Sang wsa at kernel.org
Sat Sep 26 20:44:06 BST 2020


Hiya,

> a) The scanner reports level "B8". For "B8", allowed brightness levels are in
>    the -4..3 range. However, my scanner returns -EINVAL for -4. To avoid that,
>    I guess I need to check the model name and adapt the range accordingly?

Fixed with !529.

> 
> b) It seems to me that set_focus is not working for this model because
>    e2_set_extended_scanning_parameters() says "/* XXX focus */" and no byte in
>    the buffer is filled with the focus value. Probably the location is unknown?
>    And I'd need to snoop Windows USB traffic to (hopefully) figure it out?

Fixed with !530.

> 
> c) 'focus' has only two options. 0mm and 2.5mm. The hex values are 0x19 apart.
>    That being dec 25, it is tempting to try inbetween values. But I assume I'd
>    need some evidence that those values are "officially OK" somehow?

This and also autofocus added with !531. If someone has comments, I am
honestly looking forward to hear them. I am still new to the project.

The only question left for me now: Should focus/autofocus settings
really have CAP_ADVANCED?

Happy hacking,

   Wolfram

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20200926/e7188e1d/attachment.sig>


More information about the sane-devel mailing list