Le 2022-04-22 18:19, Ralph Little a écrit :
Hi,
On Linux Mint 20.3


[20:11:38.072537] [dll] load: searching backend `kyocera_gdi_a3' in `/usr/lib/x86_64-linux-gnu/sane' [20:11:38.072549] [dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-kyocera_gdi_a3.so.1' [20:11:38.072980] [dll] load: couldn't open `/usr/lib/x86_64-linux-gnu/sane/libsane-kyocera_gdi_a3.so.1' (No such file or directory) [20:11:38.072993] [dll] load: couldn't find backend `kyocera_gdi_a3' (No such file or directory) [20:11:38.073004] [dll] load: searching backend `kyocera' in `/usr/lib/x86_64-linux-gnu/sane' [20:11:38.073014] [dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-kyocera.so.1' [20:11:38.073156] [dll] load: couldn't open `/usr/lib/x86_64-linux-gnu/sane/libsane-kyocera.so.1' (No such file or directory) [20:11:38.073167] [dll] load: couldn't find backend `kyocera' (No such file or directory) [20:11:38.073177] [dll] load: searching backend `xerox_mfp' in `/usr/lib/x86_64-linux-gnu/sane'


# sudo ln -s /usr/lib/sane/libsane-kyocera* /usr/lib/x86_64-linux-gnu/sane/

After the above command, the lib is found:

[20:15:12.008132] [dll] load: searching backend `kyocera_gdi_a3' in `/usr/lib/x86_64-linux-gnu/sane' [20:15:12.008145] [dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-kyocera_gdi_a3.so.1' [20:15:12.008178] [dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-kyocera_gdi_a3.so.1'
[20:15:12.008390] [dll] init: initializing backend `kyocera_gdi_a3'
[20:15:12.273300] [dll] init: backend `kyocera_gdi_a3' is version 1.0.1
[20:15:12.273622] [dll] load: searching backend `kyocera' in `/usr/lib/x86_64-linux-gnu/sane' [20:15:12.273668] [dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-kyocera.so.1' [20:15:12.273769] [dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-kyocera.so.1'
[20:15:12.274162] [dll] init: initializing backend `kyocera'
[20:15:12.282507] [dll] init: backend `kyocera' is version 1.0.1
[20:15:12.282725] [dll] load: searching backend `xerox_mfp' in `/usr/lib/x86_64-linux-gnu/sane'



On Fri, Apr 22, 2022 at 4:06 AM jitesh pandey <jsjpan...@gmail.com>
wrote:

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 scanimage: open of device kyocera_gdi_a3:libusb:001:019
failed: Invalid argument.

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
with no success.

OK I have installed their package. I have Linux Mint, so Ubuntu-based
distro.

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.
Diag from the backends can be got with SANE_DEBUG_KYOCERA and
SANE_DEBUG_KYOCERA_GDI_A3:

rlittle@rlittlelaptop /usr/lib/sane $ SANE_DEBUG_KYOCERA=255 scanimage
-L
[kyocera_debug] Setting debug level of kyocera to 255.
[kyocera] >>sane_init
[kyocera] sane_init() : Kyocera backend (build 1), version != null,
authorize != null
[kyocera] <<sane_init
[kyocera] >>sane_get_devices
[kyocera] sane_get_devices() : start reading config file kyocera.conf
[kyocera] usb 0x0482 0x0495
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices
start
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end
[kyocera] usb 0x0482 0x0496
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices
start
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end
[kyocera] usb 0x0482 0x0497
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices
start
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end
[kyocera] usb 0x0482 0x0498
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices
start
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end
[kyocera] usb 0x0482 0x04FD
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices
start
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end
[kyocera] usb 0x0482 0x04FE
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices
start
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end
[kyocera] usb 0x0482 0x04FF
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices
start
[kyocera] sane_get_devices() : kyocera_usb_attach_matching_devices end
[kyocera] sane_get_devices() : finished reading config file
kyocera.conf
[kyocera] sane_get_devices() : Kyocera scanners found 0
[kyocera] <<sane_get_devices
device `brother3:net1;dev0' is a Brother MFC-7340 My_Scanner
device `escl:https://10.1.40.144:443' is a HP OfficeJet-6978
platen,adf scanner
device `airscan:e0:HP-OfficeJet-6978' is a eSCL HP-OfficeJet-6978
ip=10.1.40.144
[kyocera] >>sane_exit
[kyocera] <<sane_exit

...and...

rlittle@rlittlelaptop /usr/lib/sane $ SANE_DEBUG_KYOCERA_GDI_A3=255
scanimage -L
[kyocera_debug] Setting debug level of kyocera_gdi_a3 to 255.
[kyocera_gdi_a3] >>sane_init
[kyocera_gdi_a3] sane_init() : Kyocera backend (build 1), version !=
null, authorize != null
[kyocera_gdi_a3] <<sane_init
[kyocera_gdi_a3] >>sane_get_devices
[kyocera_gdi_a3] sane_get_devices() : start reading config file
kyocera_gdi_a3.conf
[kyocera_gdi_a3] sane_get_devices() : usb 0x0482 0x0606
[kyocera_gdi_a3] sane_get_devices() : usb 0x0482 0x0607
[kyocera_gdi_a3] sane_get_devices() : usb 0x0482 0x0608
[kyocera_gdi_a3] sane_get_devices() : usb 0x0482 0x0609
[kyocera_gdi_a3] sane_get_devices() : finished reading config file
kyocera_gdi_a3.conf
[kyocera_gdi_a3] sane_get_devices() : Kyocera scanners found 0
[kyocera_gdi_a3] <<sane_get_devices
device `brother3:net1;dev0' is a Brother MFC-7340 My_Scanner
device `escl:https://10.1.40.144:443' is a HP OfficeJet-6978
platen,adf scanner
device `airscan:e0:HP-OfficeJet-6978' is a eSCL HP-OfficeJet-6978
ip=10.1.40.144
[kyocera_gdi_a3] >>sane_exit
[kyocera_gdi_a3] <<sane_exit

Obviously I don't see anything detected because I don't have one of
these devices.
Not really sure what the difference between these two backends is or
which one is expected to work with your device.

Perhaps you could try generating some diag output from their backend
when attempting to scan?

Cheers,
Ralph

Reply via email to