PDA

View Full Version : [all variants] HOWTO: Sane with epkowa root problem



mogliii
August 28th, 2010, 11:14 PM
I actually wanted to answer this post
http://ubuntuforums.org/showthread.php?t=166944
but it is Read-only.

The problem:
In Lucid (10.04) Epson printer running with epkowa driver (http://avasys.jp/eng/linux_driver/) will only be available by using sudo.

Why does this happen:
First all usb devices are only root. Then there are udev rules that allow to grant permission to non-root. However libsane does not officially support epkowa printer. Hence there is no vendor/model rule in

/lib/udev/rules.d/40-libsane.rules
See also the explanation in /usr/share/doc/libsane/README.linux.gz

Solution:
Go to a terminal an run

lsusb
with the scanner connected and turned on. You will get something like

Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 046d:c518 Logitech, Inc. MX610 Laser Cordless Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04b8:0131 Seiko Epson Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Now open /lib/udev/rules.d/40-libsane.rules as root (make backup copy first) and add the following lines:

# Epkowa Epson V30
ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0131", ENV{libsane_matched}="yes"
where the idVendor is the first number, before the colon, and idProduct the second number.
Save the file, disconnect and reconnect the scanner and you should be able to scan without additional work.

And write to sane-devel@lists.alioth.debian.org and tell them about the vendor and product id in case it works.