Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 have been using simple-scan for a while and it has been working fine. The last few weeks it has stopped working and I can't figure out why this is. I have searched the NET but am not finding a solution. I don't know how to search out and find the solution. Does anyone have experience with this to help figure out what has happened?
Code:
joe@Bunsenlabs:~$ sudo lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 1058:0830 Western Digital Technologies, Inc.
Bus 001 Device 003: ID 03f0:0324 Hewlett-Packard SK-2885 keyboard
Bus 001 Device 002: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 001 Device 007: ID 04b8:080d Seiko Epson Corp. Stylus CX4500/4600
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
First, open an terminal and enter this command a normal user:
Code:
scanimage -L
If the scanner is not listed, retry with sudo, or as root.
It tells whether the scanner driver is aware of the presence of the scanner.
If the scanner is not listed in both attempts, do this, again in a terminal window:
Code:
tail -f /var/log/syslog
and unplug and replug the scanner.
Copy the lines which are recorder during the unplug/replug action and paste them here. Copy from a terminal is mark the text with the mouse, then SHF-CTRL-C to copy.
Some things to try from the command line:
1) sane-find-scanner. Does this find it? If not,
2) sudo sane-find-scanner.
If you can find it as root but not as yourself, it's a permissions problem.
This model is an all-in-1, so whether it's recognised as a printer or a scanner will depend on udev and may have changed recently. So check the usb numbers (04b8:080d) in /lib/udev/rules.d and /etc/udev/rules.d. Find out what group it's being assigned to at boot (lp or scanner) and make sure you are a member of that group.
[QUOTE=jlinkels;5851760]First, open an terminal and enter this command a normal user:
Code:
scanimage -L
joe@Bunsenlabs:~$ scanimage -L
device `epson2:libusb:001:006' is a Epson CX4600 flatbed scanner
Code:
joe@Bunsenlabs:~$ sudo sane-find-scanner
[sudo] password for joe:
# 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.
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
found USB scanner (vendor=0x04b8 [EPSON], product=0x080d [USB MFP]) at libusb:001:006
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
Actually if scanimage -L works, there is no need to try sane-find-scanner. Scanimage -L is a more powerful test as it confirms that sane has a driver for the device. sane-find-scanner merely tells you that there is a usb device which claims to be a scanner. Udev rules are also irrelevant in this case: if there was a permissions problem, scanimage would not have found the scanner.
The next thing is to try to use the scanner with sane debugging switched on. Sane has very powerful debugging facilities. sane-find-scanner suggested that you read the manual page for your backend (driver), so that is the next step. You will probably find the name of the epson driver you are using in /etc/sane/dll.d. Read its man page and it will tell you how to switch debugging on. Sane itself has an excellent man page.
Quote:
Originally Posted by sane man page
If your scanner is still not found, try setting the various environment variables that are available to assist in debugging. The environment variables are documented in the relevant manual pages. For example, to get the maximum amount of debug information when testing a Mustek SCSI scanner, set environment variables SANE_DEBUG_DLL, SANE_DEBUG_MUSTEK, and SANE_DEBUG_SANEI_SCSI to 128 and then invoke scanimage -L . The debug messages for the dll backend tell if the mustek backend was found and loaded at all. The mustek messages explain what the mustek backend is doing while the SCSI debugging shows the low level handling. If you can't find out what's going on by checking the messages carefully, contact the sane-devel mailing list for help (see REPORTING BUGS below).
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
Originally Posted by JosephS
without sudo I got permission errors.
Quote:
Originally Posted by Hazel
if there was a permissions problem, scanimage would not have found the scanner.
There is a permissions problem.
And you are right, permissions are arranged by udev. The most obvious question: are you member of the scanner group?
Since your scanner is recognized, it must exist somewhere in the /dev tree. Unfortunately my memory doesn't serve me well at the moment, I do not recall the correct device name and I don't have the time right now to recollect the knowledge. I hope someone else is faster posting the information than me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.