You are not logged in.
My kernel is a custom built 2.6.3. I am trying to install an Epson Perfection 3200 Photo Scanner. It works under SuSE8.2 so there is no fundamental hardware problem. The sane website lists the 3200 as completely supported.
The system recognizes the scanner, as shown in part of cat /proc/bus/usb/devices:
D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1
P: Vendor=04b8 ProdID=011c Rev= 1.02
S: Manufacturer=EPSON
S: Product=EPSON Scanner
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
The program sane-find-scanner produces:
found USB scanner (vendor=0x04b8, product=0x011c) at libusb:001:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
The program scanimage -L produces:
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
The problem appears to be that the system cannot find a driver. Is the driver suppose to come from sane and there is a configuration issue? Is the system suppose to find the driver as a module or compiled-in the kernel? Is there some wild and wonderful dev - devsfs issue?
Any intel (small i) would be most appreciated.
Rick
"Es gibt nichts mehr praktish als theorie" L. Boltzmann
Offline
there is no longer a scanner module in the kernel tree for 2.6. You must use libusb with the newest kernels. The latest sane and xsane will use the libusb to find and use the scanner. That is how I got my mustek 1200ub usb scanner to work.
unfortunatly ther isn't much documnetation on libusb.
good luck
slyski
Joey: If a cow passes away from natural causes can I eat it.
Pheobe: Not if I get there first.
Offline
the generic usb scanner module is no longer in the kernel. any scanner that used it mus use libusb now. to do this first remove any entry you have in any module loading files that load that module.
next add either one of these lines to your fstab:
none /proc/bus/usb/ usbfs defaults 0 0
or
none /proc/bus/usb/ usbdevfs defaults 0 0
but going by your output so far you would seem to have one of these two lines in fstab.
anyway either one of those lines will give root only access to your scanner so you will need to give your user access to the device. your can do that in a few ways.
first you can create a group add your user to it then edit your usbfs line to read:
none /proc/bus/usb/ usbfs rw,mode=666,gid=<--newgroupnamehere--> 0 0
or if you have a single user you can edit the line to read:
none /proc/bus/usb/ usbfs defaults,mode=666 0 0
if this does not work read up on hotplug or add this line to you rc.local:
chown -R <yourusername>.users /proc/bus/usb/xxx/*
where the "xxx" represents the three digit number directory in /proc/bus/usb/ that represents your scanner. you can find this by running scanimage -L as root and it will give you two three digit numbers in the output. then look in the number directory/directories for those two numbers and that will be the directory you put in for the xxx.
AKA uknowme
I am not your friend
Offline
Thanks for the good intel. I needed it to set the permissions to use xsane as a user.
The gotcha was the /etc/sane.d/epson.conf file. The default is for a scsi interface. For a USB scanner, comment-out the scsi line and add a line "usb", as shown below:
[rick@arch rick]$ cat /etc/sane.d/epson.conf
# epson.conf
#
# here are some examples for how to configure the EPSON backend
#
# SCSI scanner:
#scsi EPSON
#
# Parallel port scanner:
#pio 0x278
#pio 0x378
#pio 0x3BC
#
# USB scanner - only enable this if you have an EPSON scanner. It could
# otherwise block your non-EPSON scanner from being
# recognized.
# Depending on your distribution, you may need either the
# first or the second entry.
#usb /dev/usbscanner0
#usb /dev/usb/scanner0
usb
This approach assumes libusb is installed, which should be no problem in Arch since sane depends on libusb. The other requirement is the appropriate entry in /etc/fstab. See the previous replies.
According to the docs, with the line "usb" in /etc/sane.d/epson.conf, sane determines the make and model of your scanner. If sane doesn't recognize the make and model of your scanner, then one can replace the line usb with the line usb <vendor ID> <product ID>. These can be determined from the file /proc/ bus/usb/devices.
And all of this discussion assumes #scanimage -L recognizes your scanner.
"Es gibt nichts mehr praktish als theorie" L. Boltzmann
Offline
yeah!
i forgot to mention that /etc/sane.d thing.
glad you got things runnin
slyski
Joey: If a cow passes away from natural causes can I eat it.
Pheobe: Not if I get there first.
Offline