Re: [sane-devel] Fujitsu iX500 - No scanners were identified.

2017-10-23 Thread m. allan noah
The SANE_USB_WORKAROUND env var was added in sane-backends 1.0.27, so
I recommend an upgrade.

allan

On Mon, Oct 23, 2017 at 9:18 AM, Jiri Kanicky  wrote:
> Hi Allan,
>
>
>
> Thank you for your response. I really appreciate it.
>
>
>
> Currently I have latest sane-backends from Debian SID. Do I have to install
> the developer version or the SANE_USB_WORKAROUND variable also works in
> current debian version? As a workaround I might prefer to use the USB 2.0
> Type B plug until everything is fixed in the future or until I get new
> scanner. This is much easier workaround then maintaining the developer
> version. :). I can also try the experimental repo with sane-backends
> (1.0.27-1~experimental2) if needed.
>
>
>
> Here are some details for you.
>
>
>
> # dpkg -l | grep libsane
>
> ii libsane:amd64 1.0.25-4.1
>
> ii libsane-common 1.0.25-4.1
>
> ii libsane-extras:amd64 1.0.22.5
>
> ii libsane-extras-common 1.0.22.5
>
> Using cable with USB 3.0 Type B plug:
>
> ---
>
>
>
> jiri@superman:~$ SANE_USB_WORKAROUND=1 scanimage -L
> device `fujitsu:ScanSnap iX500:64324' is a FUJITSU ScanSnap iX500 scanner
>
>
> jiri@superman:~$ SANE_USB_WORKAROUND=1 scanimage -L
>
> No scanners were identified. If you were expecting something different,
> check that the scanner is plugged in, turned on and detected by the
> sane-find-scanner tool (if appropriate). Please read the documentation
> which came with this software (README, FAQ, manpages).
>
>
>
> jiri@superman:~$ sane-find-scanner
>
>  # sane-find-scanner will now attempt to detect your scanner. If the
>  # result is different from what you expected, first make sure your
>  # scanner is powered up and properly connected to your computer.
>
>  # No SCSI scanners found. If you expected something different, make sure
> that
>  # you have loaded a kernel SCSI driver for your SCSI adapter.
>
> found USB scanner (vendor=0x04c5 [Fujitsu], product=0x132b [ScanSnap iX500])
> at libusb:002:021
> could not open USB device 0x1d6b/0x0003 at 002:001: Access denied
> (insufficient permissions)
> could not open USB device 0x1bcf/0x2c6b at 001:004: Access denied
> (insufficient permissions)
> could not open USB device 0x1044/0x7a06 at 001:003: Access denied
> (insufficient permissions)
> could not open USB device 0x8087/0x0a2b at 001:002: Access denied
> (insufficient permissions)
> could not open USB device 0x1d6b/0x0002 at 001:001: Access denied
> (insufficient permissions)
>  # Your USB scanner was (probably) detected. It may or may not be supported
> by
>  # SANE. Try scanimage -L and read the backend's manpage.
>
>  # Not checking for parallel port scanners.
>
>  # Most Scanners connected to the parallel port or other proprietary ports
>  # can't be detected by this program.
>
>  # You may want to run this program as root to find all devices. Once you
>  # found the scanner devices, be sure to adjust access permissions as
>  # necessary.
>
> Using cable with USB 2.0 Type B plug:
>
> -
>
>
>
> jiri@superman:~$ scanimage -L
> device `fujitsu:ScanSnap iX500:64324' is a FUJITSU ScanSnap iX500 scanner
>
>
> jiri@superman:~$ scanimage -L
> device `fujitsu:ScanSnap iX500:64324' is a FUJITSU ScanSnap iX500 scanner
>
>
> jiri@superman:~$ sane-find-scanner
>
>  # sane-find-scanner will now attempt to detect your scanner. If the
>  # result is different from what you expected, first make sure your
>  # scanner is powered up and properly connected to your computer.
>
>  # No SCSI scanners found. If you expected something different, make sure
> that
>  # you have loaded a kernel SCSI driver for your SCSI adapter.
>
> could not open USB device 0x1d6b/0x0003 at 002:001: Access denied
> (insufficient permissions)
> could not open USB device 0x1bcf/0x2c6b at 001:004: Access denied
> (insufficient permissions)
> could not open USB device 0x1044/0x7a06 at 001:003: Access denied
> (insufficient permissions)
> could not open USB device 0x8087/0x0a2b at 001:002: Access denied
> (insufficient permissions)
> found USB scanner (vendor=0x04c5 [Fujitsu], product=0x132b [ScanSnap iX500])
> at libusb:001:024
> could not open USB device 0x1d6b/0x0002 at 001:001: Access denied
> (insufficient permissions)
>  # Your USB scanner was (probably) detected. It may or may not be supported
> by
>  # SANE. Try scanimage -L and read the backend's manpage.
>
>  # Not checking for parallel port scanners.
>
>  # Most Scanners connected to the parallel port or other proprietary ports
>  # can't be detected by this program.
>
>  # You may want to run this program as root to find all devices. Once you
>  # found the scanner devices, be sure to adjust access permissions as
>  # necessary.
>
>
>
> - Jiri
>
>
> On Sunday, 22 October 2017 8:21:46 AM AEDT m. allan noah wrote:
>
>> What was the outcome from my suggestions last year?
>
>>
>
>> allan
>
>>
>
>> On Sat, Oct 21, 2017 at 12:09 PM, Jiri Kanicky  wrote:

Re: [sane-devel] Fujitsu iX500 - No scanners were identified.

2017-10-22 Thread m. allan noah
What was the outcome from my suggestions last year?

allan

On Sat, Oct 21, 2017 at 12:09 PM, Jiri Kanicky  wrote:
> Hi,
>
> I know this is old topic, but I just would like to everyone know that:
>
> 1. When I use USB 3.0 Type B Plug connector (cable which comes with the
> scanner), scanimage -L recognizes the scanner only once and applications like
> Simple Scan or Skanlite are not able to scan.
>
> 2. However when I use USB 2.0 Type B Plug connector (i used cable from my
> externar HDD), everything seems to work just fine.
>
> My notebook has got all USB ports USB 3.0 and I don't have USB 2 hub to test.
>
> Anyway using cable with old USB 2.0 B plug is simple workaround.
>
> If I can provide any debug data, which can help to fix the issue, please let 
> me
> know and I can provide it for both cables.
>
> - Jiri
>
> On Monday, 21 November 2016 9:02:21 PM AEDT m. allan noah wrote:
>> You did not tell us what you upgraded? Sane-backends, your scanner, your
>> kernel?
>>
>> This sounds like a pretty typical linux usb bug. You might need to
>> install a development version of sane-backends from our git repo. Once
>> you have built and installed a sane-backends git snapshot (using the
>> info in README.linux), you can run scanimage -L repeatedly. You may
>> find that the scanner only shows up intermittently. If that is the
>> case, try running this repeatedly instead:
>>
>> SANE_USB_WORKAROUND=1 scanimage -L
>>
>> That might work better. If so, you will have to put
>> SANE_USB_WORKAROUND=1 into your environment.
>>
>> Oh, and BTW, your scanner is not supported by the snapscan backend.
>> Try fujitsu instead.
>>
>> allan
>>
>> On Mon, Nov 21, 2016 at 6:40 AM, Jiri  wrote:
>> > Hi,
>> >
>> > [Debian Sid]
>> >
>> > I started having problem with Fujitsu iX500 scanner after upgrade. It used
>> > to work fine, but now it seems the system identifies the scanner for a
>> > just
>> > a while and but apps cannot use it.
>> >
>> > Here is example. I run the following command two times right after each
>> > other. The scanner is recognized on first run (after plugging USB in), but
>> > when I run it second time it says the scanner was not identified.
>> >
>> > Any help would be appreciated.
>> >
>> >
>> > ganomi@knightrider:~$ SANE_DEBUG_FUJITSU=15 scanimage -L
>> > [sanei_debug] Setting debug level of fujitsu to 15.
>> > [fujitsu] sane_init: start
>> > [fujitsu] sane_init: fujitsu backend 1.0.127, from sane-backends 1.0.25
>> > [fujitsu] sane_init: finish
>> > [fujitsu] sane_get_devices: start
>> > [fujitsu] sane_get_devices: reading config file fujitsu.conf
>> > [fujitsu] sane_get_devices: setting "buffer-size" to 65536
>> > [fujitsu] sane_get_devices: looking for 'scsi FUJITSU'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1041'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1042'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1078'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1095'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1096'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1097'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10ad'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10ae'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10af'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10cf'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e0'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e1'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e2'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e6'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e7'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10f2'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10fe'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1135'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114a'
>> > [fujitsu] sane_get_devices: config option "buffer-size" (262144) is >
>> > 65536, warning!
>> > [fujitsu] sane_get_devices: setting "buffer-size" to 262144
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114d'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114e'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114f'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1150'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1155'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x116f'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1174'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1175'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1176'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1177'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1178'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x119d'
>> > [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x119e'
>> > 

Re: [sane-devel] Fujitsu iX500 - No scanners were identified.

2016-11-21 Thread m. allan noah
You did not tell us what you upgraded? Sane-backends, your scanner, your kernel?

This sounds like a pretty typical linux usb bug. You might need to
install a development version of sane-backends from our git repo. Once
you have built and installed a sane-backends git snapshot (using the
info in README.linux), you can run scanimage -L repeatedly. You may
find that the scanner only shows up intermittently. If that is the
case, try running this repeatedly instead:

SANE_USB_WORKAROUND=1 scanimage -L

That might work better. If so, you will have to put
SANE_USB_WORKAROUND=1 into your environment.

Oh, and BTW, your scanner is not supported by the snapscan backend.
Try fujitsu instead.

allan



On Mon, Nov 21, 2016 at 6:40 AM, Jiri  wrote:
> Hi,
>
> [Debian Sid]
>
> I started having problem with Fujitsu iX500 scanner after upgrade. It used
> to work fine, but now it seems the system identifies the scanner for a just
> a while and but apps cannot use it.
>
> Here is example. I run the following command two times right after each
> other. The scanner is recognized on first run (after plugging USB in), but
> when I run it second time it says the scanner was not identified.
>
> Any help would be appreciated.
>
>
> ganomi@knightrider:~$ SANE_DEBUG_FUJITSU=15 scanimage -L
> [sanei_debug] Setting debug level of fujitsu to 15.
> [fujitsu] sane_init: start
> [fujitsu] sane_init: fujitsu backend 1.0.127, from sane-backends 1.0.25
> [fujitsu] sane_init: finish
> [fujitsu] sane_get_devices: start
> [fujitsu] sane_get_devices: reading config file fujitsu.conf
> [fujitsu] sane_get_devices: setting "buffer-size" to 65536
> [fujitsu] sane_get_devices: looking for 'scsi FUJITSU'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1041'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1042'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1078'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1095'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1096'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1097'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10ad'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10ae'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10af'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10cf'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e0'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e1'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e2'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e6'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e7'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10f2'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10fe'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1135'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114a'
> [fujitsu] sane_get_devices: config option "buffer-size" (262144) is > 65536,
> warning!
> [fujitsu] sane_get_devices: setting "buffer-size" to 262144
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114d'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114e'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114f'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1150'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1155'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x116f'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1174'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1175'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1176'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1177'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1178'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x119d'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x119e'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11a2'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11f1'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11f2'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11f3'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11f4'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11fc'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1213'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x128e'
> [fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x132b'
> [fujitsu] attach_one: start
> [fujitsu] attach_one: looking for 'libusb:003:004'
> [fujitsu] connect_fd: start
> [fujitsu] connect_fd: opening USB device
> [fujitsu] wait_scanner: start
> [fujitsu] do_usb_cmd: start
> [fujitsu] do_usb_cmd: finish
> [fujitsu] wait_scanner: finish
> [fujitsu] connect_fd: finish
> [fujitsu] init_inquire: start
> [fujitsu] do_usb_cmd: start
> [fujitsu] do_usb_cmd: finish
> [fujitsu] init_inquire: Found FUJITSU scanner ScanSnap iX500 version 0L00 at
> libusb:003:004
> [fujitsu] inquiry options
> [fujitsu]   color offset: 0 lines
> [fujitsu]   long gray scan: 1
> 

[sane-devel] Fujitsu iX500 - No scanners were identified.

2016-11-21 Thread Jiri
Hi,

[Debian Sid]

I started having problem with Fujitsu iX500 scanner after upgrade. It
used to work fine, but now it seems the system identifies the scanner
for a just a while and but apps cannot use it.

Here is example. I run the following command two times right after each
other. The scanner is recognized on first run (after plugging USB in),
but when I run it second time it says the scanner was not identified.

Any help would be appreciated.


ganomi@knightrider:~$ SANE_DEBUG_FUJITSU=15 scanimage -L 
[sanei_debug] Setting debug level of fujitsu to 15.
[fujitsu] sane_init: start
[fujitsu] sane_init: fujitsu backend 1.0.127, from sane-backends 1.0.25
[fujitsu] sane_init: finish
[fujitsu] sane_get_devices: start
[fujitsu] sane_get_devices: reading config file fujitsu.conf
[fujitsu] sane_get_devices: setting "buffer-size" to 65536
[fujitsu] sane_get_devices: looking for 'scsi FUJITSU'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1041'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1042'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1078'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1095'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1096'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1097'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10ad'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10ae'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10af'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10cf'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e0'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e1'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e2'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e6'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10e7'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10f2'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x10fe'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1135'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114a'
[fujitsu] sane_get_devices: config option "buffer-size" (262144) is >
65536, warning!
[fujitsu] sane_get_devices: setting "buffer-size" to 262144
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114d'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114e'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x114f'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1150'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1155'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x116f'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1174'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1175'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1176'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1177'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1178'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x119d'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x119e'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11a2'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11f1'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11f2'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11f3'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11f4'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x11fc'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x1213'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x128e'
[fujitsu] sane_get_devices: looking for 'usb 0x04c5 0x132b'
[fujitsu] attach_one: start
[fujitsu] attach_one: looking for 'libusb:003:004'
[fujitsu] connect_fd: start
[fujitsu] connect_fd: opening USB device
[fujitsu] wait_scanner: start
[fujitsu] do_usb_cmd: start
[fujitsu] do_usb_cmd: finish
[fujitsu] wait_scanner: finish
[fujitsu] connect_fd: finish
[fujitsu] init_inquire: start
[fujitsu] do_usb_cmd: start
[fujitsu] do_usb_cmd: finish
[fujitsu] init_inquire: Found FUJITSU scanner ScanSnap iX500 version
0L00 at libusb:003:004
[fujitsu] inquiry options
[fujitsu]   color offset: 0 lines
[fujitsu]   long gray scan: 1
[fujitsu]   long color scan: 1
[fujitsu]   emulation mode: 0
[fujitsu]   CMP/CGA: 0
[fujitsu]   background back: 0
[fujitsu]   background front: 0
[fujitsu]   background fb: 0
[fujitsu]   back only scan: 1
[fujitsu]   duplex offset: 0 lines
[fujitsu] init_inquire: finish
[fujitsu] init_vpd: start
[fujitsu] do_usb_cmd: start
[fujitsu] do_usb_cmd: finish
[fujitsu] init_vpd: length=8b
[fujitsu] standard options
[fujitsu]   basic x res: 600 dpi
[fujitsu]   basic y res: 600 dpi
[fujitsu]   step x res: 1 dpi
[fujitsu]   step y res: 1 dpi
[fujitsu]   max x res: 600 dpi
[fujitsu]   max y res: 600 dpi
[fujitsu]   min x res: 50 dpi
[fujitsu]   min y res: 50 dpi
[fujitsu]   60 dpi: 1
[fujitsu]   75 dpi: 1
[fujitsu]   100 dpi: 1
[fujitsu]   120 dpi: 1
[fujitsu]   150 dpi: 1
[fujitsu]   160 dpi: 1
[fujitsu]   180 dpi: 1
[fujitsu]   200 dpi: 1
[fujitsu]   240 dpi: 1
[fujitsu]   300 dpi: 1
[fujitsu]   320 dpi: 1
[fujitsu]   400