Epson scanner V30 driver on packman don't work

I installed iscan-plugin, iscan-firmware,
sane-find-scanner find the usb scanner,
scanimage -L
says No scanners were identified.
Works after Install iscan-gt-f720-bundle-2.30.4.x64.rpm from http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
I think packman bundle many scanner driver together, and there are conflict in files.

The non root user still don’t work, even after I add the lp group to user. Haven’t figure out what changes needed yet.

Post

groups

and

zypper se -s iscan

You mentioned this command found the USB scanner? Can you run this again (as regular user) and show us the results please?

I am using ‘Epson Scan 2’ from Flatpak, which works fine with my Epson Perfection V370 Photo, which is an ancient flatbed scanner. Having tried multiple Epson drivers on the way, i strongly suggest to scan for viruses if downloading stuff from Epson - my Anti-Virus reported more than once malware in the Java provided by Epson.

david@david-laptop:~> groups
users vboxusers lp david hyperdata
david@david-laptop:~> zypper se -s iscan
Loading repository data...
Reading installed packages...

S  | Name              | Type       | Version               | Arch   | Repository
---+-------------------+------------+-----------------------+--------+------------------
i+ | iscan             | package    | 2.30.4-150600.6.pm.13 | x86_64 | packman
   | iscan             | srcpackage | 2.30.4-150600.6.pm.13 | noarch | packman
i+ | iscan-data        | package    | 1.39.2-1              | noarch | (System Packages)
v  | iscan-data        | package    | 1.39.1-150600.6.pm.13 | noarch | packman
   | iscan-debuginfo   | package    | 2.30.4-150600.6.pm.13 | x86_64 | packman
   | iscan-debugsource | package    | 2.30.4-150600.6.pm.13 | x86_64 | packman
i+ | iscan-firmware    | package    | 2.30.4-150600.2.pm.3  | noarch | packman
   | iscan-plugin      | package    | 2.30.4-150600.2.pm.3  | x86_64 | packman
   | iscan-plugin      | srcpackage | 2.30.4-150600.2.pm.3  | noarch | packman

I had to uninstall iscan-plugin in order to install the downloaded driver iscan-gt-f720-bundle-2.30.4.x64.rpm

david@david-laptop:~> /usr/bin/sane-find-scanner 

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

could not open USB device 0x1d6b/0x0003 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x04f3/0x0c4c at 003:009: Access denied (insufficient permissions)
could not open USB device 0x04f2/0xb6b6 at 003:008: Access denied (insufficient permissions)
found USB scanner (vendor=0x04b8 [EPSON], product=0x0131 [EPSON Scanner]) at libusb:003:041
could not open USB device 0x8087/0x0aaa at 003:010: Access denied (insufficient permissions)
could not open USB device 0x046d/0xc00e at 003:005: Access denied (insufficient permissions)
could not open USB device 0x0451/0x2046 at 003:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 003:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
  # 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.

Ok, so the scanner is found as expected. What happens if you start a scanner front-end (‘xsane’ or ‘simple-scan’ or your preferred scanning app)?

Also, what is returned by
ls -la ~/.sane

david@david-laptop:~> 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).
david@david-laptop:~> ls -la ~/.sane
total 0
drwxrwx--- 1 david users  10 Feb 13 19:27 .
drwxr-x--- 1 david users 704 Feb 16 17:18 ..
drwxrwx--- 1 david users  16 Feb 13 19:27 xsane

As root

david-laptop:~ # ls -la ~/.sane                                                                                                                                                                                                                                                                                              
total 0                                                                                                                                                                                                                                                                                                                      
drwxrwx--- 1 root root  10 Feb 14 04:26 .                                                                                                                                                                                                                                                                                    
drwx------ 1 root root 374 Feb 14 05:59 ..                                                                                                                                                                                                                                                                                   
drwxrwx--- 1 root root 102 Feb 14 05:48 xsane                                                                                                                                                                                                                                                                                
david-laptop:~ # scanimage -L                                                                                                                                                                                                                                                                                                
device `epkowa:interpreter:003:048' is a Epson Perfection V30 flatbed scanner       

I compared the snapshot before and after install EPSON iscan-gt-f720-bundle-2.30.4.x64.rpm:
there is a new file, seems don’t exist in your package: /etc/udev/rules.d/55-iscan.rules

ATTR{idVendor}=="04b8", ATTR{idProduct}=="0131", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"

This maybe what makes it working as root with EPSON package. Still don’t know why not working for user in lp group.

This checks out ok. Not interested in the root results, just user. :wink:

Not my package. :wink:

However, this is a udev rule to match a scanner device with the vendor ID and product ID, and flag it as such…

ATTR{idVendor}=="04b8", ATTR{idProduct}=="0131", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"

No, that rule is to ensure that the USB-attached scanner device node can be (r/w) accessed by group ‘lp’.

Which scanner app are you trying? What errors are you getting?

FWIW, I turned up this old topic (discussing same hardware)…

Try to create “scanner” group and add needed user to it.

https://wiki.gentoo.org/wiki/SANE

Configuration

Installing SANE creates the scanner group. Any user account that is to access the scanner needs to get added to this group.

After changing the group membership, the affected user(s) will need to log out and into the system again.

USB connected scanners are generally associated with udev rules that set group ‘lp’ with r/w access to the device. No need to create any custom group.

This is root

You are right. I rollbacked to your package.
It’s missing /var/lib/iscan/interpreter
interpreter usb 0x04b8 0x0131 /usr/lib64/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin

After I had back that file, your package works under root.
scanimage -L
device `epkowa:interpreter:003:023’ is a Epson (unknown model) flatbed scanner

The epson package generates that file automatically.

Is your scanning application working when run as regular user?

even though scanimage -L works, when I use xsane, it gives invalid argument error.
Add following symlink finally make packman package work under root.

cd /usr/lib64/esci/
libesci-interpreter-gt-f720.so -> libesci-interpreter-gt-f720.so.0.0.0

No, the regular user still don’t work.