Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble using xsane with a Fujitsu-6130 scanner [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Mon Mar 30, 2015 11:43 pm    Post subject: Trouble using xsane with a Fujitsu-6130 scanner [SOLVED] Reply with quote

I'm having issues getting my Fujitsu fi-6130 scanner to work. On a 32-bit Gentoo installation, everything works fine. This is a different computer on a 64-bit computer where I'm having trouble.

When I run xsane, I receive the message:

Code:
Failed to open device `fujitsu:fi-6130dj:106822':
Error during device I/O


It is recognized by the computer under dmesg:

Code:
[15343.933202] usb 3-6: USB disconnect, device number 4
[15347.241897] usb 3-6: new high-speed USB device number 5 using xhci_hcd
[15347.388093] usb 3-6: New USB device found, idVendor=04c5, idProduct=114f
[15347.388095] usb 3-6: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[15347.388237] usb 3-6: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
[15347.388239] usb 3-6: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes


It's also recognized by sane-find-scanner:

Code:

  # 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.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04c5, product=0x114f) at libusb:003:005
  # 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.


However, it is not recognized by scanimage -L

Code:
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).


I do have the Fujitsu backends to sane installed:

Code:
-abi_x86_32
-avahi
-doc
-gphoto2
+ipv6
+sane_backends_abaton
+sane_backends_agfafocus
+sane_backends_apple
+sane_backends_artec
+sane_backends_artec_eplus48u
+sane_backends_as6e
+sane_backends_avision
+sane_backends_bh
+sane_backends_canon
+sane_backends_canon630u
+sane_backends_canon_dr
-sane_backends_canon_pp
+sane_backends_cardscan
+sane_backends_coolscan
+sane_backends_coolscan2
+sane_backends_coolscan3
+sane_backends_dc210
+sane_backends_dc240
+sane_backends_dc25
+sane_backends_dell1600n_net
+sane_backends_dmc
+sane_backends_epjitsu
+sane_backends_epson
+sane_backends_epson2
+sane_backends_fujitsu
+sane_backends_genesys
+sane_backends_gt68xx
+sane_backends_hp
+sane_backends_hp3500
+sane_backends_hp3900
+sane_backends_hp4200
+sane_backends_hp5400
+sane_backends_hp5590
+sane_backends_hpljm1005
-sane_backends_hpsj5s
+sane_backends_hs2p
+sane_backends_ibm
+sane_backends_kodak
+sane_backends_kodakaio
+sane_backends_kvs1025
+sane_backends_kvs20xx
-sane_backends_kvs40xx
+sane_backends_leo
+sane_backends_lexmark
+sane_backends_ma1509
+sane_backends_magicolor
+sane_backends_matsushita
+sane_backends_microtek
+sane_backends_microtek2
+sane_backends_mustek
-sane_backends_mustek_pp
+sane_backends_mustek_usb
-sane_backends_mustek_usb2
+sane_backends_nec
+sane_backends_net
+sane_backends_niash
+sane_backends_p5
+sane_backends_pie
+sane_backends_pixma
+sane_backends_plustek
+sane_backends_plustek_pp
-sane_backends_pnm
+sane_backends_qcam
+sane_backends_ricoh
+sane_backends_rts8891
+sane_backends_s9036
+sane_backends_sceptre
+sane_backends_sharp
+sane_backends_sm3600
+sane_backends_sm3840
+sane_backends_snapscan
+sane_backends_sp15c
+sane_backends_st400
+sane_backends_stv680
+sane_backends_tamarack
+sane_backends_teco1
+sane_backends_teco2
+sane_backends_teco3
+sane_backends_test
+sane_backends_u12
+sane_backends_umax
+sane_backends_umax1220u
+sane_backends_umax_pp
+sane_backends_xerox_mfp
-snmp
-systemd
+threads
+usb
-v4l
-xinetd


Here's my emerge --info
Code:

# emerge --info
Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 3.16.5-gentoo x86_64)
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4910MQ_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    16359840 total,  11666148 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Mon, 30 Mar 2015 18:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r4
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3, 4.9.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r2
Repositories: gentoo benf
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://mirrors.rit.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/benf"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi amd64 apm bash-completion berkdb bzip2 cdda cddb cli cracklib crypt css cxx dbus djvu dri dvd dvdr ffmpeg flac fortran gcj gdbm gif gnuplot gnustep gnutls hdf5 iconv ipv6 jpeg jpeg2k mmx mmxext modules mono mozilla mp3 mp4 mpeg mpi mplayer multilib ncurses nls nptl ocaml ocamlopt offensive ogg opengl openmp pam pcre pdf png readline session sse sse2 ssl svg tcpd theora threads tiff unicode usb vorbis x264 xv zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nvidia modesetting" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Finally, I am in the scanner group and the above also does not change when running as root.

Thanks for the help.


Last edited by hfk22 on Tue Mar 31, 2015 9:25 am; edited 1 time in total
Back to top
View user's profile Send private message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Tue Mar 31, 2015 6:35 am    Post subject: Reply with quote

What's really odd is that if I unplug the scanner and then plug it in, scanimage -L works on the first run:

Code:
device `fujitsu:fi-6130dj:106822' is a FUJITSU fi-6130dj scanner


However, if I run scanimage -L a second time, I receive

Code:
$ 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).


