Talk:HOWTO Install a USB scanner
From Gentoo Linux Wiki
The site at sane-project.org is all very well, but try to actually buy any of the scanners actually listed!
Two seem to be on sale in Britain, and one of them, the Packard Bell Diamond 1200+ is an impostor. The one I bought was, as indicated, a repackaged Mustek Bearpaw scanner, however it was the model that didn't work well in Linux.
I managed to exchange it for the other one, the Canon LiDE20. This is widely available in UK and cheap. It works perfectly. Funny really, Canon seems hostile to Linux, but this scanner uses a chip usually used by Plustek.
Note that no other current Canon models will work, so don't get LiDE50 or 80 etc they are not just up the range they have different chips in and don't work under sane as yet!
I actually manage to install my good old canoscan n1220u based upon your howto. I have simplified it further my omitting the whole hotplug scripting because it is already available in the hotplug.
Contents |
[edit] hplip specifics, saned and more...
I am presently writing my own procedure to make a print/scan server to be used in a Windows environment Network scanning and printing. I am obviously paraphrasing many documents including this one. One thing I noticed is that the UDEV section assumes that a device will actually be created. This doesn't seem to be the case for the HP drivers (hplip). This results in scanimage -L not working unless you are root... but it works if you call scanimage -d hp:/usb/PSC_2100_Series?serial=MY338F51240F for example.... I am still researching the solution to this.
[edit] "The current udev rules are not wrong."
UPDATE: As of late 2007, the current hplip 2.7.10 and udev 116-r1 do not need any modification of udev rules to work with sane-backends 1.0.18-r4. Follow HOWTO_Install_a_USB_scanner after you setup the hplip side. The hp devices should look like this when the unit is powered on:
$ ls -l /dev/bus/usb/001/00* crw-rw-r-- 1 root usb 189, 0 Dec 8 11:51 /dev/bus/usb/001/001 crw-rw-r-- 1 root lp 189, 2 Dec 8 14:47 /dev/bus/usb/001/003
Even though it seems like you should add the saned user to the usb group, it didn't work for me until I also added it to the lp group as well. The xinetd configuration looks like the above, and my saned user on the server looks like this:
$ id saned uid=1000(saned) gid=511(saned) groups=511(saned),7(lp),85(usb),509(scanner)
From the remote host:
$ scanimage -L device `net:<server_name>:hpaio:/usb/Officejet_6300_series?serial=CN78KFW04R04J5' is a Hewlett-Packard Officejet_6300_series all-in-one
(old stuff is below).
"The above udev rules are wrong."
If you are sure they are wrong then please delete them. A howto should not tell you that the previous step was wrong. That is terribly confusing.
Latest: I've just tried adding users to the scanner group, double checking that hotplug is started, and then unplugging and reconnecting the scanner. It doesn't work. Still can't access the scanner as a non-root user. I'm running a variant of the 2.6.15 kernel.
SUCCESS: The stuff on this page didn't work for me. I found the answer that did at http://kubuntuforums.net/forums/index.php?board=56;topic=5751.27 -- namely putting a line similar to
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="0116", MODE="664", GROUP="scanner"
in a file named something like /etc/udev/rules.d/45-libsane.rules
and then doing whatever you need to do to get udev to cotton on to the change. (I rebooted because I don't know any better -- it would be good to know what I should have done.)
[edit] Scan Size???
OK, this might be me screwing up, I don't know... I am acquiring via XSane through Gimp. Preview shows a nice sized image at 100% zoom. I have "full size" selected as the preset. I don't see any other option for size. I click scan. The image that loads into GImp is about half the size of the preview. I'm scanning with an Epson 2480 photo. Scan quality itself looks great... just the size seems to be the problem. --Dandavis 13:12, 17 July 2006 (UTC)
- OK, d'uh! moment for me... shortly after posting, I found the "scan resolution" dropdown. :) Chaning that from 50 to 100 works wonders on the size of the scans. --Dandavis 13:30, 17 July 2006 (UTC)
[edit] Power Cycle the Scanner!
Kept getting wierd errors...
- scl_inq: malformed response
- Error During Device I/O
- hp_optset_fix_geometry_options
Hours of frustration were suddenly ended when I power cycled the scanner.
[edit] Group for the saned process in xinetd
If saned is run as saned:saned, it doesn't have rights on the scanner(s), running it as saned:scanner solves the problem.
[edit] Getting the newer Canon Pixma-series to work
If you own a Canon Pixma MP210, MP520 or MP610, you have probably run in to the problem that sane-find-scanner -q found the scanner, but scanimage -L doesn't. There is actual support for these scanners, but it involves some tweaking. You will need a newer version of libsane-pixma than the one that is shipped with the sane package. Getting the scanner to work is quite easy. It involves installing a new version of the library manually. I used this site to get mine MP520 to work. You will need to download the latest sanelib-pixma from this site: Pixma MP600/MP610 PPDs & scanner driver and compile & install them. See the side above how this is done. After that is done, Sane will work without a problem.
