<div dir="ltr">Hello,<br><br>I got CanoScan LiDE 400 (ID 04a9:1912 Canon, Inc. LiDE 400) and trying to make all front buttons work with scanbd. Scanner is recognized as pixma device.<br><br>$ scanimage -L<br>device `pixma:04A91912_46710F' is a CANON CanoScan LiDE 400 multi-function peripheral<br><br>There are 5 front buttons (<a href="https://ij.manual.canon/ij/webmanual/ScanUtility/All/LiDE%20400/1.0/EN/SU/screens/su129_c.gif">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 - 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 effectively use only 2. This is what I see when capturing USB packets with usbmon loaded.<br><br>cat /sys/kernel/debug/usb/usbmon/3u:<br><br> - [Scan start button] - 0:1024 32 = 00000000 01000000 00000000 00000000 00000005 00000000 00000000 00000000<br> - [Finish button] - 0:1024 32 = 00000000 01000000 00000000 00000000 00000006 00000000 00000000 00000000<br> - [Auto scan] - 0:1024 32 = 00000000 01000000 00000000 00000000 00000002 00000000 00000000 00000000<br> - [Copy] - 0:1024 32 = 00000000 01000000 00000000 00000000 00000001 00000000 00000000 00000000<br> - [Send] - 00000000 01000000 00000000 00000000 00000003 00000000 00000000 00000000<br><br><div>Would it be possible to add definitions for all buttons based on the information above?</div><div><br></div><div>A few information about my system:</div><div><br></div><div>Arch Linux x86_64 (kernel 5.13.6-arch1-1), sane 1.0.32-3, scanbd 1.5.1-5<br></div><br><div>Thank you, jose</div></div>