[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread Y P
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  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  libsane1.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 :
> >
> > Bus 004 Device 001: ID :
> >
> > Bus 003 Device 002: ID 046d:c310 Logitech, Inc.
> >
> > Bus 003 Device 001: ID :
> >
> > Bus 002 Device 002: ID 0a5c:2101 Broadcom Corp.
> >
> > Bus 002 Device 001: ID :
> >
> > 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 :
> >
> > (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

[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread m. allan noah
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.

allan

On Tue, Oct 21, 2008 at 7:50 AM, Y P  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  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  libsane1.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 :
>> >
>> > Bus 004 Device 001: ID :
>> >
>> > Bus 003 Device 002: ID 046d:c310 Logitech, Inc.
>> >
>> > Bus 003 Device 001: ID :
>> >
>> > Bus 002 Device 002: ID 0a5c:2101 Broadcom Corp.
>> >
>> > Bus 002 Device 001: ID :
>> >
>> > 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 :
>> >
>> > (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 lis

[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread 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  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  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  libsane1.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 :
> >> >
> >> > Bus 004 Device 001: ID :
> >> >
> >> > Bus 003 Device 002: ID 046d:c310 Logitech, Inc.
> >> >
> >> > Bus 003 Device 001: ID :
> >> >
> >> > Bus 002 Device 002: ID 0a5c:2101 Broadcom Corp.
> >> >
> >> > Bus 002 Device 001: ID :
> >> >
> >> > 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 :
> >> >
> >> > (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

[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread m. allan noah
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  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  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  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  libsane1.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 :
>> >> >
>> >> > Bus 004 Device 001: ID :
>> >> >
>> >> > Bus 003 Device 002: ID 046d:c310 Logitech, Inc.
>> >> >
>> >> > Bus 003 Device 001: ID :
>> >> >
>> >> > Bus 002 Device 002: ID 0a5c:2101 Broadcom Corp.
>> >> >
>> >> > Bus 002 Device 001: ID :
>> >> >
>> >> > 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 :
>> >> >
>> >> > (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.
>

[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread g
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Y P wrote:
> I added myself to the group scanner but it doesn't seem to resolve the

is re-logging system or reboot required for group assignment?

ria, a couple years back, when using mandrake, i had to do one or other
to get into scanner group.

- --

tc,hago.

g
.

in a free world without fences, who needs gates.

learn linux:
'Rute User's Tutorial and Exposition'   http://rute.2038bug.com/index.html.gz
'The Linux Documentation Project'   http://www.tldp.org/
'HowtoForge'   http://howtoforge.com/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFI/dEu+C4Bj9Rkw/wRApSCAKDVuEDGPVvQcVeoD/CGcK9O+DDH5QCfeCsp
/ffy8UcUkAWGIvrD/teStEs=
=TLHc
-END PGP SIGNATURE-




[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread Y P
Hi,

On Tue, Oct 21, 2008 at 12:55:11PM +, g wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Y P wrote:
> > I added myself to the group scanner but it doesn't seem to resolve the
> 
> is re-logging system or reboot required for group assignment?

Well, today is another day, and today I'm still unable to scan without being
sudo, so rebooting or completely restart the pc doesn't fix the problem.
That means it is really a perm problem.
 
> ria, a couple years back, when using mandrake, i had to do one or other
> to get into scanner group.

As said, I added myself to scanner, but i am wondered to see sighted persons
who doesn't had that problem from within Gnome/Xsane: in my case I have to
fix it for the console.
But note taht on a remove pc (Feisty) my partner does uses her scanner as
well graphically as under console, without having to become sudo.

Y P




[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread Ralph Müller-Welt
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  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  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  libsane1.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 :
> > >> >
> > >> > Bus 004 Device 001: ID :
> > >> >
> > >> > Bus 003 Device 002: ID 046d:c310 Logitech, Inc.
> > >> >
> > >> > Bus 003 Device 001: ID :

[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread Gerhard Jaeger
On Tuesday 21 October 2008 15:14:02 Y P wrote:
> Hi,
> 
> On Tue, Oct 21, 2008 at 12:55:11PM +, g wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> > 
> > Y P wrote:
> > > I added myself to the group scanner but it doesn't seem to resolve the
> > 
> > is re-logging system or reboot required for group assignment?
> 
> Well, today is another day, and today I'm still unable to scan without being
> sudo, so rebooting or completely restart the pc doesn't fix the problem.
> That means it is really a perm problem.
>  
> > ria, a couple years back, when using mandrake, i had to do one or other
> > to get into scanner group.
> 
> As said, I added myself to scanner, but i am wondered to see sighted persons
> who doesn't had that problem from within Gnome/Xsane: in my case I have to
> fix it for the console.
> But note taht on a remove pc (Feisty) my partner does uses her scanner as
> well graphically as under console, without having to become sudo.
> 

I'm not for Ubuntu, but for SuSE, I simply tweaked 
/etc/udev/rules.d/50-udev-default.rules

# libusb device access
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", 
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"

something similar should be possible for Ubuntu too.

HTH
Gerhard



[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread m. allan noah
gentlemen- we have led YP astray. It seems that recent Ubuntu and
Fedora no longer install udev rules, but rather, use ConsoleKit and
hal to manage device access.

look around in /usr/share/hal/fdi for some sort of libsane.fdi file.
Verify that the scanner's usb vendor and device ids are in that file.
If they are, then perhaps the hal fdi cache is corrupt, see ubuntu bug
#211708 for a possible fix.

allan

On Tue, Oct 21, 2008 at 9:25 AM, Gerhard Jaeger  wrote:
> On Tuesday 21 October 2008 15:14:02 Y P wrote:
>> Hi,
>>
>> On Tue, Oct 21, 2008 at 12:55:11PM +, g wrote:
>> > -BEGIN PGP SIGNED MESSAGE-
>> > Hash: SHA1
>> >
>> > Y P wrote:
>> > > I added myself to the group scanner but it doesn't seem to resolve the
>> >
>> > is re-logging system or reboot required for group assignment?
>>
>> Well, today is another day, and today I'm still unable to scan without being
>> sudo, so rebooting or completely restart the pc doesn't fix the problem.
>> That means it is really a perm problem.
>>
>> > ria, a couple years back, when using mandrake, i had to do one or other
>> > to get into scanner group.
>>
>> As said, I added myself to scanner, but i am wondered to see sighted persons
>> who doesn't had that problem from within Gnome/Xsane: in my case I have to
>> fix it for the console.
>> But note taht on a remove pc (Feisty) my partner does uses her scanner as
>> well graphically as under console, without having to become sudo.
>>
>
> I'm not for Ubuntu, but for SuSE, I simply tweaked
> /etc/udev/rules.d/50-udev-default.rules
>
> # libusb device access
> SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", 
> NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"
>
> something similar should be possible for Ubuntu too.
>
> HTH
> Gerhard
>
> --
> 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"



[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread g
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Y P wrote:

> As said, I added myself to scanner, but i am wondered to see sighted persons

do you have 'gimp' installed? is so, see if you can scan under it.
- --

tc,hago.

g
.

in a free world without fences, who needs gates.

learn linux:
'Rute User's Tutorial and Exposition'   http://rute.2038bug.com/index.html.gz
'The Linux Documentation Project'   http://www.tldp.org/
'HowtoForge'   http://howtoforge.com/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFI/fOW+C4Bj9Rkw/wRAqm6AJ9R4LgUAvfTH6TpEboQO5K7Cnl5vgCeK49Z
3yEFGhWd01ExwMzNx09D8sw=
=qqJ2
-END PGP SIGNATURE-



[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread Y P
Hi,

On Tue, Oct 21, 2008 at 09:39:43AM -0400, m. allan noah wrote:
> gentlemen- we have led YP astray. It seems that recent Ubuntu and
> Fedora no longer install udev rules, but rather, use ConsoleKit and
> hal to manage device access.
> 
> look around in /usr/share/hal/fdi for some sort of libsane.fdi file.

OK, the directory exist.
But no libsane.fdi there.
It's elsewhere... see more below.

> Verify that the scanner's usb vendor and device ids are in that file.
> If they are, then perhaps the hal fdi cache is corrupt, see ubuntu bug
> #211708 for a possible fix.

On my Hardy, there is a file called 20-libsane.fdi; the path is:
/usr/share/hal/fdi/preprobe/10osvendor/
and the 20-libsane.fdi file is +/- 210k great.

Content regarding LiDE25 is:



  
  

  scanner
  proprietary

  
 


i don't know if that info should be relevant for resolving the problem.

GrtnX,

Y)ellow P)enguin




[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread m. allan noah
run 'lshal' and see if the scanner is anywhere in that long list

allan

On Tue, Oct 21, 2008 at 11:25 AM, Y P  wrote:
> Hi,
>
> On Tue, Oct 21, 2008 at 09:39:43AM -0400, m. allan noah wrote:
>> gentlemen- we have led YP astray. It seems that recent Ubuntu and
>> Fedora no longer install udev rules, but rather, use ConsoleKit and
>> hal to manage device access.
>>
>> look around in /usr/share/hal/fdi for some sort of libsane.fdi file.
>
> OK, the directory exist.
> But no libsane.fdi there.
> It's elsewhere... see more below.
>
>> Verify that the scanner's usb vendor and device ids are in that file.
>> If they are, then perhaps the hal fdi cache is corrupt, see ubuntu bug
>> #211708 for a possible fix.
>
> On my Hardy, there is a file called 20-libsane.fdi; the path is:
> /usr/share/hal/fdi/preprobe/10osvendor/
> and the 20-libsane.fdi file is +/- 210k great.
>
> Content regarding LiDE25 is:
>
> 
>
>  
>  
>
>  scanner
>  proprietary
>
>  
>
> 
>
> i don't know if that info should be relevant for resolving the problem.
>
> GrtnX,
>
> Y)ellow P)enguin
>
>



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



[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread Y P
Hi Gerhard,

On Tue, Oct 21, 2008 at 03:25:38PM +0200, Gerhard Jaeger wrote:
> On Tuesday 21 October 2008 15:14:02 Y P wrote:
> > Hi,
> > 
> > On Tue, Oct 21, 2008 at 12:55:11PM +, g wrote:
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA1
> > > 
> > > Y P wrote:
> > > > I added myself to the group scanner but it doesn't seem to resolve the
> > > 
> > > is re-logging system or reboot required for group assignment?
> > 
> > Well, today is another day, and today I'm still unable to scan without being
> > sudo, so rebooting or completely restart the pc doesn't fix the problem.
> > That means it is really a perm problem.
> >  
> > > ria, a couple years back, when using mandrake, i had to do one or other
> > > to get into scanner group.
> > 
> > As said, I added myself to scanner, but i am wondered to see sighted persons
> > who doesn't had that problem from within Gnome/Xsane: in my case I have to
> > fix it for the console.
> > But note taht on a remove pc (Feisty) my partner does uses her scanner as
> > well graphically as under console, without having to become sudo.
> > 
 
> I'm not for Ubuntu, but for SuSE, I simply tweaked 
> /etc/udev/rules.d/50-udev-default.rules
> 
> # libusb device access
> SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", 
> NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"
> 
> something similar should be possible for Ubuntu too.

I found /etc/udev/rules.d/50-libpisock9.rules but it doesnt contain any
codeline as you told; should I add what you suggest asis to it & reboot ?

This is its content:

# $Id: 60-libpisock.rules,v 1.4 2007/02/16 18:26:41 desrod Exp $
#
# udev rules file for pilot-link's libpisock library, enabled for libusb
#
SUBSYSTEMS!="usb", ACTION!="add", GOTO="libpisock_rules_end"

# Sony handheld devices
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0038", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0066", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0095", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="009a", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="00da", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="00e9", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0144", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0169", GROUP="dialout", MODE="0664"

# Handspring handheld devices
ATTRS{idVendor}=="082d", ATTRS{idProduct}=="0100", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="082d", ATTRS{idProduct}=="0200", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="082d", ATTRS{idProduct}=="0300", GROUP="dialout", MODE="0664"

# Palm, Inc. and palmOne handheld devices
ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6601", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="8001", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0001", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0002", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0003", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0020", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0031", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0040", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0050", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0060", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0061", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0070", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0830", ATTRS{idProduct}=="0080", GROUP="dialout", MODE="0664"

# Garmin iQue 3600
ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0004", GROUP="dialout", MODE="0664"
ATTRS{idVendor}=="0c88", ATTRS{idProduct}=="0021", GROUP="dialout", MODE="0664"

# Tapwave Zodiac 1 & 2
ATTRS{idVendor}=="12ef", ATTRS{idProduct}=="0100", GROUP="dialout", MODE="0664"

# Unknown device (can someone confirm?)
ATTRS{idVendor}=="4766", ATTRS{idProduct}=="0001", GROUP="dialout", MODE="0664"

LABEL="libpisock_rules_end"




[sane-devel] Perl Bindings

2008-10-21 Thread Jeffrey Ratcliffe
2008/10/20 m. allan noah :
> that is used when the option is a series of numbers. sometimes used
> for gamma tables and the like.

Can you be a bit more specific, perhaps with an example?

Thanks

Jeff



[sane-devel] Perl Bindings

2008-10-21 Thread m. allan noah
umax_pp.c:  dev->opt[OPT_GAMMA_VECTOR].size = 256 * sizeof (SANE_Word);

the option is a C-style array of values, not just a single value. lots
of other backends do this too, search for GAMMA_VECTOR.

allan

On Tue, Oct 21, 2008 at 11:59 AM, Jeffrey Ratcliffe
 wrote:
> 2008/10/20 m. allan noah :
>> that is used when the option is a series of numbers. sometimes used
>> for gamma tables and the like.
>
> Can you be a bit more specific, perhaps with an example?
>
> Thanks
>
> Jeff
>
-- 
"The truth is an offense, but not a sin"



[sane-devel] Migrate from CVS to SVN or DVCS?

2008-10-21 Thread Jeff Kowalczyk
Is there any interest in migrating SANE's CVS to a newer revision control
system?

Subversion would be an improvement for its repository-wide revision
numbers.

A DVCS such as git would be even more interesting, given the apparent
number of people who could contribute code and/or scanner test data.

I became interested in this when planning to make a CVS snapshot package
to use some of our scanner hardware. I realized I didn't know offhand how
to refer to a particular revision of the whole tree with CVS.

With DVCS, maintainers could pull from anyone's repository which
contains useful changesets, and perhaps the newer RCS systems'
export features would make incremental releases easier.






[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread Y P
On Tue, Oct 21, 2008 at 11:50:05AM -0400, m. allan noah wrote:
> run 'lshal' and see if the scanner is anywhere in that long list
> 
IMHO he is; see below:
  
  

  scanner
  proprietary

  

I think the problem is the hal version that comes with Ubuntu Hardy, cf.
launchpad.net bug180794.

Y P




[sane-devel] blank page scanned with CanoScan LiDE25

2008-10-21 Thread Y P
On Tue, Oct 21, 2008 at 03:21:59PM +, g wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Y P wrote:
> 
> > As said, I added myself to scanner, but i am wondered to see sighted persons
> 
> do you have 'gimp' installed? is so, see if you can scan under it.

I can't use The Gimp, I'm visually impaired;
I use Orca + Firefox, taht's all I currently use, for the rest I prefer the
commandline apps.

Y P