[sane-devel] Fwd: Why will sane-find-scanner detect my scanner, but scanimage -L won't?

Mark Drew drewmark at gmail.com
Tue Sep 16 12:32:23 UTC 2014


Allan,

That's exactly what I was thinking, but didn't look very hard for it.  I'll
check tonight.

Mark

mark at markdrew.net
775-mcdrew0 (775-623-7390)

On Tue, Sep 16, 2014 at 6:12 AM, M. Allan Noah <kitno455 at gmail.com> wrote:

> I bet you have two sets of config files. Sane is using the one in
> /usr/local/etc.
>
> allan
>
> On Sep 15, 2014, at 11:50 PM, Mark Drew <drewmark at gmail.com> wrote:
>
> Allan,
>
> Yay!  I got the debug log you asked for (attached).  Looking through it,
> the problem seemed to be:
>
> ...
>> [epjitsu] do_cmd: finish
>> [epjitsu] load_fw: failed to lseek file
>> /usr/local/share/sane/epjitsu/1300i_0D12.nal
>> [epjitsu] destroy: start
>> ...
>
>
> Sure enough, the file referenced in the log doesn't exist, but I knew I'd
> put it there.  Turns out it was in /usr/share, not /usr/local/share.  The
> thing is, my /etc/sane.d/epjitsu.conf has this in it:
>
> # Fujitsu S1300i
>> firmware /usr/share/sane/epjitsu/1300i_0D12.nal
>> usb 0x04c5 0x128d
>
>
> So, it looks like scanimage -L isn't honoring the setting in my config
> file.  My config file said it was in /usr/share/..., but it was looking for
> it in /usr/local/share/...  Or maybe, might it be using a different config
> file somewhere else since I built/installed it from source?
>
> Anyway, I soft-linked /usr/local/share/sane/epjitsu/1300i_0D12.nal
> to /usr/share/sane/epjitsu/1300i_0D12.nal, and voila:
>
> [mark at PotableLinux ~]$ scanimage -L
>> device `epjitsu:libusb:002:009' is a FUJITSU ScanSnap S1300i scanner
>
>
> I can scan now!
>
> Thanks for your help and your time working on this driver!!!  I hope this
> information helps you continue to improve the driver (assuming you're
> working on it).
>
> Mark
>
> On Mon, Sep 15, 2014 at 8:37 AM, m. allan noah <kitno455 at gmail.com> wrote:
>
>> Lets get a debug log:
>>
>> SANE_DEBUG_EPJITSU=15 scanimage -L 2>s1300i.log
>>
>> then send me that log file.
>>
>> allan
>>
>> On Sun, Sep 14, 2014 at 1:29 PM, Mark Drew <drewmark at gmail.com> wrote:
>> > Allan,
>> >
>> > Thanks for the fast response, but I'd already done that:
>> >
>> >> [mark at PotableLinux ~]$ ll /usr/share/sane/epjitsu/
>> >> total 68K
>> >> -rw-rw-r--. 1 root root 65K Sep 13 22:06 1300i_0D12.nal
>> >
>> >
>> > And from my /etc/sane.d/epjitsu.conf:
>> >
>> >> # Fujitsu S1300i
>> >> firmware /usr/share/sane/epjitsu/1300i_0D12.nal
>> >> usb 0x04c5 0x128d
>> >
>> >
>> > Can you think of anything else I might be missing?
>> >
>> > Thanks!
>> > Mark
>> >
>> > On Sun, Sep 14, 2014 at 6:08 AM, M. Allan Noah <kitno455 at gmail.com>
>> wrote:
>> >>
>> >> You need to extract the firmware from the windows driver and put it
>> where
>> >> sane can reach it. See /etc/sane.d/epjitsu.conf
>> >>
>> >> allan
>> >>
>> >> On Sep 14, 2014, at 3:04 AM, Mark Drew <drewmark at gmail.com> wrote:
>> >>
>> >> All,
>> >>
>> >> I downloaded the latest git snapshot of the sane backend (1.0.25git)
>> and
>> >> built it from source according to the instructions in README and
>> >> README.linux.  Everything went smoothly until I got to the point of
>> trying
>> >> 'scanimage -L'.  What I don't understand (and would like help with) is
>> why
>> >> sane-find-scanner will find my scanner (with or without root), but
>> scanimage
>> >> -L will not (with or without root).
>> >>
>> >> When I was using the 1.0.23 distribution from yum repos, I was able to
>> get
>> >> the scanner recognized by both of these commands (but the my scanner
>> wasn't
>> >> supported at all by that version).  Now I can only get
>> sane-find-scanner to
>> >> recognize my scanner.
>> >>
>> >>> [mark at PotableLinux ~]$ uname -a
>> >>> Linux PotableLinux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27
>> UTC
>> >>> 2013 x86_64 x86_64 x86_64 GNU/Linux
>> >>> [mark at PotableLinux ~]$ cat /etc/redhat-release
>> >>> Fedora release 17 (Beefy Miracle)
>> >>
>> >>
>> >> Here's the output from sane-find-scanner:
>> >>
>> >>> [mark at PotableLinux ~]$ sane-find-scanner -v
>> >>> This is sane-find-scanner from sane-backends 1.0.25git
>> >>>
>> >>>  ...
>> >>>
>> >>> checking /dev/usbscanner14... failed to open (Invalid argument)
>> >>> checking /dev/usbscanner15... failed to open (Invalid argument)
>> >>> found USB scanner (vendor=0x046d, product=0x08ae) at libusb:001:005
>> >>> found USB scanner (vendor=0x04c5 [FUJITSU], product=0x128d [ScanSnap
>> >>> S1300i]) at libusb:002:007
>> >>>   # 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.
>> >>>
>> >>>   # You may want to run this program as root to find all devices. Once
>> >>> you
>> >>>   # found the scanner devices, be sure to adjust access permissions as
>> >>>   # necessary.
>> >>> done
>> >>
>> >>
>> >> And here's scanimage:
>> >>
>> >>> [mark at PotableLinux ~]$ scanimage -V
>> >>> scanimage (sane-backends) 1.0.25git; backend version 1.0.25
>> >>> [mark at PotableLinux ~]$ 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).
>> >>> [mark at PotableLinux ~]$ sudo 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).
>> >>
>> >>
>> >> Any help would be greatly appreciated!
>> >>
>> >> Thanks!
>> >> Mark
>> >>
>> >>
>> >> --
>> >> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>> >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>> >> Unsubscribe: Send mail with subject "unsubscribe your_password"
>> >>             to sane-devel-request at lists.alioth.debian.org
>> >
>> >
>>
>>
>>
>> --
>> "well, I stand up next to a mountain- and I chop it down with the edge
>> of my hand"
>>
>
> <s1300i.log>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140916/3ec65e91/attachment.html>


More information about the sane-devel mailing list