The only difference between the verbose output (SANE_DEBUG_DLL=128 scanimage -L) between the two is the final message and

Code:
[dll] sane_get_devices: found 0 devices

Code:
[dll] sane_get_devices: found 1 devices
Back to top
View user's profile Send private message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Tue Mar 31, 2015 7:08 am    Post subject: Reply with quote

Also, if it helps, here's the primary difference in the strace of the scanimage -L that works:

Code:
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff161816f8) = 0
1782  timerfd_settime(10, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff161816f8) = -1 EAGAIN (Resource temporarily unavailable)
1782  timerfd_settime(10, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={1756, 764607000}}, NULL) = 0
1782  ioctl(12, USBDEVFS_SUBMITURB, 0x2600a40) = 0
1782  poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=10, events=POLLIN}, {fd=12, events=POLLOUT}], 4, 60000) = 1 ([{fd=12, revents=POLLOUT}])
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff16181748) = 0
1782  timerfd_settime(10, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff16181748) = -1 EAGAIN (Resource temporarily unavailable)
1782  timerfd_settime(10, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={1756, 764682000}}, NULL) = 0
1782  ioctl(12, USBDEVFS_SUBMITURB, 0x2600a40) = 0
1782  poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=10, events=POLLIN}, {fd=12, events=POLLOUT}], 4, 60000) = 1 ([{fd=12, revents=POLLOUT}])
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff16181748) = 0
1782  timerfd_settime(10, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff16181748) = -1 EAGAIN (Resource temporarily unavailable)
1782  timerfd_settime(10, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={1756, 765837000}}, NULL) = 0
1782  ioctl(12, USBDEVFS_SUBMITURB, 0x2600a40) = 0
1782  poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=10, events=POLLIN}, {fd=12, events=POLLOUT}], 4, 60000) = 1 ([{fd=12, revents=POLLOUT}])
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff16181748) = 0
1782  timerfd_settime(10, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff16181748) = -1 EAGAIN (Resource temporarily unavailable)
1782  timerfd_settime(10, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={1756, 766256000}}, NULL) = 0
1782  ioctl(12, USBDEVFS_SUBMITURB, 0x2600a40) = 0
1782  poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=10, events=POLLIN}, {fd=12, events=POLLOUT}], 4, 60000) = 1 ([{fd=12, revents=POLLOUT}])
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff161815c8) = 0
1782  timerfd_settime(10, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff161815c8) = -1 EAGAIN (Resource temporarily unavailable)
1782  timerfd_settime(10, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={1756, 766391000}}, NULL) = 0
1782  ioctl(12, USBDEVFS_SUBMITURB, 0x2600a40) = 0
1782  poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=10, events=POLLIN}, {fd=12, events=POLLOUT}], 4, 60000) = 1 ([{fd=12, revents=POLLOUT}])
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff161815c8) = 0
1782  timerfd_settime(10, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff161815c8) = -1 EAGAIN (Resource temporarily unavailable)
1782  timerfd_settime(10, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={1756, 767904000}}, NULL) = 0
1782  ioctl(12, USBDEVFS_SUBMITURB, 0x2600a40) = 0
1782  poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=10, events=POLLIN}, {fd=12, events=POLLOUT}], 4, 60000) = 1 ([{fd=12, revents=POLLOUT}])
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff161815c8) = 0
1782  timerfd_settime(10, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff161815c8) = -1 EAGAIN (Resource temporarily unavailable)
1782  timerfd_settime(10, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={1756, 768319000}}, NULL) = 0
1782  ioctl(12, USBDEVFS_SUBMITURB, 0x2600a40) = 0
1782  poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=10, events=POLLIN}, {fd=12, events=POLLOUT}], 4, 60000) = 1 ([{fd=12, revents=POLLOUT}])
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fff16181678) = 0


and the one that doesn't:

Code:
1782  ioctl(12, USBDEVFS_DISCARDURB, 0x25b7a40) = 0
1782  timerfd_settime(10, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
1782  poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=10, events=POLLIN}, {fd=12, events=POLLOUT}], 4, 0) = 1 ([{fd=12, revents=POLLOUT}])
1782  ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7fffbb39f1c8) = 0


There are a couple of more sections like this, but they're pretty similar in their differences.
Back to top
View user's profile Send private message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 36

PostPosted: Tue Mar 31, 2015 9:24 am    Post subject: Reply with quote

It's a bug in the current media-gfx/sane-backends. Basically, it appears like there's a bad interaction between XHCI and the current sane-backends, which is fortunately fixed on the current git version. I filed a bug here:

https://bugs.gentoo.org/show_bug.cgi?id=545130

For the impatient, there is a mostly working ebuild that hooks into the git repository already on Github:

https://github.com/microcai/gentoo-zh/blob/master/media-gfx/sane-backends/sane-backends-9999.ebuild

I needed to change the EGIT_REPO_URI to

EGIT_REPO_URI="git://git.debian.org/sane/sane-backends.git"

but then it ran fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum