You are not logged in.

#1 2007-10-29 18:31:29

ayro
Member
Registered: 2007-10-29
Posts: 5

USB scanner problem (SOLVED-see last ayro post)

Hi,

I am having a frustrating problem with Arch concerning my USB scanner (Epson 3170 PHOTO).  I have installed the latest sane and epkowa drivers (interestingly, if epkowa is installed from sources, then it requires sane to also be installed from the sources).

Anyway, I cannot get sane to use the scanner (and yes, the scanner is on and plugged into a usb port).  The OS detects a usb device plugged in.

sane-find-scanner gives this

found USB scanner (vendor=0x04b8, product=0x0116) at libusb:005:002

I setup the epkowa driver to use libusb by having this in my epkowa.conf in /etc/sane.d/

usb 0x04b8 0x0116

and also adding the "epkowa" driver to dll.conf in same directory (I even commented out every other driver for testing).

Then I found an old thread on the Archlinux forum describing a similar problem.  In the last post, I found this command
export SANE_DEBUG_DLL=128; export SANE_DEBUG_EPSON=128; scanimage -L
which running as root gives

[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.18
[dll] sane_init: reading dll.conf
[dll] add_backend: adding backend `epkowa'
[dll] sane_get_devices
[dll] load: searching backend `epkowa' in `/usr/lib/sane'
[dll] load: trying to load `/usr/lib/sane/libsane-epkowa.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-epkowa.so.1'
[dll] init: initializing backend `epkowa'
[dll] init: backend `epkowa' is version 1.0.208
[dll] sane_get_devices: found 0 devices

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).
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `epkowa's exit function
[dll] sane_exit: finished

So, the epkowa driver seems to be installed correctly and working.  The OS is seeing a USB device and sane-find-scanner is recognizing the correct scanner.  However sane still can't find scanner.

What can be going on?  Does anyone have anything that can help?

Thanks,
ayro

Last edited by ayro (2007-10-30 15:23:56)

Offline

#2 2007-10-29 18:44:52

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: USB scanner problem (SOLVED-see last ayro post)

Not sure if this will help but here it goes...

Try running sane as root - if it finds your scanner then you'll know that this is a permissions issue not a driver issue.  I have a Canon scanner and I needed to create a udev rule (/etc/udev/rules.d/00-myrules.rules) which looks like this:

SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="220d", MODE="664", GROUP="scanner"

Once udev knows what to do with the device it's just a matter of making sure that your user is in the "scanner" group.  All this is actually taken from a thread somewhere on these forums, so you can try searching if you need more info.

Offline

#3 2007-10-29 19:20:27

ayro
Member
Registered: 2007-10-29
Posts: 5

Re: USB scanner problem (SOLVED-see last ayro post)

fwojciec wrote:

Not sure if this will help but here it goes...

Try running sane as root - if it finds your scanner then you'll know that this is a permissions issue not a driver issue.  I have a Canon scanner and I needed to create a udev rule (/etc/udev/rules.d/00-myrules.rules) which looks like this:

SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="220d", MODE="664", GROUP="scanner"

Once udev knows what to do with the device it's just a matter of making sure that your user is in the "scanner" group.  All this is actually taken from a thread somewhere on these forums, so you can try searching if you need more info.

Unfortunately, running as root makes no difference.  I get the same errors.

I have ruleset in /etc/udev/rules.d called 53-sane.rules which contains

# EPSON GT-9400UF | EPSON Perfection 3170 PHOTO
ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0116", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

I am trying your way as I type.  what does the ENV{libsane_matched}="yes" mean?

Thanks
ayro

--EDIT--
Nothing happened.  Scanner is still unusable even after creating custom udev rule.

Last edited by ayro (2007-10-29 19:36:03)

Offline

#4 2007-10-29 19:48:51

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: USB scanner problem (SOLVED-see last ayro post)

My epson 1260 works fine, it identifies it as plustek even though I've got epson and epson2 in dll.conf

Offline

#5 2007-10-30 09:04:51

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,323

Re: USB scanner problem (SOLVED-see last ayro post)

edit dll.conf and enable the correct epson backend for your scanner there are 2

Offline

#6 2007-10-30 14:31:40

ayro
Member
Registered: 2007-10-29
Posts: 5

Re: USB scanner problem (SOLVED-see last ayro post)

tpowa wrote:

edit dll.conf and enable the correct epson backend for your scanner there are 2

The epson backend does not support my scanner.  The epson backend seems to support every epson scanner but mine, which has zero support.  That is why I need to set up the epkowa driver.

I am getting really frustrated with this.  I'm tired of trying to get it working.  I almost at the point of giving up.

Offline

#7 2007-10-30 15:23:10

ayro
Member
Registered: 2007-10-29
Posts: 5

Re: USB scanner problem (SOLVED-see last ayro post)

THIS ISSUE HAS BEEN RESOLVED!!!

I was looking at the ubuntu forums and found that my scanner requires a binary firmware file (esfw32.bin)
In order for the scanner to be used, the firmware has to be loaded by sane.  And the way to do this is as follows

1. Edit /etc/sane.d/snapscan.conf
2. The first line should read "firmware [path to firmware file]"
3. I went down added my usb settings ("usb 0x04b8 0x0116")
4. I did a sudo scanimage -L and presto, my epson scanner was sitting there and ready to be used!


I hope this saves someone from my troubles.  Apparently the firmware file is required for other scanner similar to mine.


http://snapscan.sourceforge.net/

and here is the thread on the ubuntu forums that describes the problem and how to fix it.
http://ubuntuforums.org/showthread.php? … 170+epkowa

Offline

Board footer

Powered by FluxBB