SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to setup an Epson perfection 4490 photo scanner in Slack 13.1. I've got the appropriate iscan and epkowa driver and firmware. However it is not working:
sane-find-scanner produces:
Code:
found USB scanner (vendor=0x04b8 [EPSON], product=0x0119 [EPSON Scanner]) at libusb:001:004
but scanimage -L finds nothing. After battling a lot with dll.conf and epkowa.conf I decided to run strace scanimage -L and to my shock it never tries to read dll.conf, instead it goes straight to read xerox_mfp.conf and does not try to read any other conf file in /etc/sane.d
Has anyone come across problems with sane in 13.1 (or 13.0 as I tried this before upgrading with the same results)?
libj643, thanks; I checked and neither of those issues are a problem here. I also managed to get sane working on a machine at home (with a different scanner but also epkowa, though the problems are before epkowa enters the picture). I am now comparing the straces in both of these but have not advanced much. The one that works goes on to read dll.conf (first in local directory, then in /etc/sane.d), but the one that does not work never tries to read dll.conf. This is very strange and is getting on my nerves.
here are the relevant straces at the same point where dll.conf gets read:
Notice that the broken sane goes straight to open usb devices at this point, without checking dll.conf; later on it does open one conf file but it is not dll.conf:
Code:
open("./xerox_mfp.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/sane.d/xerox_mfp.conf", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=399, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb782c000
read(6, "#xerox_mfp.conf\n\n#Dell MFP Laser "..., 4096) = 399
read(6, ""..., 4096) = 0
close(6) = 0
munmap(0xb782c000, 4096) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb782c000
write(1, "\n"..., 1) = 1
write(1, "No scanners were identified. If y"..., 72) = 72
write(1, "check that the scanner is plugged"..., 68) = 68
write(1, "sane-find-scanner tool (if approp"..., 71) = 71
write(1, "which came with this software (RE"..., 55) = 55
exit_group(0) = ?
xerox_mfp.conf is the last conf file (alphabetically) in the /etc/sane.d directory.
Both machines have 13.1 installed as an upgrade to 13.0 (installed new in both cases). The scanner that does not work was working when I had 12.2 installed...
I was hoping I did not have to go inside the sane source code, but this is getting more likely now...
Nothing happens, only the message that sane could not find the scanner:
Code:
SANE_DEBUG_DLL=128 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).
Well, that's extremely weird. If I use that command with my scanner disconnected, I still get all the debug output about reading the configuration files, adding backends, trying to open the backend shared library objects... and then I get the same message as you got at the very end ("No scanners were identified").
I'm out of ideas, except for the usually sanity checks that I'm sure you already did: make sure you have just 1 version of sane installed, and you are running the version you think you are, and your library search path /etc/ld.so.conf is what you expect.
I ran into the same problem mentioned here. Sane was not reading dll.conf. The only file being parsed was the xerox_mfp.conf.
After lots of debugging I finally found the problem on my system:
In /etc/ld.so.conf there was an entry /usr/lib/sane. That entry caused ldconfig to create a file /usr/lib/sane/libsane.so.1 linking to libsane-xerox_mfp.so
That of course lead sane to not load /usr/lib/libsane.so but /usr/lib/sane/libsane.so linking to the xerox-library. sane-dll and all other libraries were nether initialized.
The solution is simple: remove the entry from /etc/ld.so.conf and run ldconfig. That should sane to load the correct library (/usr/lib/libsane.so) and work as intended.
The solution is simple: remove the entry from /etc/ld.so.conf and run ldconfig. That should sane to load the correct library (/usr/lib/libsane.so) and work as intended.
Regards,
Matthias
Matthias, this was it. Nasty one! Thanks for the solution, it works now!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.