Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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 recently upgraded from Kubuntu 6.10 to 7.04. I have an Acer 640u scanner attached to my computer which worked with Sane under Kubuntu 6.10. when I installed 7.04, sane would not detect the scanner, either as root nor as a user. I have copied the firmware to my /usr/share/sane/snapscan folder and modified the /etc/sane.d/snapscan.conf file, using the same firmware which worked under 6.10.
As I was looking for the culpret, I noticed that there is no scanner in the /dev directory in any form (usbscanner, scanner0, usb/scanner, etc). sane-find-scanner correctly identifies my scanner and shows it at libusb 001:006. In the /etc/udev/rules.d/60-sane rules (something like that, I'm at work right now) it has a listing for my snapscan scanner, but it does not appear to be creating a device.
Should I edit the rule in udev? I dont' even remember if udev created at device in my old version or not.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
I created just a script that runs
xsane <driver>:$(sane-find-scanner | grep <model> | sed -e 's/.* at //')
If you specify USB address explicitly xsane starts.
I created just a script that runs
xsane <driver>:$(sane-find-scanner | grep <model> | sed -e 's/.* at //')
If you specify USB address explicitly xsane starts.
is the <driver> argument the .bin file or the backend?
I appreciate the help I'm getting, but still unclear about why it no longer works in Kubuntu 7.04. Was there a change in libusb?
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Hm.. Try 'strace -f -o xsane.strace xsane snapscan:libusb:002:008' and post xsane.strace . Also try unloading ehci_hcd and ohci_hcd and loading uhci_hcd before plugging scanner.
Hm.. Try 'strace -f -o xsane.strace xsane snapscan:libusb:002:008' and post xsane.strace . Also try unloading ehci_hcd and ohci_hcd and loading uhci_hcd before plugging scanner.
Sane comes back with "Failed to open device 'snapscan:libusb:002:008': Invalid Argument.
It's got to be a libusb thing. Sane-find-scanner is finding the device, it recognizes it as snapscan, even if I dont' specify it, but it seems like sane doesn't like libusb as much as it does udev. The snapscan.conf has a line that you can edit to specify a device in the /dev directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.