7

In theory this scanner does work under Linux and Ubuntu. I've found this document that I tried to follow.

http://luuklangens.nl/blog/howto-fujitsu-scansnap-s1300-s300-ubuntu-linux

I install sane, copy firmware, confirm the location in the config etc. Everything looks good.

Potential problem areas

sudo sane-find-scanner

output:

# 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.

found SCSI processor "Marvell 91xx Config 1.01" at /dev/sg5
# Your SCSI scanner was detected. It may or may not be supported by SANE. Try
# scanimage -L and read the backend's manpage.

could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
found USB scanner (vendor=0x04c5 [FUJITSU], product=0x128d [ScanSnap S1300i]) at    libusb:005:007
could not fetch string descriptor: Pipe error
# 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.

Okay. So the scanner is detected and listed, it prints a bunch of extra noise that

# 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).

Okay, let's verify the firmware files:

ls -lh  /usr/share/sane/epjitsu 
total 136K
-rw-r----- 1 root root 65K Jan  1 17:49 1300_0C26.nal
-rw-r----- 1 root root 65K Jan  1 17:49 300_0C00.nal

Looking at the configuration file: (snippets)

# Fujitsu S300
firmware /usr/share/sane/epjitsu/300_0C00.nal
usb 0x04c5 0x1156

# Fujitsu S1300
firmware /usr/share/sane/epjitsu/1300_0C26.nal
usb 0x04c5 0x11ed

Last thing I tried was to pull the line from sane-find-scanner and update the config

sane-find-scanner returns a different product ID. I updated the config file above, restarted the sane service, I ran scanimage -L still, scanner not detected.

For reference I had this working on this same computer under a virtualbox VM. If I can get it to work under windows that would be ideal. Any suggestion would be much appreciated.


Update: I revisited the behavior after adding the 1300i firmware and it's still not working but.

Once in a while when I do run this is the output. If I run it again it'll fail.

