<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi Manuel,</div>

<div> </div>

<div>Unfortunately I have no solution for you, but I am also using a Fujitsu ScanScap iX500 as main device for developing (running Mac OS X / Darwin). I have not seen any issues with SANE for that device here.</div>

<div> </div>

<div>
<div>The "brain-dead" message is issued by the Fujitsu backend (fujitsu.c) during wait_scanner() which gets called inside connect_fd(). The call is commented with:</div>

<div> </div>

<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);"><span style="color: #000000">    </span>/* first generation usb scanners can get flaky if not closed </p>

<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);">     * properly after last use. very first commands sent to device </p>

<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);">     * must be prepared to correct this- see wait_scanner() */</p>
</div>

<div> </div>

<div>Maybe this helps you finding a solution.</div>

<div> </div>

<div>fujitsu.c: http://anonscm.debian.org/gitweb/?p=sane/sane-backends.git;a=blob_plain;f=backend/fujitsu.c;hb=refs/heads/master</div>

<div> </div>

<div>- Sven</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 24. März 2014 um 12:59 Uhr<br/>
<b>Von:</b> Krutzbeuazen <krutzbeuazen@gmx.net><br/>
<b>An:</b> sane-devel@lists.alioth.debian.org<br/>
<b>Betreff:</b> [sane-devel] Fujitsu ScanSnap iX500 "Brain-dead scanner" in SANE 1.0.25</div>

<div name="quoted-content">Dear list,<br/>
<br/>
I try to get a new Fujitsu ScanSnap iX500 to work on Debian 7.4 x64. The<br/>
scanner works on this machine with some proprietary software which<br/>
doesn't use SANE.<br/>
<br/>
I installed SANE from source, both into the regular folders and with<br/>
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var<br/>
I still have the original out-dated SANE installed, as the new manually<br/>
installed SANE doesn't resolve the xsane dependencies here.<br/>
<br/>
For testing I set<br/>
> sudo chmod -R a+w /dev/bus/usb/*<br/>
Normally an UDEV rule and the user being in 'plugdev' 'scanner' 'saned'<br/>
groups is supposed to set all permissions right.<br/>
<br/>
<br/>
I removed all other scanner/USB-IDs from the SANE config(s) and set the<br/>
buffer to 65536. With original configs the symptoms were the same.<br/>
<br/>
########################<br/>
<br/>
> sudo ldconfig -v | grep libsane<br/>
<br/>
ldconfig: Can't stat /lib/i486-linux-gnu: No such file or directory<br/>
ldconfig: Can't stat /usr/lib/i486-linux-gnu: No such file or directory<br/>
ldconfig: Path `/lib/x86_64-linux-gnu' given more than once<br/>
ldconfig: Path `/usr/lib/x86_64-linux-gnu' given more than once<br/>
libsane.so.1 -> libsane.so.1.0.25<br/>
libsane.so.1 -> libsane.so.1.0.22<br/>
libsane.so.1 -> libsane.so.1.0.25<br/>
<br/>
########################<br/>
<br/>
> sane-config --version<br/>
1.0.25<br/>
<br/>
########################<br/>
<br/>
> sane-find-scanner<br/>
found USB scanner (vendor=0x04c5 [Fujitsu], product=0x132b [ScanSnap<br/>
iX500]) at libusb:001:013<br/>
<br/>
########################<br/>
<br/>
<br/>
The first time I try to talk to the scanner, it seems to respond. From<br/>
the second time on, it seems dead. Only re-plugging the USB lets me talk<br/>
to it again, for one time.<br/>
I never got the scanner to physically do anything, like pulling paper or<br/>
changing the status LEDs.<br/>
<br/>
<br/>
########################<br/>
<br/>
First time after plugging USB in:<br/>
<br/>
> scanimage -L<br/>
[sanei_debug] Setting debug level of fujitsu to 5.<br/>
[fujitsu] sane_init: fujitsu backend 1.0.119, from sane-backends 1.0.25git<br/>
device `fujitsu:ScanSnap iX500:40368' is a FUJITSU ScanSnap iX500 scanner<br/>
<br/>
########################<br/>
<br/>
>From second time on:<br/>
<br/>
> scanimage -L<br/>
[sanei_debug] Setting debug level of fujitsu to 5.<br/>
[fujitsu] sane_init: fujitsu backend 1.0.119, from sane-backends 1.0.25git<br/>
[fujitsu] stat: return error 'Error during device I/O'<br/>
[fujitsu] WARNING: Brain-dead scanner. Hitting with stick<br/>
[fujitsu] stat: return error 'Error during device I/O'<br/>
[fujitsu] WARNING: Brain-dead scanner. Hitting with stick again<br/>
[fujitsu] stat: return error 'Error during device I/O'<br/>
[fujitsu] wait_scanner: error 'Error during device I/O'<br/>
[fujitsu] connect_fd: could not wait_scanner<br/>
<br/>
No scanners were identified. If you were expecting something different,<br/>
check that the scanner is plugged in, turned on and detected by the<br/>
sane-find-scanner tool (if appropriate). Please read the documentation<br/>
which came with this software (README, FAQ, manpages).<br/>
<br/>
########################<br/>
<br/>
Every time:<br/>
<br/>
> scanimage > test<br/>
[sanei_debug] Setting debug level of fujitsu to 5.<br/>
[fujitsu] sane_init: fujitsu backend 1.0.119, from sane-backends 1.0.25git<br/>
[fujitsu] stat: return error 'Error during device I/O'<br/>
[fujitsu] WARNING: Brain-dead scanner. Hitting with stick<br/>
[fujitsu] stat: return error 'Error during device I/O'<br/>
[fujitsu] WARNING: Brain-dead scanner. Hitting with stick again<br/>
[fujitsu] stat: return error 'Error during device I/O'<br/>
[fujitsu] wait_scanner: error 'Error during device I/O'<br/>
[fujitsu] connect_fd: could not wait_scanner<br/>
scanimage: open of device fujitsu:ScanSnap iX500:40368 failed: Error<br/>
during device I/O<br/>
<br/>
########################<br/>
<br/>
[sanei_debug] Setting debug level of fujitsu to 25.<br/>
<br/>
First time after plugging USB in:<br/>
<br/>
> scanimage -L<br/>
<a href="http://paste.debian.net/89425/" target="_blank">http://paste.debian.net/89425/</a><br/>
<br/>
<br/>
>From second time on:<br/>
<br/>
> scanimage -L<br/>
<a href="http://paste.debian.net/89426/" target="_blank">http://paste.debian.net/89426/</a><br/>
<br/>
########################<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
At this point I am lost here.<br/>
I would consider setting up a dedicated linux box for this, on another<br/>
distro if needed. The preferred solution would be to get it running on<br/>
my desktop computer, though ;-)<br/>
<br/>
I am grateful for any hints.<br/>
Please let me know if my way of formatting (and exporting to a pastebin)<br/>
needs to be improved for mailinglists too.<br/>
<br/>
Cheers from Germany,<br/>
<br/>
Manuel<br/>
<br/>
--<br/>
sane-devel mailing list: sane-devel@lists.alioth.debian.org<br/>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel</a><br/>
Unsubscribe: Send mail with subject "unsubscribe your_password"<br/>
to sane-devel-request@lists.alioth.debian.org</div>
</div>
</div></div></body></html>