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 wonder if anyone can help me install a Kodak i940 scanner on Slackware64 14.1. Just plugging it in did not work (detected by lsusb but not by xsane). Kodak has official drivers posted on their site in the form of rpms (Ubuntu). I tried converting these with rpm2tgz and installing them with no joy. Is there a way I can manually install what is necessary for sane to use the scanner? What files are actually necessary for sane to find and use a scanner? I've done MFC scanners but only Brother.
Kodak has official drivers posted on their site in the form of rpms (Ubuntu). I tried converting these with rpm2tgz and installing them with no joy.
My understanding is that the drivers supplied by Kodak are 32-bit only. You might wish to try using Kodak's drivers after installing Alien Bob's Multi-lib.
I did use the 64bit drivers from the kodak site mentioned. There are actually 4 packages in the bundle. Converting and installing them all does not seem to make the scanner visible to sane.
What files are actually necessary for sane to find and use a scanner?
(Sorry if I miss something - I'm doing this mostly from memory)
Start with /etc/sane.d/dll.conf which needs to have an uncommented line for the driver name 'NAME'. (For example, NAME is epson2 for me.)
The scanner driver itself (the backend) is found in /usr/lib/sane/libsane-NAME.so (this is 32bit, not sure if 64bit is different). SANE knows this path, so if the driver is elsewhere you need to link it from here.
SANE backends usually read their configuration from /etc/sane.d/NAME.conf
I've not had much success with an old Canon scanner and SANE. I'm not sure why.
This is on Slackware64-14.0 with multilib and Slackware64-14.1 without multilib. Canon don't officially support it on 64 bit systems.
It does, however, work perfectly with Hamrick's VueScan: http://www.hamrick.com/ Unfortunately, it's proprietary and a little expensive, but it'll make your scanner work properly.
I'll be watching this thread with interest, because I'd love to know how to make it work with open source software.
(Sorry if I miss something - I'm doing this mostly from memory)
Start with /etc/sane.d/dll.conf which needs to have an uncommented line for the driver name 'NAME'. (For example, NAME is epson2 for me.)
The scanner driver itself (the backend) is found in /usr/lib/sane/libsane-NAME.so (this is 32bit, not sure if 64bit is different). SANE knows this path, so if the driver is elsewhere you need to link it from here.
SANE backends usually read their configuration from /etc/sane.d/NAME.conf
I put libsane-kds_i900.so.1.0.24 in /usr/lib/sane and /usr/lib64/sane. I added a line in /etc/sane.d/dll.conf kds_i900. I put kds_i900.conf in /etc/sane.d. The scanner is not recognized.
Since I have a multilib system I tried converting and installing the 32 bit packages instead. That did not help.
Person said "I managed to get the scanner running with Fedora 20 64-bit. This are the steps which resulted in success:
Install a libudev.so.0 in the system. I forced in a package from a previous Fedora version. A similar step should work on other operating systems too. Modify the setup script in a way that it does not break because of a missing libudev.so.0 and does not try to install it. Make sure it runs through. Make sure the sane binaries and all applications which should be able to see the scanner are installed in 32-bit and have dependencies fullfilled After that the scanner worked for me."
Maybe something helps? I see libudev.so.0 on my system.
I put libsane-kds_i900.so.1.0.24 in /usr/lib/sane and /usr/lib64/sane. I added a line in /etc/sane.d/dll.conf kds_i900. I put kds_i900.conf in /etc/sane.d. The scanner is not recognized.
Maybe you did this too and didn't say, but make sure you have a link libsane-*.so.1 pointing to the actual library. Also a link named libsane-*.so pointing there too for good measure, although I think sane only uses the .so.1. Like this:
Next try "scanimage -L" and see if it finds anything. (If it doesn't, you could also try it as root, to make sure it isn't a permissions problem.)
For me, the next step if it still fails would be "strace scanimage -L 2> log" and examine the log, but I hesitate to recommend that unless you've read strace logs before.
Maybe you did this too and didn't say, but make sure you have a link libsane-*.so.1 pointing to the actual library. Also a link named libsane-*.so pointing there too for good measure, although I think sane only uses the .so.1. Like this:
Next try "scanimage -L" and see if it finds anything. (If it doesn't, you could also try it as root, to make sure it isn't a permissions problem.)
For me, the next step if it still fails would be "strace scanimage -L 2> log" and examine the log, but I hesitate to recommend that unless you've read strace logs before.
I had not created those links but after I did there was no change. scanimage -L does not find the scanner.
So I tried the 32 bit version of sane with the 32 bit drivers from kodak (I had to create net-snmp-compat32 for it to run). After manually creating the /usr/lib links now scanimage finds the scanner. Hooray! Then I created a compat32 version of gimp and I was able to launch 32 bit xsane which discovers the scanner. So I think I'm almost there. Everything works as root user.
The hopefully last problem to solve is that, as a regular user I can see the printer with scanimage -L but when I try to use xsane I get an error "Failed to open device 'kds_i900:i900': Invalid argument" My regular user is part of both lp and scanner groups.
I'm trying to install the scanner now on a different computer, also slack64 14.1 with multilib installed. I followed the same steps as before, to wit:
1. remove 64 bit sane and xsane and install the 32 bit version.
2. create and install compat32s for gimp and net-snmp.
3. create the links in /usr/lib as described above.
4. added a line to /etc/sane.d/dll.conf
5. scanimage -L finds the scanner
However when I try to launch xsane I get the following:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.