scanimage -L
device `epjitsu:libusb:005:008' is a FUJITSU ScanSnap S1300i scanner

also sudo gscan2pdf and sudo simple-scan both fail to detect a scanner. It fails with and without sudo permissions.

csgeek
  • 1,639
  • 2
  • 15
  • 22
  • The post by Gavin Carr can be helpful to you. May be you can try R&D inn UBUNTU done by him on CentOS, [here is the Link](http://www.openfusion.net/linux/scansnap_1300i). He had same issue in CentOS, then download new firmware related to S1300I specific. You can at least give it a shot. Hope this might turn helpful to you. – Novice Jan 06 '15 at 09:22
  • Looks like http://www.openfusion.net/public/files/1300i_0D12.nal is required in the firmware. Gavin Carr's account suggests i1300 =/= i1300i. – Mark Williams Jan 08 '15 at 16:23
  • I did add the 1300i line and it's still no go. firmware /usr/share/sane/epjitsu/1300i_0D12.nal usb 0x04c5 0x128d I also looked at http://www.openfusion.net/linux/scansnap_1300i and it didn't yield any different results. – csgeek Jan 11 '15 at 20:16
  • You may find this helpful: http://luuklangens.nl/blog/howto-fujitsu-scansnap-s1300-s300-ubuntu-linux – Elder Geek Jan 12 '15 at 15:24
  • @ElderGeek that was surprisingly helpful. it's unstable, but I did manage to get a single page to scan. Trying to repeat the procedure and see how it goes. – csgeek Jan 13 '15 at 04:35
  • well, simple-scan requires root to detect the scanner, though that's probably a udev issue. It works the first time but seems to fail on a second run. If you want to post your comment as an answer @ElderGeek I'll give you credit for the answer. I think it's as close as i'll get to having this scanner working. – csgeek Jan 13 '15 at 05:20
  • seems to fail on the second run? Can you be more specific? – Elder Geek Jan 13 '15 at 14:24
  • I'd rather the answer was complete..... – Elder Geek Jan 13 '15 at 14:45
  • Are you on a USB2 or USB3 port? It seems there are some bugs with USB3.... – Elder Geek Jan 13 '15 at 14:47
  • USB 2.x. I'll play with it some more tonight but it seems like the first go it works, and consequential scans it fails to detect. Also, for some reason simple-scanner detects my scanner, while gscan2pdf hasn't been able to detect it at all. – csgeek Jan 13 '15 at 18:00
  • "second run" == I try to do a scan, it seems to work. I try to scan another page again and it fails. Or I start the app again and it fails to detect the scanner as a whole. Reboot, and it works on the first try at least. – csgeek Jan 13 '15 at 18:01
  • anything related in syslog? – Elder Geek Jan 14 '15 at 20:46
  • To diagnose a possible error, start gscan2pdf from the command line with logging enabled: gscan2pdf --log=file.log and check file.log. – Elder Geek Jan 14 '15 at 21:20

2 Answers2

6

Thanks to everyone who posted valuable info and links here. Without your posts, I would not have been able to figure it out.

This is a revised version of my earlier post that referred to Sane v.1.0.23 / Ubuntu 14.04. Sane v.1.0.23 detects Fujitsu S1300i scanner but then somehow gets stuck and finds no scanners on the second and subsequent runs of "scanimage -L", as described in previous posts.

Sane v.1.0.25 (Ubuntu 16.04) detects Fujitsu S1300i with "sane-find-scanner" or "sudo sane-find-scanner". However, "scanimage -L" or "sudo scanimage -L" does not detect S1300i on my Ubuntu 16.04 system at all.

The following procedure is designed to make Fujitsu S1300i work on an Ubuntu 16.04 desktop system. With appropriate modifications, it should work for other Ubuntu versions as well.

1. Obtain, compile and install the latest version of Sane

The following instructions are loosely based on the "Compile Sane From Source" article at the Ubuntu Community Help Wiki.

The commands below will install Sane into /usr/local. If you choose to install into /usr instead of /usr/local, review the "Compile Sane From Source" and use the appropriate switches instead of the ones used below. I recommend installing into /usr/local, because this will leave your stock installation of Sane intact in case you want to switch back to using the stock version.

Install prerequisites:

sudo apt-get install libusb-dev build-essential libsane-dev
sudo apt-get install libavahi-client-dev libavahi-glib-dev libjpeg-dev
sudo apt-get install git-core

Download the latest Sane:

git clone git://git.debian.org/sane/sane-backends.git

At the time of this writing, the latest commit is this one:

$ git log -n 1
commit 1e013654cc3af09f4731ab9ec8d8324d03a7de4a
Author: Alessandro Zummo <[email protected]>
Date:   Mon May 9 11:10:35 2016 +0200

Compile and install Sane:

cd sane-backends
./configure
make
sudo make install

If you decide to remove this installation of Sane, use "sudo make uninstall" to remove all installed files from /usr/local. This is a clean way to revert back to using the stock installation in /usr.

2. Register libsane

Check how your system finds Sane shared object library:

sudo ldconfig -v | grep libsane

If you see something like:

libsane.so.1 -> libsane.so.1.0.25
libsane.so.1 -> libsane.so.1.0.26

it means that the system first finds version 1.0.25 and then 1.0.26, which is not the correct order. In this case, you must change the order of the library paths in /etc/ld.so.conf or you must create a new configuration file for sane:

echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf.d/1-sane.conf

Once you have changed the library paths in /etc/ld.so.conf or created the new configuration file in 1-sane.conf, check the order of libraries one more time with "sudo ldconfig -v | grep libsane". Make sure that version 1.0.26 appears first before any other versions.

3. Install scanner firmware

Copy Fujitsu S1300i driver file, "1300i_0D12.nal", from the Windows computer where the scanner software was installed. Usually, this driver file is found in "C:\Windows\SSDriver\S300". Place the driver file into the /usr/local hierarchy:

sudo mkdir -p /usr/local/share/sane/epjitsu
sudo cp ./1300i_0D12.nal /usr/local/share/sane/epjitsu/

4. Adjust permissions to access scanner as a non-root user

The default udev rules set the ownership of the USB device to "root" and the group ownership to "root". Change the udev rules to set the group ownership to "scanner". Use your favourite editor to create this file:

/etc/udev/rules.d/79-scanner.rules

and place the following into it:

# Fujitsu ScanSnap S1300i
ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="128d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

Add yourself to the "scanner" group if necessary:

sudo usermod -a -G scanner <username>

5. Finish installation

Reboot your computer. You may be able to start using your Fujitsu S1300i scanner without rebooting your computer, however a reboot is strongly recommended. I observed some odd behaviour with "scanimage -L" failing to find the scanner on a second run before a reboot even after making all necessary configuration changes. It could be that some libraries or drivers from the earlier version of Sane get "stuck" somewhere in cache or else. A system reboot cleans it all up.

After a reboot, connect your scanner, open the lid and execute:

scanimage -L

That's all. Enjoy your scanner.

Beef Eater
  • 291
  • 2
  • 9
  • It'll take me sometime to validate this, but if this works. You totally earned that bounty. :D – csgeek Nov 12 '15 at 03:27
  • 1
    Here's what I've done. 1. I removed the old sane installation so it won't conflict with the from source install. sudo apt-get remove libsane libsane-common libsane-dev libsane-hpaio sane. 2. For reference my git checkout is: e6a249e0424f6854b7ed12f8272633a0edecfa90 latest tag: RELEASE_1_0_25 3. running scanimage -L gave me a .so conflict despite being build from source, so I re-install libsane and that seems to have fixed the error. Now, running scanimage -L gives me no scanners found. – csgeek Nov 16 '15 at 01:46
  • Try to run "sudo scanimage -L" and see if it makes any difference. If it does, then you probably don't have permissions to access your scanner device as a non-root user. Run "lsusb" and see if your scanner device is there. If it is there, take note of Bus # and Device #, and then run "ls -l /dev/bus/usb/". You should see the ownership and permissions of your scanner device (by its device #) in the list. If it is "crw-rw-r-- 1 root root", then yes indeed you don't have permissions to access the scanner as a non-root user -- most likely, due to your udev rules. – Beef Eater Nov 17 '15 at 05:25
  • 1
    I have just followed the instructions above on my Ubuntu 12.10 installation, and it worked -- but only after I removed the existing sane installation. I am going to investigate a little further why the existing sane installation causes problems and update the instructions accordingly. – Beef Eater Nov 17 '15 at 05:27
  • @csgeek: please check out the revised version of my post. It is possible that the proper registration of libsane, as described in "2. Register libsane" now, can solve your problem. – Beef Eater May 24 '16 at 05:28
  • That worked! Thanks. Needed to install libjpeg-dev as well but gscan2pdf seems to working for me. – csgeek May 30 '16 at 01:31
  • Thanks @csgeek for your comments. I have edited my post to add libjpeg-dev as a prerequisite. – Beef Eater May 31 '16 at 22:21
  • Is the native driver executable code for the host machine? I would like to use this scanner from a Raspberry pi, which doesn't have an x86 architecture. – gonzojive Jun 21 '16 at 17:40
  • @gonzojive : 1300i_0D12.nal is a binary file. I do not know if this code is for the scanner or for the host computer or both both. Sorry, cannot help. – Beef Eater Jun 22 '16 at 19:07
  • @BeefEater I followed these instructions and now `scanimage -L` shows the scanner! However, having initially removed previous scanning software (so that I could start clean) I have no idea how to actually scan a document! Can I just install simplescan / xsane as normal, and then use them, or will that end up undoing the above instructions? – cammil Oct 01 '16 at 09:01
  • @BeefEater I have discovered I can use scanimage from the command line! So at least I have that option. But I would still like to use the scanner with a GUI if possible, so wondering if I can install one without messing up the current install? – cammil Oct 01 '16 at 09:09
  • @cammil : yes, you can install xsane or gscan2pdf or digikam or any other package that provides a GUI for you. Which package is better is, of course, a matter of personal taste. – Beef Eater Oct 03 '16 at 14:54
  • Thanks @BeefEater removing the sane from apt solved it for me immediately `sudo apt remove libsane libsane-common libsane-dev libsane-hpaio sane`. Now my compiled `scanimage -L` shows the scanner! – johnboiles Feb 14 '23 at 05:21
1

I've actually had good luck setting up the the ScanSnap S1300 scanner on a few Ubuntu installs. I just set it up on a 16.04 system this weekend. The instructions at http://luuklangens.nl/blog/howto-fujitsu-scansnap-s1300-s300-ubuntu-linux worked for me in the past but this post is no longer available.

As an alternative, the instructions at http://www.openfusion.net/linux/scansnap_1300i seem pretty applicable but I'll caution that it seems the difference between the S1300 and the S1300i is important. My specific process this weekend was to download both the 1300_0C26.nal and 1300i_0D12.nal files and then I picked up with step three in Beef Eater's response but installed both. After a restart, simple scan worked without issue. I did not build from source.

FYI - I apparently have saned 1.0.25+git20150528-1ubuntu2 installed.

knute
  • 71
  • 1
  • 1
  • 3
  • the first link is available at waybackmachine: https://web.archive.org/web/20150624074226/http://luuklangens.nl/blog/howto-fujitsu-scansnap-s1300-s300-ubuntu-linux – myrdd May 10 '20 at 10:17