[sane-devel] blank page scanned with CanoScan LiDE25
Ralph Müller-Welt
ralph at mueller-welt.net
Tue Oct 21 13:21:34 UTC 2008
Hi Y P,
As ubuntu uses udev to automaticaly setup hardware, i suggest investigating
the relevant udev-rule that setsup your scanner and add the correct
permissions.
hope it helps.
This is just an excerpt of http://www.xs4all.nl/~ljm/SANE-faq.html#82
Maybe out of date.
9.1. Is there a how-to or some general information on USB-scanners?
See http://www.zianet.com/k5di/usb/usb-scanner.txt
9.2. How can I use a USB scanner with Linux 2.6?
With Linux 2.4.* you could either use the kernel scanner module or libusb to
access USB scanners. In Linux 2.6.4 the kernel scanner module was removed.
Therefore with this and later kernels libusb must be used. While SANE
automatically uses libusb when the library and its header file were present
during the build of sane-backends, setting permissions will require some
attention.
The device files used by libusb are located in /proc/bus/usb/ (e.g.
/proc/bus/usb/001/003). The exact file name can be found out by running sane-
find-scanner which would print "libusb:001:003" in this case. While setting
permissions with e.g. "chmod a+rw /proc/bus/usb/001/003" seems to work, this
change is not permanent. The permissions will be reset when the scanner is
replugged or Linux is rebooted.
One solution to set permissions on-the-fly are the Linux hot-plug tools that
should come with any current distribution. SANE itsself comes with a hotplug
script and related documentation in the tools/hotplug/ directory. Please refer
to the README in that directory for the details. You might also wish to browse
through the documentation for the Plustek; it has quite a nice section on how
to set-up your USB access.
Am Dienstag, 21. Oktober 2008 14:32:45 schrieb Y P:
> Hi,
>
> On Tue, Oct 21, 2008 at 08:19:14AM -0400, m. allan noah wrote:
> > the permissions of your program are irrelevant. it is the permissions of
> > the USB device file that matter. Usually, these devices are owned by a
> > group like scanner, and adding yourself to that group fixes the problem.
>
> I added myself to the group scanner but it doesn't seem to resolve the
> problem;
> here are also the output of the command groups under my Ubuntu Hardy; tell
> me what I can do anymore?
>
> yp at ubu:~$ groups
> yp adm dialout cdrom floppy audio dip video plugdev scanner fuse lpadmin
> admin
>
> Y P
>
> --- Our previous session ---
>
> > On Tue, Oct 21, 2008 at 7:50 AM, Y P <yellow.penguin at edpnet.be> wrote:
> > > Hi,
> > >
> > > On Mon, Oct 20, 2008 at 08:26:39PM -0400, m. allan noah wrote:
> > >> perhaps try to sudo your scanimage command.
> > >
> > > Well that works now.
> > >
> > > But:
> > >>if that helps, then you
> > >> need more permissions, perhaps adding yourself to group scanner will
> > >> be enough.
> > >
> > > It seems not: when I launch my homemade scanning script the scanimage
> > > message says:
> > > scanimage: no SANE devices found
> > >
> > > Note that I tryed th next:
> > > sudo chown yp:scanner /usr/local/bin/scan2*
> > > (to sete my scripts in the scanner group,
> > > idem I did: chown yp:scanner ~/lin_scans
> > > since taht's my destination dir.
> > >
> > > None of any changed something:
> > > ONLY sudo scan2* works.
> > >
> > > What am I missing ? (its an USB scanner, so I don't need any
> > > /dev/scanner or so ?
> > >
> > > Y P
> > >
> > > --- My orig. session ---
> > >
> > >> On Mon, Oct 20, 2008 at 2:13 PM, Y P <yellow.penguin at edpnet.be> wrote:
> > >> > Hello SANE-people,
> > >> >
> > >> > can someone help advising me ?
> > >> >
> > >> > - my scanner is a new Canon CanoScan LiDE25
> > >> > - my distro is Ubuntu Hardy
> > >> > - I use the sane-utils since I'm blind and 99.9% commandline user
> > >> > - the device seem to scan but the scanned page is blank;
> > >> > these are more details:
> > >> >
> > >> > # What's already installed or have been added:
> > >> > aldo at ubu:~$ dpkg -l |grep sane
> > >> > ii libsane 1.0.19-1ubuntu3
> > >> > API library for scanners
> > >> >
> > >> > ii sane-utils 1.0.19-1ubuntu3
> > >> > API library for scanners -- utilities
> > >> >
> > >> > (added by me)
> > >> > ii xsane 0.995-1ubuntu1
> > >> > featureful graphical frontend for SANE (Scan
> > >> >
> > >> > ii xsane-common 0.995-1ubuntu1
> > >> > featureful graphical frontend for SANE (Scan
> > >> >
> > >> >
> > >> > # Test to see which groups the major user is being member of:
> > >> > aldo at ubu:~$ groups
> > >> > aldo adm dialout cdrom floppy audio dip video plugdev fuse lpadmin
> > >> > admin
> > >> >
> > >> > (I don't know if I must addgroup scanner and adduser aldo scanner ?
> > >> >
> > >> > aldo at ubu:~$ lsusb
> > >> > Bus 005 Device 001: ID 0000:0000
> > >> >
> > >> > Bus 004 Device 001: ID 0000:0000
> > >> >
> > >> > Bus 003 Device 002: ID 046d:c310 Logitech, Inc.
> > >> >
> > >> > Bus 003 Device 001: ID 0000:0000
> > >> >
> > >> > Bus 002 Device 002: ID 0a5c:2101 Broadcom Corp.
> > >> >
> > >> > Bus 002 Device 001: ID 0000:0000
> > >> >
> > >> > Bus 001 Device 005: ID 04a9:2220 Canon, Inc.
> > >> >
> > >> > Bus 001 Device 003: ID 05e3:0606 Genesys Logic, Inc. D-Link DUB-H4
> > >> > USB 2.0 Hub
> > >> >
> > >> > Bus 001 Device 001: ID 0000:0000
> > >> >
> > >> > (the device is detected)
> > >> >
> > >> > aldo at ubu:~$ sane-find-scanner
> > >> >
> > >> >
> > >> > # 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.
> > >> >
> > >> >
> > >> >
> > >> > found USB scanner (vendor=0x04a9, product=0x2220, chip=LM983x?) at
> > >> > libusb:001:005
> > >> >
> > >> > # 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.
> > >> >
> > >> >
> > >> >
> > >> > # You may want to run this program as root to find all devices.
> > >> > Once you
> > >> >
> > >> > # found the scanner devices, be sure to adjust access permissions
> > >> > as
> > >> >
> > >> > # necessary.
> > >> >
> > >> > (its type is USB, so that's OK)
> > >> >
> > >> > # now as user:
> > >> > aldo at ubu:~$ scanimage -L
> > >> >
> > >> >
> > >> > 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).
> > >> >
> > >> >
> > >> > # As sudo:
> > >> > aldo at ubu:~$ sudo scanimage -L
> > >> > [sudo] password for aldo:
> > >> > device `plustek:libusb:001:005' is a Canon CanoScan LiDE25 flatbed
> > >> > scanner
> > >> >
> > >> >
> > >> > Now if I do:
> > >> > scanimage -v -p -l 0 -t 0 -x 215 -y 297 --mode Gray --format tiff
> > >> > --resolution 600 >/tmp/tmp.tiff convert /tmp/tmp.tiff oout.jpg
> > >> >
> > >> > it seems to scan, but friends are telling me the scanned doc is
> > >> > empty.
> > >> >
> > >> > I don't see what is wrong?
> > >> >
> > >> > Grtnx,
> > >> >
> > >> > Aldo.
> > >> >
> > >> >
> > >> > --
> > >> > sane-devel mailing list: sane-devel at lists.alioth.debian.org
> > >> > http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> > >> > Unsubscribe: Send mail with subject "unsubscribe your_password"
> > >> > to sane-devel-request at lists.alioth.debian.org
> > >>
> > >> --
> > >> "The truth is an offense, but not a sin"
> > >
> > > --
> > > https://bugs.launchpad.net/ubuntu/+bug/1 :
> > > Micro$oft has a majority market share in the new desktop PC
> > > marketplace. This is a bug, which Ubuntu is designed to fix !
> > > http://www.ubuntu.com/
> >
> > --
> > "The truth is an offense, but not a sin"
>
> --
> https://bugs.launchpad.net/ubuntu/+bug/1 :
> Micro$oft has a majority market share in the new desktop PC marketplace.
> This is a bug, which Ubuntu is designed to fix !
> http://www.ubuntu.com/
More information about the sane-devel
mailing list