Bug 1228954 - SnapScan 1212u: scanning is broken with I/O error.
Summary: SnapScan 1212u: scanning is broken with I/O error.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sane-backends
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-07 03:09 UTC by Ernesto Manríquez
Modified: 2015-06-24 15:56 UTC (History)
1 user (show)

Fixed In Version: sane-backends-1.0.24-14.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-21 00:23:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ernesto Manríquez 2015-06-07 03:09:39 UTC
Description of problem:

The description is basically this.

http://lists.alioth.debian.org/pipermail/sane-devel/2015-February/033081.html

"On Mon, Feb 2, 2015 at 2:35 PM, Laurent Charrière <lcharriere at gmail.com> wrote:
> Hi,
>
> Gavin Carr at http://www.openfusion.net/linux/scansnap_1300i reports that he
> was able to get his Fujitsu ScanSnap 1300i ADF scanner to work with SANE on
> Centos 6.
>
> I tried to do the same things he did (update /etc/sane.d/epjitsu.conf, add a
> udev rule) on Fedora 20 and 21, but I'm running into an "Error during device
> I/O":
>
> * sane-find-scanners finds the scanner
> found USB scanner (vendor=0x04c5 [FUJITSU], product=0x128d [ScanSnap
> S1300i]) at libusb:002:003
>
> * scanimage -L sees it:
> device `epjitsu:libusb:002:003' is a FUJITSU ScanSnap S1300i scanner
>
> * scanimage -d epjitsu:libusb:002:003 --format=tiff >image.tiff
> scanimage: sane_start: Error during device I/O
>
> (If the sheet is not engaged in the ADF, the above command causes the
> scanner to start feeding it, as it does on a Mac).
>
> * Trying to use the Centos 6 binaries and libraries on Fedora 20 yields the
> same I/O error on Fedora 20. On Fedora 21, I get scanimage: open of device
> epjitsu:libusb:002:003 failed: Invalid argument.
>
> Setting SANE_DEBUG_FUJITSU to 35 and SANE_DEBUG_SANEI_USB to 128, the
> following is the last few lines of the output I get:
> [sanei_usb] 000 1B D2                                           ..
> [sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 2 bytes
> [sanei_usb] sanei_usb_read_bulk: trying to read 1 bytes
> [sanei_usb] 000 06                                              .
> [sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
> [sanei_usb] sanei_usb_read_bulk: trying to read 24584 bytes
> [sanei_usb] sanei_usb_read_bulk: read failed: Operation timed out
> scanimage: sane_start: Error during device I/O
> [sanei_usb] sanei_usb_write_bulk: trying to write 2 bytes
> [sanei_usb] 000 1B D0                                           ..
> [sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 2 bytes
> [sanei_usb] sanei_usb_read_bulk: trying to read 1 bytes
> [sanei_usb] 000 15                                              .
> [sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
> [sanei_usb] sanei_usb_close: closing device 0
>
> dmesg says the following about the scanner:
> [ 3775.121145] usb 2-1.1: new high-speed USB device number 3 using ehci-pci
> [ 3775.209209] usb 2-1.1: New USB device found, idVendor=04c5,
> idProduct=128d
> [ 3775.209214] usb 2-1.1: New USB device strings: Mfr=1, Product=2,
> SerialNumber=0
> [ 3775.209217] usb 2-1.1: Product: ScanSnap S1300i
> [ 3775.209220] usb 2-1.1: Manufacturer: FUJITSU
>
> (I'm including the dmesg snippet because Gavin's dmesg reports that the
> device is using ehci_hcd).
>
> The device is connected to a Lenovo Thinkpad T410. I tried two different USB
> ports with the same result. The device works fine when connected to a Mac.
> The Thinkpad USB ports work fine otherwise.
>
> Does anybody have any suggestions as to the next steps I can take to
> investigate this?
>
> Thanks,
>
> Laurent
>"

The same thing happens here, with my SnapScan 1212u.

There is a fix, referenced by the SANE development team. 

"-m. allan noah kitno455 at gmail.com 
I assume your usb ports are controlled by the xhci_hcd driver. This
driver behaves differently from the older ehci_hcd driver, and
requires a patch to sane-backends. If you build our development
version from git, you will have this patch, and the scanner should
work.

allan"

I watched the changelog for sane-backends-1.0.24-13.fc22 and there is not such a patch, so, please, include it.

Comment 1 Nils Philippsen 2015-06-08 09:56:22 UTC
Hi Ernesto,

thanks for the bug report and heads-up regarding the available patch. I'll build a new package release with it shortly.

Comment 2 Fedora Update System 2015-06-09 01:50:10 UTC
sane-backends-1.0.24-14.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/sane-backends-1.0.24-14.fc22

Comment 3 Fedora Update System 2015-06-09 01:50:18 UTC
sane-backends-1.0.24-14.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/sane-backends-1.0.24-14.fc21

Comment 4 Fedora Update System 2015-06-09 01:51:28 UTC
sane-backends-1.0.24-14.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/sane-backends-1.0.24-14.fc20

Comment 5 Fedora Update System 2015-06-10 19:07:02 UTC
Package sane-backends-1.0.24-14.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sane-backends-1.0.24-14.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9696/sane-backends-1.0.24-14.fc21
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-06-21 00:23:02 UTC
sane-backends-1.0.24-14.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-06-21 00:29:21 UTC
sane-backends-1.0.24-14.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-06-24 15:56:34 UTC
sane-backends-1.0.24-14.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.