<div dir="ltr"><div dir="ltr"><div>Thank you, Ralph. I made <a href="https://gitlab.com/sane-project/backends/-/issues/496">https://gitlab.com/sane-project/backends/-/issues/496</a></div><div><br></div><div>BR, jose<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 1, 2021 at 7:01 PM Ralph Little <<a href="mailto:skelband@gmail.com">skelband@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
Best thing is to create an issue here: <br>
<a href="https://gitlab.com/sane-project/backends/-/issues" rel="noreferrer" target="_blank">https://gitlab.com/sane-project/backends/-/issues</a><br>
<br>
Cheers,<br>
Ralph<br>
<br>
<br>
On 2021-07-31 3:35 a.m., Jozef Riha wrote:<br>
> Hello,<br>
><br>
> I got CanoScan LiDE 400 (ID 04a9:1912 Canon, Inc. LiDE 400) and trying <br>
> to make all front buttons work with scanbd. Scanner is recognized as <br>
> pixma device.<br>
><br>
> $ scanimage -L<br>
> device `pixma:04A91912_46710F' is a CANON CanoScan LiDE 400 <br>
> multi-function peripheral<br>
><br>
> There are 5 front buttons <br>
> (<a href="https://ij.manual.canon/ij/webmanual/ScanUtility/All/LiDE%20400/1.0/EN/SU/screens/su129_c.gif" rel="noreferrer" target="_blank">https://ij.manual.canon/ij/webmanual/ScanUtility/All/LiDE%20400/1.0/EN/SU/screens/su129_c.gif</a> <br>
> <<a href="https://ij.manual.canon/ij/webmanual/ScanUtility/All/LiDE%20400/1.0/EN/SU/screens/su129_c.gif" rel="noreferrer" target="_blank">https://ij.manual.canon/ij/webmanual/ScanUtility/All/LiDE%20400/1.0/EN/SU/screens/su129_c.gif</a>>),<br>
> left to right:<br>
><br>
>  - [Scan start button]<br>
>  - [Finish button]<br>
>  - [Auto scan]<br>
>  - [Copy]<br>
>  - [Send]<br>
><br>
> Scanbd/sane is interpreting those as:<br>
>  - [Scan start button] - recognized as Button-1 (PIXMA_EV_BUTTON1 - <br>
> color scan)<br>
>  - [Finish button] - recognized as Button-2 (PIXMA_EV_BUTTON2 - b/w scan)<br>
>  - [Auto scan] - recognized as Button-1 (PIXMA_EV_BUTTON1 - color scan)<br>
>  - [Copy] - recognized as Button-1 (PIXMA_EV_BUTTON1 - color scan)<br>
>  - [Send] - recognized as Button-1 (PIXMA_EV_BUTTON1 - color scan)<br>
><br>
> So there is a lot of duplication and instead of 5 buttons one can <br>
> effectively use only 2. This is what I see when capturing USB packets <br>
> with usbmon loaded.<br>
><br>
> cat /sys/kernel/debug/usb/usbmon/3u:<br>
><br>
>  - [Scan start button] - 0:1024 32 = 00000000 01000000 00000000 <br>
> 00000000 00000005 00000000 00000000 00000000<br>
>  - [Finish button] - 0:1024 32 = 00000000 01000000 00000000 00000000 <br>
> 00000006 00000000 00000000 00000000<br>
>  - [Auto scan] - 0:1024 32 = 00000000 01000000 00000000 00000000 <br>
> 00000002 00000000 00000000 00000000<br>
>  - [Copy] - 0:1024 32 = 00000000 01000000 00000000 00000000 00000001 <br>
> 00000000 00000000 00000000<br>
>  - [Send] - 00000000 01000000 00000000 00000000 00000003 00000000 <br>
> 00000000 00000000<br>
><br>
> Would it be possible to add definitions for all buttons based on the <br>
> information above?<br>
><br>
> A few information about my system:<br>
><br>
> Arch Linux x86_64 (kernel 5.13.6-arch1-1), sane 1.0.32-3, scanbd 1.5.1-5<br>
><br>
> Thank you, jose<br>
<br>
</blockquote></div><br></div>