Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 got a new Canon LiDE 110 scanner. It's a very cheap device but the important thing is that it is listed as "completely supported" in the SANE site. I had to compile the latest SANE from sources, but I have no problems with compiling from sources, and now everything runs from the version in /usr/local/...
The problem is that "scanimage -L" doesn't detect the scanner. I also don't see any scanners under /dev/... I think it might help if I pass the scanner device with the -d option to scanimage but I don't know how to find out what the device file of it is.
This is what I see with lsusb:
Bus 005 Device 004: ID 1c4f:0003 SiGma Micro
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 04a9:1909 Canon, Inc.
Bus 001 Device 003: ID 046d:080f Logitech, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
First check if you can issue "scanimage -L" as root (with sudo) successfully.
Is your user member of the scanner group? Don't forget after changing the groupmembership to logout and login again as the user.
If you don't have success try the command "sane-find-scanner"
Thanks, Markush. It was really just a permissions problem.
The scanner now works, albeit not with good results... The image I get is black and white and of pretty low quality. If anyone knows how to troubleshoot that I'd be very grateful for any advice.
I use a script to determine where my scanner is as I use an older usb Epson that changes the port when I insert other devices (a photo card or a backup flash drive). I use the environment if I can't detect it though. You'll have to change it to use your scanner. It is an old script and I suppose xsane has evolved and now handles it natively. As far as the quality goes, the script calls scanimage with the mode Color which was found by experiment to be the best for my scanner. YMMV, but at least the script is free!
Code:
#!/bin/bash
# Scans and prints image to printer.
# Leaves pdf file of scanned image in ./scanned.pdf
# D. R. Forrest 5/19/04
# revised 6/26/05 to leave .jpg file intact
# 7/19/05 cheanged jpg to pdf
# 10/1/07 revised for FC7
# 4/6/08 added bw option for bw printer
[ "--help" = "$1" ] && echo -e "Usage: scan [bw|no|--help] (Defaults to color print)" && exit
# Determine scanning device - Epsom Prefection 640U attached (we hope)
DEVBUS=`/sbin/lsusb |grep Epson|cut -d " " -f2`
DEVDEV=`/sbin/lsusb |grep Epson|cut -d " " -f4`
DEVDEV=`echo $DEVDEV |sed s/://`
SANE_DEFAULT_DEVICE="epson:libusb:$DEVBUS:$DEVDEV"
[ -z "$DEVDEV" ] && SANE_DEFAULT_DEVICE=""
# The above discovers the usb device. If power has cycled on the scanner,
# the usb port changes, therefore using the environment doesn't always work.
[ -n $SANE_DEFAULT_DEVICE ] || (echo "Cannot find the scanner!" && exit 1)
PRINTDEST=$PRINTER # Default is system color printer
[ "bw" = "$1" ] && PRINTDEST=$PRINTER # Alternate b/w printer
[ "no" = "$1" ] && PRINTDEST=""
echo ".....scanning on $SANE_DEFAULT_DEVICE - please wait"
scanimage -d $SANE_DEFAULT_DEVICE -v --mode Color --format tiff > /home/drf/scanned.tif
echo -e "\nConverting to printable Postscript......."
convert -page letter+0+0 /home/drf/scanned.tif /home/drf/scanned.ps 2>/dev/null
echo
[ -n "$PRINTDEST" ] && echo "Scanned page sent to printer ($PRINTDEST)"
echo "To print copies enter: lpr -P $PRINTDEST ~/scanned.ps"
[ -n "$PRINTDEST" ] && lpr -P "$PRINTDEST" /home/drf/scanned.ps
ps2pdf /home/drf/scanned.ps /home/drf/scanned.pdf
echo
echo "Saved image files are: /home/drf/scanned.[pdf|ps|tif]"
exit 0
~
Thanks for the tip about xsane. I used to use OpenOffice to scan, but I followed your advice and tried xsane and indeed I got much better results. I was able to raise the dpi from the default 75 to something higher, and changed from gray to color mode.
So the scanner works satisfactorily, but I have to admit that xsane is not my scanning software of choice. I would like to use OpenOffice because that way I can lay out a multi-page document and quickly export it to pdf. Is there a way to change the defaults?
you'd be better off to create a new thread with your problem.
Well, the user has to be member of the "scanner" group and if you have a multifunction-device, the user has to be member of both, the "scanner" and the "lp" group.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.