[sane-devel] blank page scanned with CanoScan LiDE25

m. allan noah kitno455 at gmail.com
Tue Oct 21 12:52:23 UTC 2008


i dont know. i would ask on an ubuntu forum just how they manage their
perms on usb devices.

allan

On Tue, Oct 21, 2008 at 8:32 AM, Y P <yellow.penguin at edpnet.be> wrote:
> 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/
>



-- 
"The truth is an offense, but not a sin"



More information about the sane-devel mailing list