LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-03-2021, 12:41 PM   #1
jacko203
LQ Newbie
 
Registered: May 2013
Posts: 4

Rep: Reputation: Disabled
Fujitsu fi-5120c scanner Error during device IO


Hi! I'd be grateful for any guidance.

I'm trying to use a Fujitsu fi-5120c scanner.
It connects OK and scanimage -L shows it.

Scanning individual pages with default settings often (not always) works as expected with correct image, but sometimes throws an error as below.

However, every 2nd / 3rd page will return a half completed scan in simple-scan and an IO error (see below).

Then scanner does not show up in scanimage -L until a USB unplug/replug, but does show with lsusb.

Arch 5.15.5-arch1-1
SANE version 1.0.32

I've not adjusted the fujitsu.conf in sane.d so the file is as default (below).

Quote:
[18:25:04.835304] [fujitsu] stat: read 13 bytes, retVal 0
[18:25:04.835310] [fujitsu] do_usb_cmd: finish
[18:25:04.835316] [fujitsu] read_from_scanner: got GOOD/EOF, returning GOOD
[18:25:04.835322] [fujitsu] read_from_scanner: read 63750 bytes
[18:25:04.835327] [fujitsu] copy_buffer: start
[18:25:04.835409] [fujitsu] copy_buffer: finish
[18:25:04.835416] [fujitsu] read_from_scanner: finish
[18:25:04.835422] [fujitsu] read_from_buffer: start
[18:25:04.835428] [fujitsu] read_from_buffer: si:0 re:63750 ml:17851 by:17851
[18:25:04.835434] [fujitsu] read_from_buffer: img to:2103750 rx:892500 tx:828750
[18:25:04.835440] [fujitsu] read_from_buffer: buf to:65536 rx:63750 tx:0
[18:25:04.835451] [fujitsu] read_from_buffer: finish
[18:25:04.835457] [fujitsu] check_for_cancel: start 1 0
[18:25:04.835462] [fujitsu] check_for_cancel: finish 0
[18:25:04.835468] [fujitsu] sane_read: finish 0
[18:25:04.835543] [fujitsu] sane_read: start
[18:25:04.835548] [fujitsu] read_from_scanner: start 0
[18:25:04.835562] [fujitsu] read_from_scanner: si:0 re:1211250 bs:65536 by:0 av:1786
[18:25:04.835569] [fujitsu] read_from_scanner: img to:2103750 rx:892500 tx:846601 li:700
[18:25:04.835574] [fujitsu] read_from_scanner: buf to:65536 rx:63750 tx:17851
[18:25:04.835579] [fujitsu] read_from_scanner: no bytes this pass
[18:25:04.835583] [fujitsu] read_from_buffer: start
[18:25:04.835588] [fujitsu] read_from_buffer: si:0 re:45899 ml:19125 by:19125
[18:25:04.835593] [fujitsu] read_from_buffer: img to:2103750 rx:892500 tx:846601
[18:25:04.835597] [fujitsu] read_from_buffer: buf to:65536 rx:63750 tx:17851
[18:25:04.835605] [fujitsu] read_from_buffer: finish
[18:25:04.835610] [fujitsu] check_for_cancel: start 1 0
[18:25:04.835614] [fujitsu] check_for_cancel: finish 0
[18:25:04.835619] [fujitsu] sane_read: finish 0
[18:25:04.835673] [fujitsu] sane_read: start
[18:25:04.835679] [fujitsu] read_from_scanner: start 0
[18:25:04.835684] [fujitsu] read_from_scanner: si:0 re:1211250 bs:65536 by:0 av:1786
[18:25:04.835690] [fujitsu] read_from_scanner: img to:2103750 rx:892500 tx:865726 li:700
[18:25:04.835695] [fujitsu] read_from_scanner: buf to:65536 rx:63750 tx:36976
[18:25:04.835702] [fujitsu] read_from_scanner: no bytes this pass
[18:25:04.835706] [fujitsu] read_from_buffer: start
[18:25:04.835711] [fujitsu] read_from_buffer: si:0 re:26774 ml:19125 by:19125
[18:25:04.835717] [fujitsu] read_from_buffer: img to:2103750 rx:892500 tx:865726
[18:25:04.835722] [fujitsu] read_from_buffer: buf to:65536 rx:63750 tx:36976
[18:25:04.835730] [fujitsu] read_from_buffer: finish
[18:25:04.835736] [fujitsu] check_for_cancel: start 1 0
[18:25:04.835742] [fujitsu] check_for_cancel: finish 0
[18:25:04.835747] [fujitsu] sane_read: finish 0
[18:25:04.835797] [fujitsu] sane_read: start
[18:25:04.835803] [fujitsu] read_from_scanner: start 0
[18:25:04.835810] [fujitsu] read_from_scanner: si:0 re:1211250 bs:65536 by:0 av:1786
[18:25:04.835815] [fujitsu] read_from_scanner: img to:2103750 rx:892500 tx:884851 li:700
[18:25:04.835821] [fujitsu] read_from_scanner: buf to:65536 rx:63750 tx:56101
[18:25:04.835826] [fujitsu] read_from_scanner: no bytes this pass
[18:25:04.835831] [fujitsu] read_from_buffer: start
[18:25:04.835836] [fujitsu] read_from_buffer: si:0 re:7649 ml:19125 by:7649
[18:25:04.835841] [fujitsu] read_from_buffer: img to:2103750 rx:892500 tx:884851
[18:25:04.835847] [fujitsu] read_from_buffer: buf to:65536 rx:63750 tx:56101
[18:25:04.835853] [fujitsu] read_from_buffer: finish
[18:25:04.835859] [fujitsu] sane_read: reset buffers
[18:25:04.835864] [fujitsu] check_for_cancel: start 1 0
[18:25:04.835869] [fujitsu] check_for_cancel: finish 0
[18:25:04.835875] [fujitsu] sane_read: finish 0
[18:25:04.835900] [fujitsu] sane_read: start
[18:25:04.835906] [fujitsu] read_from_scanner: start 0
[18:25:04.835911] [fujitsu] read_from_scanner: si:0 re:1211250 bs:65536 by:63750 av:65536
[18:25:04.835983] [fujitsu] read_from_scanner: img to:2103750 rx:892500 tx:892500 li:700
[18:25:04.835990] [fujitsu] read_from_scanner: buf to:65536 rx:0 tx:0
[18:25:04.835997] [fujitsu] do_usb_cmd: start
[18:25:04.836012] [fujitsu] cmd: writing 31 bytes, timeout 30000
[18:25:04.836017] [fujitsu] cmd: >>
[18:25:04.836024] [fujitsu] 000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C...............
[18:25:04.836031] [fujitsu] 010: 00 00 00 28 00 00 00 00 00 00 f9 06 00 00 00 ...(...........
[18:25:04.836066] [fujitsu] cmd: wrote 31 bytes, retVal 0
[18:25:04.836075] [fujitsu] in: reading 63750 bytes, timeout 30000
[18:25:10.028161] [fujitsu] in: retVal 9
[18:25:10.028182] [fujitsu] in: return error 'Error during device I/O'
[18:25:10.028187] [fujitsu] read_from_scanner: error reading data block status = 9
[18:25:10.028191] [fujitsu] read_from_scanner: read 0 bytes
[18:25:10.028198] [fujitsu] read_from_scanner: finish
[18:25:10.028213] [fujitsu] sane_read: front returning 9
[18:25:10.028258] [fujitsu] sane_cancel: start
[18:25:10.028272] [fujitsu] sane_cancel: finish
[18:25:10.028278] [fujitsu] sane_close: start
[18:25:10.028292] [fujitsu] mode_select_buff: start
[18:25:10.028296] [fujitsu] mode_select_buff: unsupported
[18:25:10.028301] [fujitsu] disconnect_fd: start
[18:25:10.028306] [fujitsu] disconnecting usb device
[18:25:10.028340] [fujitsu] disconnect_fd: finish
[18:25:10.028345] [fujitsu] sane_close: finish
^C
/etc/sane.d/fujitsu.conf:
Quote:
option buffer-size 65536

# To search for all FUJITSU scsi devices
scsi FUJITSU

# To use a specific scsi device
#scsi /dev/sg1

# For Fujitsu scanners connected via USB on a known device (kernel driver):
#usb /dev/usb/scanner0

# For Fujitsu scanners connected via USB using vendor and device ids (libusb):
#usb VENDORID PRODUCTID

# NOTE: if you have to add your device here- please send the id and model
# to the author via email, so it can be included in next version. kitno455 at
# gmail dot com - with Fujitsu in the subject line

#fi-4x20C
usb 0x04c5 0x1041
usb 0x04c5 0x1042

#fi-4530C
usb 0x04c5 0x1078

#fi-5750C
usb 0x04c5 0x1095

#fi-5110eox/2
usb 0x04c5 0x1096

#fi-5110C
usb 0x04c5 0x1097

#fi-5650C
usb 0x04c5 0x10ad

#fi-4x20C2
usb 0x04c5 0x10ae
usb 0x04c5 0x10af

#fi-4340C
usb 0x04c5 0x10cf

#fi-5x20C
usb 0x04c5 0x10e0
usb 0x04c5 0x10e1
I don't really know where to go next with this - can anyone point me in the right direction?

Thanks
 
Old 12-04-2021, 07:09 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,806

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Check if USB autosuspend (power management) is causing issues first...
https://askubuntu.com/questions/5514...ng-usb-scanner
 
Old 12-08-2021, 05:06 AM   #3
jacko203
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Check if USB autosuspend (power management) is causing issues first...
https://askubuntu.com/questions/5514...ng-usb-scanner
Thank you - tried this (no /etc/laptop-mode/ anyway).
Tried disabling USB autosuspend through udev rules as well, but don't think is enabled (udev change did nothing!).

Any other ideas?

Thanks!
 
Old 12-08-2021, 05:30 AM   #4
jacko203
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
I've switched the USB into what I presume is a USB 2 port (black) rather than the front case USB ports and the error appears to have gone...

Is this a driver issue then?

I'll keep testing
 
Old 12-08-2021, 03:10 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,806

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Indeed, some SANE drivers do have issues with USB3 connectivity. I recall some users disabling the XHCI mode in the BIOS or inhibiting the low-level USB kernel driver. However, the pragmatic option is just to connect to a USB2 port (where possible). A bug report is the only way to get this fixed properly.
 
  


Reply

Tags
fujitsu, sane



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to use Fujitsu fi-5120c scanner mfoley Linux - Hardware 22 05-06-2018 04:44 PM
Fujitsu adf scanner on debian oxykasper Linux - Hardware 2 08-28-2016 05:42 AM
Can I use Fujitsu Snapscan S300 Scanner with Linux? markw10 Linux - Hardware 1 07-19-2009 10:56 PM
Scanner help.. failed to open device snapscan/dev/usb/scanner johnathan Linux - Hardware 2 10-12-2007 06:06 PM
RHEL 4.0 & ICH7-SATA (fujitsu 80 GB) // No hardisk detected during installtion amitsharma_26 Red Hat 3 10-07-2006 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration