<div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 22, 2022 at 4:06 AM jitesh pandey <<a href="mailto:jsjpandey@gmail.com">jsjpandey@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"><div dir="ltr">I have a Kyocera Taskalfa 1800 MFP which I am configuring as a scanner which is not working in any linux distro (tried with Ubuntu, Fedora, Arch Linux and Debian), although the printer is working fine. Although sane website is showing nothing like this printer I have downloaded the sane library for scanner from the official website but whenever I try to run scanner (using scanimage or xsane), the printer awakes and the program (or command) shows the error <b>scanimage: open of device kyocera_gdi_a3:libusb:001:019 failed: Invalid argument</b>.<br><br><div>The things I have already tried are, tried changing the permission of the library in sane (libsane_kyocera_gdi_a3) as well as usb manually and through udev. I have tried to debug using SANE_KYOCERA_GDI_A3=255 scanimage</div><div> with no success.</div><br></div></blockquote><div> </div><div><div>OK I have installed their package. I have Linux Mint, so Ubuntu-based distro.</div><div><br></div><div>It
 seems to install correctly and the 2 backends (kyocera and 
kyocera_gdi_a3) seem to be loaded up. You can test this with 
SANE_DEBUG_DLL=3.</div> </div><div>Diag from the backends can be got with SANE_DEBUG_KYOCERA and SANE_DEBUG_KYOCERA_GDI_A3:</div><div><br></div><div>rlittle@rlittlelaptop /usr/lib/sane $ SANE_DEBUG_KYOCERA=255 scanimage -L<br>[kyocera_debug] Setting debug level of kyocera to 255.<br>[kyocera] >>sane_init<br>[kyocera] sane_init() : Kyocera backend (build 1), version != null, authorize != null<br>[kyocera] <<sane_init<br>[kyocera] >>sane_get_devices<br>[kyocera] sane_get_devices() : start reading config file kyocera.conf<br>[kyocera] usb 0x0482 0x0495<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices start<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end<br>[kyocera] usb 0x0482 0x0496<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices start<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end<br>[kyocera] usb 0x0482 0x0497<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices start<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end<br>[kyocera] usb 0x0482 0x0498<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices start<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end<br>[kyocera] usb 0x0482 0x04FD<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices start<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end<br>[kyocera] usb 0x0482 0x04FE<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices start<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end<br>[kyocera] usb 0x0482 0x04FF<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices start<br>[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end<br>[kyocera] sane_get_devices() : finished reading config file kyocera.conf<br>[kyocera] sane_get_devices() : Kyocera scanners found 0 <br>[kyocera] <<sane_get_devices<br>device `brother3:net1;dev0' is a Brother MFC-7340 My_Scanner<br>device `escl:<a href="https://10.1.40.144:443">https://10.1.40.144:443</a>' is a HP OfficeJet-6978 platen,adf scanner<br>device `airscan:e0:HP-OfficeJet-6978' is a eSCL HP-OfficeJet-6978 ip=10.1.40.144<br>[kyocera] >>sane_exit<br>[kyocera] <<sane_exit</div><div><br></div><div>...and...</div><div><br></div><div>rlittle@rlittlelaptop /usr/lib/sane $ SANE_DEBUG_KYOCERA_GDI_A3=255 scanimage -L<br>[kyocera_debug] Setting debug level of kyocera_gdi_a3 to 255.<br>[kyocera_gdi_a3] >>sane_init<br>[kyocera_gdi_a3] sane_init() : Kyocera backend (build 1), version != null, authorize != null<br>[kyocera_gdi_a3] <<sane_init<br>[kyocera_gdi_a3] >>sane_get_devices<br>[kyocera_gdi_a3] sane_get_devices() : start reading config file kyocera_gdi_a3.conf<br>[kyocera_gdi_a3] sane_get_devices() : usb 0x0482 0x0606<br>[kyocera_gdi_a3] sane_get_devices() : usb 0x0482 0x0607<br>[kyocera_gdi_a3] sane_get_devices() : usb 0x0482 0x0608<br>[kyocera_gdi_a3] sane_get_devices() : usb 0x0482 0x0609<br>[kyocera_gdi_a3] sane_get_devices() : finished reading config file kyocera_gdi_a3.conf<br>[kyocera_gdi_a3] sane_get_devices() : Kyocera scanners found 0 <br>[kyocera_gdi_a3] <<sane_get_devices<br>device `brother3:net1;dev0' is a Brother MFC-7340 My_Scanner<br>device `escl:<a href="https://10.1.40.144:443">https://10.1.40.144:443</a>' is a HP OfficeJet-6978 platen,adf scanner<br>device `airscan:e0:HP-OfficeJet-6978' is a eSCL HP-OfficeJet-6978 ip=10.1.40.144<br>[kyocera_gdi_a3] >>sane_exit<br>[kyocera_gdi_a3] <<sane_exit</div><div><br></div><div>Obviously I don't see anything detected because I don't have one of these devices.</div><div>Not really sure what the difference between these two backends is or which one is expected to work with your device.<br></div><div><br></div><div>Perhaps you could try generating some diag output from their backend when attempting to scan?</div><div><br></div><div>Cheers,</div><div>Ralph<br></div></div></div>