Server 20.04 - sane is not responding
David Fletcher
dave at thefletchers.net
Sun May 24 14:30:34 UTC 2020
On Sun, 2020-05-24 at 14:13 +0200, Oliver Grawert wrote:
> hi,
> Am Sonntag, den 24.05.2020, 12:31 +0100 schrieb David Fletcher:
> >
> >
> > administrator at ServerIV:~$ sudo sane-find-scanner
> > # sane-find-scanner will now attempt to detect your scanner. If
> > the
> > found USB scanner (vendor=0x04b8 [EPSON], product=0x0112 [EPSON
> > Scanner]) at libusb:001:008
> > found USB scanner (vendor=0x1a86, product=0x7523 [USB2.0-Serial])
> > at
> > libusb:001:010
> > # Your USB scanner was (probably) detected. It may or may not be
> > supported by
> > # SANE. Try scanimage -L and read the backend's manpage.
> > administrator at ServerIV:~$
> this is good, so your kernel and libusb know the scanner ...
>
>
> >
> > administrator at ServerIV:~$ ls /lib/udev/rules.d
> > No mentions of Epson or scanner
> >
> rather try:
>
> $ grep 04b8 /lib/udev/rules.d/*
That produces:-
ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0112",
ENV{libsane_matched}="yes"
Exactly the contents you suggested below, so the system should already
know, yes? It's in
/lib/udev/rules.d/60-libsane.rules
# Epson Perfection 2450 | Epson GT-9700F | Epson Perfection 2450 PHOTO
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="GT-9700",
ENV{libsane_matched}="yes"
Mine is the 2450 PHOTO
> "048d" is the vendor id of epson, if there are any epson related udev
> entries they should show up ...
>
> to make the device known to libsane you should be able to create your
> own udev rule like (in one line, mind the 80 char email wrap ...):
>
>
> ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0112",
> ENV{libsane_matched}="yes"
>
> name it something like:
>
> /lib/udev/rules.d/40-libsane-epson.rules
>
> groups and such should play a less important rule in ubuntu.
> USB devices mostly use udev-acl for permissions anyway. anything
> accessing usb devices via libusb (which libsane should do) should get
> access ...
That's the impression I get from doing some reading....
Doing some poking around I found in /usr/lib/udev/hwdb.d/20-sane.hwdb
# Epson Perfection 2450 | Epson GT-9700F | Epson Perfection 2450 PHOTO
usb:v04B8p0112*
libsane_matched=yes
which apparently is what 60-libsane.rules is derived from.
So AFAICT everything appears to be in order but it doesn't want to
work.
Thanks Oliver for staying with me on this.
More information about the ubuntu-users
mailing list