sane: can't get my Memorex Mem48U working...???

I must be forgetting something. It’s been awhile since I actualy configured my
usb scanner. But Since I’ve decided to keep opensuse, it’s time I got
around to it…

The scanner is connected and works from my Sabayon Linux installation.
But not opensuse, with as far as I can see.<F12>, the same configuration…

Here is an extract from my /etc/sane.d/artec_eplus48u.conf


-------------------------
# Since the Memorex Mem48U uses a different product id, we add
# another usb section here.
usb 0x05d8 0x4005
option artecFirmwareFile /usr/share/sane/artec_eplus48u/Artec48.usb
option vendorString "Memorex"
option modelString "MEM 48U"
-------------------------

This indicates that I put the firmware file in the right place:


-------------------------
~
UnderTree=-> ls -l /usr/share/sane/artec_eplus48u/Artec48.usb
-rwxr-xr-x 1 root root 8192 Jul  8  2009 /usr/share/sane/artec_eplus48u/Artec48.usb
~
UnderTree=->
-------------------------

Yet this shows that not even root can access the durned thing…


-------------------------
~
UnderTree=-> 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.

# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
~
UnderTree=->
-------------------------

man sane-usb said:

Nothing is found even as root? Check that your kernel supports USB and that
libusb is installed

So I checked:


-------------------------
/etc/sane.d
UnderTree=-> zypper search libusb
Loading repository data...
Reading installed packages...

S | Name                   | Summary                                               | Type
--+------------------------+-------------------------------------------------------+--------
i | libusb-0_1-4           | libusb-1.0 Compatibility Library for libusb-0.1       | package
| libusb-0_1-4-32bit     | libusb-1.0 Compatibility Library for libusb-0.1       | package
i | libusb-1_0-0           | USB Library                                           | package
| libusb-1_0-0-32bit     | USB Library                                           | package
| libusb-1_0-devel       | USB Library                                           | package
| libusb-1_0-devel-32bit | USB Library                                           | package
| libusb-compat-devel    | libusb-1.0 Compatibility Layer for libusb-0.1         | package
| libusbmuxd-devel       | Development files for libusbmuxd                      | package
i | libusbmuxd2            | A library to abstract socket/protocol communication-> | package
| libusbmuxd2-32bit      | A library to abstract socket/protocol communication-> | package
| libusbprog0            | USBprog Library                                       | package
| libusbredirhost1       | A protocol for redirection USB traffic                | package
| libusbredirparser0     | A protocol for redirection USB traffic                | package
/etc/sane.d
UnderTree=->
-------------------------

About the only other thing that ‘man sane-usb’ mentioned before saying that
it only made sense to continue if sane-find-scanner could find the scanner
was if there was a kernel scanner module…


-------------------------
/etc/sane.d
UnderTree=-> modprobe -r *scanner*
FATAL: Module *scanner* not found.
/etc/sane.d
UnderTree=->
-------------------------

What am I missing here???


JtWdyP

The ingredients that may be essential here:

  1. Make sure that /etc/sane.d/dll.conf has the required backend uncommented
#avision
#artec
artec_eplus48u
#as6e
#bh
  1. Make sure that you’re a member of the ‘lp’ group, in line with the udev rule for this device (in /etc/udev/rules.d/55-libsane.rules)
# Memorex MEM 48U
ATTR{idVendor}=="05d8", ATTR{idProduct}=="4005", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"

It would appear that on Dec 24, deano ferrari did say:

> The ingredients that may be essential here:
>
> 1. Make sure that /etc/sane.d/dll.conf has the required backend
> uncommented

That was it!

I don’t think I had to do that with any of my other distro’s so I’m not
surprised I missed it…

At least the fix was both easy and simple. Thanks!

> 2. Make sure that you’re a member of the ‘lp’ group, in line with the
> udev rule for this device (in /etc/udev/rules.d/55-libsane.rules)

I might have found that myself if the /etc/sane.d/dll.conf setting hadn’t
stopped root from finding the scanner… But as it happens I’d already
added my user to lp anyway so it didn’t much matter.

One odd thing though, I’m glad I happened to test whether uncommenting the
artec_eplus48u backend in /etc/sane.d/dll.conf worked by attempting to
start skanlite instead of using

sane-find-scanner

as instructed in the sane-usb manpage. Because while my user can now use my
scanner, neither my user nor root can find it yet with sane-find-scanner…

Ah well, as long as the scanner works, I don’t really care about the search
tool…

In any case: Thank you very much!



--
|  ~^~   ~^~
|  <?>   <?>
|      ^                JtWdyP
|    \___/


In any case: Thank you very much!

My pleasure.

One odd thing though, I’m glad I happened to test whether uncommenting the
artec_eplus48u backend in /etc/sane.d/dll.conf worked by attempting to
start skanlite instead of using

sane-find-scanner

as instructed in the sane-usb manpage. Because while my user can now use my
scanner, neither my user nor root can find it yet with sane-find-scanner…

Ah well, as long as the scanner works, I don’t really care about the search
tool…

The other good test is to run

scanimage -L