<div dir="ltr"><div>Dear Ralph, I tried your suggestion, as the output I got was not that big so I am pasting here for better explanation, as you can see we are getting the same invalid argument error. <br></div><div><br></div><div><b>LIBUSB_DEBUG=10 scanimage -d kyocera_gdi_a3 -T</b><br>Output format is not set, using pnm as a default.<br>[timestamp] [threadID] facility level [function call] <message><br>--------------------------------------------------------------------------------<br>[ 0.000036] [00007a4b] libusb: debug [libusb_init] libusb v1.0.26.11724<br>[ 0.000077] [00007a4b] libusb: debug [usbi_add_event_source] add fd 3 events 1<br>[ 0.000092] [00007a4b] libusb: debug [usbi_io_init] using timer for timeouts<br>[ 0.000097] [00007a4b] libusb: debug [usbi_add_event_source] add fd 4 events 1<br>[ 0.000129] [00007a4b] libusb: debug [get_kernel_version] reported kernel version is 5.17.3-arch1-1<br>[ 0.000218] [00007a4b] libusb: debug [op_init] found usbfs at /dev/bus/usb<br>[ 0.000225] [00007a4b] libusb: debug [op_init] max iso packet length is (likely) 98304 bytes<br>[ 0.000238] [00007a4b] libusb: debug [op_init] sysfs is available<br>[ 0.000712] [00007a4c] libusb: debug [linux_udev_event_thread_main] udev event thread entering<br>[ 0.008081] [00007a4b] libusb: debug [linux_get_device_address] getting address for device: usb1 detached: 0<br>[ 0.008149] [00007a4b] libusb: debug [linux_get_device_address] scan usb1<br>[ 0.008293] [00007a4b] libusb: debug [linux_get_device_address] bus=1 dev=1<br>[ 0.008313] [00007a4b] libusb: debug [linux_enumerate_device] busnum 1 devaddr 1 session_id 257<br>[ 0.008329] [00007a4b] libusb: debug [linux_enumerate_device] allocating new device for 1/1 (session 257)<br>[ 0.008614] [00007a4b] libusb: debug [linux_get_device_address] getting address for device: 1-3 detached: 0<br>[ 0.008633] [00007a4b] libusb: debug [linux_get_device_address] scan 1-3<br>[ 0.008723] [00007a4b] libusb: debug [linux_get_device_address] bus=1 dev=106<br>[ 0.008731] [00007a4b] libusb: debug [linux_enumerate_device] busnum 1 devaddr 106 session_id 362<br>[ 0.008739] [00007a4b] libusb: debug [linux_enumerate_device] allocating new device for 1/106 (session 362)<br>[ 0.008797] [00007a4b] libusb: debug [linux_get_parent_info] dev 0x55ca7ffe46e0 (1-3) has parent 0x55ca7ffe4580 (usb1) port 3<br>[ 0.009175] [00007a4b] libusb: debug [linux_get_device_address] getting address for device: 1-4 detached: 0<br>[ 0.009202] [00007a4b] libusb: debug [linux_get_device_address] scan 1-4<br>[ 0.009291] [00007a4b] libusb: debug [linux_get_device_address] bus=1 dev=7<br>[ 0.009304] [00007a4b] libusb: debug [linux_enumerate_device] busnum 1 devaddr 7 session_id 263<br>[ 0.009313] [00007a4b] libusb: debug [linux_enumerate_device] allocating new device for 1/7 (session 263)<br>[ 0.009362] [00007a4b] libusb: debug [linux_get_parent_info] dev 0x55ca7ffe4af0 (1-4) has parent 0x55ca7ffe4580 (usb1) port 4<br>[ 0.009606] [00007a4b] libusb: debug [linux_get_device_address] getting address for device: 1-5 detached: 0<br>[ 0.009622] [00007a4b] libusb: debug [linux_get_device_address] scan 1-5<br>[ 0.009701] [00007a4b] libusb: debug [linux_get_device_address] bus=1 dev=2<br>[ 0.009711] [00007a4b] libusb: debug [linux_enumerate_device] busnum 1 devaddr 2 session_id 258<br>[ 0.009720] [00007a4b] libusb: debug [linux_enumerate_device] allocating new device for 1/2 (session 258)<br>[ 0.009799] [00007a4b] libusb: debug [linux_get_parent_info] dev 0x55ca7ffe4c90 (1-5) has parent 0x55ca7ffe4580 (usb1) port 5<br>[ 0.010001] [00007a4b] libusb: debug [linux_get_device_address] getting address for device: 1-5.2 detached: 0<br>[ 0.010016] [00007a4b] libusb: debug [linux_get_device_address] scan 1-5.2<br>[ 0.010101] [00007a4b] libusb: debug [linux_get_device_address] bus=1 dev=4<br>[ 0.010111] [00007a4b] libusb: debug [linux_enumerate_device] busnum 1 devaddr 4 session_id 260<br>[ 0.010122] [00007a4b] libusb: debug [linux_enumerate_device] allocating new device for 1/4 (session 260)<br>[ 0.010233] [00007a4b] libusb: debug [linux_get_parent_info] dev 0x55ca7ffe5340 (1-5.2) has parent 0x55ca7ffe4c90 (1-5) port 2<br>[ 0.010571] [00007a4b] libusb: debug [linux_get_device_address] getting address for device: 1-6 detached: 0<br>[ 0.010591] [00007a4b] libusb: debug [linux_get_device_address] scan 1-6<br>[ 0.010654] [00007a4b] libusb: debug [linux_get_device_address] bus=1 dev=3<br>[ 0.010669] [00007a4b] libusb: debug [linux_enumerate_device] busnum 1 devaddr 3 session_id 259<br>[ 0.010680] [00007a4b] libusb: debug [linux_enumerate_device] allocating new device for 1/3 (session 259)<br>[ 0.010750] [00007a4b] libusb: debug [linux_get_parent_info] dev 0x55ca7ffe5730 (1-6) has parent 0x55ca7ffe4580 (usb1) port 6<br>[ 0.010976] [00007a4b] libusb: debug [linux_get_device_address] getting address for device: 1-6.1 detached: 0<br>[ 0.010990] [00007a4b] libusb: debug [linux_get_device_address] scan 1-6.1<br>[ 0.011072] [00007a4b] libusb: debug [linux_get_device_address] bus=1 dev=5<br>[ 0.011083] [00007a4b] libusb: debug [linux_enumerate_device] busnum 1 devaddr 5 session_id 261<br>[ 0.011096] [00007a4b] libusb: debug [linux_enumerate_device] allocating new device for 1/5 (session 261)<br>[ 0.011179] [00007a4b] libusb: debug [linux_get_parent_info] dev 0x55ca7ffe5540 (1-6.1) has parent 0x55ca7ffe5730 (1-6) port 1<br>[ 0.011412] [00007a4b] libusb: debug [linux_get_device_address] getting address for device: 1-6.2 detached: 0<br>[ 0.011424] [00007a4b] libusb: debug [linux_get_device_address] scan 1-6.2<br>[ 0.011675] [00007a4b] libusb: debug [linux_get_device_address] bus=1 dev=6<br>[ 0.011698] [00007a4b] libusb: debug [linux_enumerate_device] busnum 1 devaddr 6 session_id 262<br>[ 0.011709] [00007a4b] libusb: debug [linux_enumerate_device] allocating new device for 1/6 (session 262)<br>[ 0.011784] [00007a4b] libusb: debug [linux_get_parent_info] dev 0x55ca7ffe4650 (1-6.2) has parent 0x55ca7ffe5730 (1-6) port 2<br>[ 0.011972] [00007a4b] libusb: debug [linux_get_device_address] getting address for device: usb2 detached: 0<br>[ 0.011982] [00007a4b] libusb: debug [linux_get_device_address] scan usb2<br>[ 0.012051] [00007a4b] libusb: debug [linux_get_device_address] bus=2 dev=1<br>[ 0.012063] [00007a4b] libusb: debug [linux_enumerate_device] busnum 2 devaddr 1 session_id 513<br>[ 0.012073] [00007a4b] libusb: debug [linux_enumerate_device] allocating new device for 2/1 (session 513)<br>[ 0.012450] [00007a4b] libusb: warning [libusb_init] installing new context as implicit default<br>[ 0.012575] [00007a4b] libusb: debug [libusb_get_device_list]  <br>[ 0.012619] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.012639] [00007a4b] libusb: debug [libusb_open] open 2.1<br>[ 0.012682] [00007a4b] libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/002/001, errno=13<br>[ 0.012692] [00007a4b] libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes<br>[ 0.012701] [00007a4b] libusb: debug [libusb_open] open 2.1 returns -3<br>[ 0.012711] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.012719] [00007a4b] libusb: debug [libusb_open] open 1.6<br>[ 0.012740] [00007a4b] libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/006, errno=13<br>[ 0.012748] [00007a4b] libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes<br>[ 0.012757] [00007a4b] libusb: debug [libusb_open] open 1.6 returns -3<br>[ 0.012764] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.012772] [00007a4b] libusb: debug [libusb_open] open 1.5<br>[ 0.012801] [00007a4b] libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/005, errno=13<br>[ 0.012812] [00007a4b] libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes<br>[ 0.012820] [00007a4b] libusb: debug [libusb_open] open 1.5 returns -3<br>[ 0.012826] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.012833] [00007a4b] libusb: debug [libusb_open] open 1.3<br>[ 0.012854] [00007a4b] libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/003, errno=13<br>[ 0.012862] [00007a4b] libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes<br>[ 0.012868] [00007a4b] libusb: debug [libusb_open] open 1.3 returns -3<br>[ 0.012875] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.012884] [00007a4b] libusb: debug [libusb_open] open 1.4<br>[ 0.012900] [00007a4b] libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/004, errno=13<br>[ 0.012911] [00007a4b] libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes<br>[ 0.012916] [00007a4b] libusb: debug [libusb_open] open 1.4 returns -3<br>[ 0.012927] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.012936] [00007a4b] libusb: debug [libusb_open] open 1.2<br>[ 0.012959] [00007a4b] libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/002, errno=13<br>[ 0.012970] [00007a4b] libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes<br>[ 0.012980] [00007a4b] libusb: debug [libusb_open] open 1.2 returns -3<br>[ 0.012989] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.012997] [00007a4b] libusb: debug [libusb_open] open 1.7<br>[ 0.013065] [00007a4b] libusb: debug [usbi_add_event_source] add fd 7 events 4<br>[ 0.013088] [00007a4b] libusb: debug [libusb_get_configuration]  <br>[ 0.013154] [00007a4b] libusb: debug [libusb_get_configuration] active config 1<br>[ 0.013172] [00007a4b] libusb: debug [libusb_close]  <br>[ 0.013189] [00007a4b] libusb: debug [usbi_remove_event_source] remove fd 7<br>[ 0.013214] [00007a4b] libusb: debug [libusb_get_config_descriptor] index 0<br>[ 0.013259] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.013268] [00007a4b] libusb: debug [libusb_open] open 1.106<br>[ 0.013305] [00007a4b] libusb: debug [usbi_add_event_source] add fd 7 events 4<br>[ 0.013315] [00007a4b] libusb: debug [libusb_get_configuration]  <br>[ 0.013401] [00007a4b] libusb: debug [libusb_get_configuration] active config 1<br>[ 0.013414] [00007a4b] libusb: debug [libusb_close]  <br>[ 0.013420] [00007a4b] libusb: debug [usbi_remove_event_source] remove fd 7<br>[ 0.013432] [00007a4b] libusb: debug [libusb_get_config_descriptor] index 0<br>[ 0.013450] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.013463] [00007a4b] libusb: debug [libusb_open] open 1.1<br>[ 0.013483] [00007a4b] libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/001, errno=13<br>[ 0.013490] [00007a4b] libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes<br>[ 0.013496] [00007a4b] libusb: debug [libusb_open] open 1.1 returns -3<br>[ 0.015605] [00007a4b] libusb: debug [libusb_open] open 1.106<br>[ 0.015682] [00007a4b] libusb: debug [usbi_add_event_source] add fd 8 events 4<br>[ 0.015691] [00007a4b] libusb: debug [libusb_get_configuration]  <br>[ 0.015759] [00007a4b] libusb: debug [libusb_get_configuration] active config 1<br>[ 0.015769] [00007a4b] libusb: debug [libusb_get_device_descriptor]  <br>[ 0.015775] [00007a4b] libusb: debug [libusb_get_config_descriptor] index 0<br>[ 0.015939] [00007a4b] libusb: debug [libusb_set_configuration] configuration 1<br>[ 0.015975] [00007a4b] libusb: debug [libusb_claim_interface] interface 1<br>[ 0.016011] [00007a4b] libusb: debug [libusb_get_config_descriptor] index 0<br>[ 0.016052] [00007a4b] libusb: debug [libusb_submit_transfer] transfer 0x55ca7ffe02f0<br>[ 0.016059] [00007a4b] libusb: debug [add_to_flying_list] arm timer for timeout in 30000ms (first in line)<br>[ 0.016100] [00007a4b] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling<br>[ 0.016107] [00007a4b] libusb: debug [handle_events] event sources modified, reallocating event data<br>[ 0.016115] [00007a4b] libusb: debug [usbi_wait_for_events] poll() 3 fds with timeout in 60000ms<br>[ 5.947290] [00007a4b] libusb: debug [usbi_wait_for_events] poll() returned 1<br>[ 5.947345] [00007a4b] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=6<br>[ 5.947355] [00007a4b] libusb: debug [handle_control_completion] handling completion status 0<br>[ 5.947365] [00007a4b] libusb: debug [arm_timer_for_next_timeout] no timeouts, disarming timer<br>[ 5.947377] [00007a4b] libusb: debug [usbi_handle_transfer_completion] transfer 0x55ca7ffe02f0 has callback 0x7f2f869cd5a0<br>[ 5.947387] [00007a4b] libusb: debug [sync_transfer_cb] actual_length=6<br>[ 5.947399] [00007a4b] libusb: debug [libusb_free_transfer] transfer 0x55ca7ffe02f0<br><b>scanimage: open of device kyocera_gdi_a3 failed: Invalid argument</b><br>[ 5.947455] [00007a4b] libusb: debug [libusb_release_interface] interface 1<br>[ 5.947499] [00007a4b] libusb: debug [libusb_close]  <br>[ 5.947511] [00007a4b] libusb: debug [usbi_remove_event_source] remove fd 8<br></div><div><br></div><div><br></div><div><br> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 27, 2022 at 8:06 AM 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">
  
    
  
  <div>
    Hi,<br>
    <br>
    <div>On 2022-04-26 02:06, jitesh pandey
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div>Ok, thanks for reply, now take a look at the following,
            maybe you could find something into it</div>
          <div><br>
          </div>
          <div><b>scanimage --list-devices<br>
              device `kyocera_gdi_a3:libusb:001:029' is a Kyocera
              TASKalfa 1800 multi-functional device</b></div>
          <div><br>
          </div>
          <div>So scanimage list the device as <b>kyocera_gdi_a3 </b>but
            when I test it as<br>
          </div>
          <div><br>
          </div>
          <div>scanimage -d kyocera_gdi_a3 -T<br>
            <b>Output format is not set, using pnm as a default.<br>
              scanimage: open of device kyocera_gdi_a3 failed: Invalid
              argument</b></div>
          <div><br>
          </div>
          <div>So there is no luck in it further without any argument</div>
          <div><br>
          </div>
          <div>SANE_DEBUG_KYOCERA_GDI_A3=255 scanimage -T<br>
            Output format is not set, using pnm as a default.<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] attach_one_usb()<br>
            [kyocera_gdi_a3] attach_one()<br>
            [kyocera_gdi_a3] connect_scanner() : INFO : connecting usb
            scanner device libusb:001:029<br>
            [kyocera_gdi_a3] connect_scanner() : successfully connected
            to usb scanner<br>
            [kyocera_gdi_a3] attach_one() : vendor 0x482, product 0x606<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() : found Kyocera scanner
            in libusb:001:029<br>
            [kyocera_gdi_a3] sane_get_devices() : Kyocera scanners found
            1 <br>
            [kyocera_gdi_a3] <<sane_get_devices<br>
            [kyocera_gdi_a3] >>sane_open<br>
            [kyocera_gdi_a3] get_device_from_name() : name =
            libusb:001:029<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div dir="ltr">
          <div>scanimage: open of device kyocera_gdi_a3:libusb:001:029
            failed: Invalid argument<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    This certainly seems to be the source of the problem. <br>
    <br>
    Firstly, I would check that the scanner doesn't require some manual
    operation to ready it for USB scanning.<br>
    <br>
    Secondly, since we don't have access to the Kyocera SANE backend
    source, perhaps we could get some more info from libusb:<br>
    <br>
    <span><span>LIBUSB_DEBUG=10 </span></span>scanimage
    -d kyocera_gdi_a3 -T<br>
    <br>
    There is likely to be a lot of output. <br>
    Perhaps stick into a file and give us a link to somewhere to
    download, or if the problematic part is obvious, then give let us
    see that segment with a bit of surrounding context.<br>
    <br>
    Cheers,<br>
    Ralph<br>
    <br>
  </div>

</blockquote></div>