List Info

Thread: Problems with sane and USB




Problems with sane and USB
user name
2006-11-05 00:12:39
On Sat, 4 Nov 2006 clisbd.net wrote:

> If I run "sane-find-scanner" as root it
correctly says:-
>
>    found USB scanner (vendor=0x04b8 [EPSON],
product=0x012c [EPSON Scanner]) at libusb:7:2
>
> I can make this work as a user by changing permissions
but I'm not
> clear how to make the change 'stick'.

look at the docs for udev, i assume slack uses it.

>
> If I run "scanimage -L" as root it says
"No scanners were identified".
>
> If I run "xsane" or "xscanimage" as
root they find both my scanners.

the fact that scanimage does not work, but xsane does,
generally means 
that you have two copies of sane-backends installed, often
the distro's 
original one, and one in /usr/local

>
> If I run "xsane" or "xscanimage" as
a user they only see the HP
> all-in-one scanner.

permissions

>
> If I run iscan (which I have installed) it says
"Could not send
> command to scanner".
>

no idea. i dont use epson stuff or iscan.

>
> So how do I get this all to work consistently?
>

trash all copies of sane on system. try again? i dont know
if you need the 
proprietary modules or if the epson backend works?

allan

>

-- 
"so don't tell us it can't be done, putting down what
you don't know.
money isn't our god, integrity will free our souls" -
Max Cavalera

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Problems with sane and USB
user name
2006-11-05 10:06:50
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

m. allan noah wrote, On 11/05/2006 01:12 AM:
> On Sat, 4 Nov 2006 clisbd.net wrote:
> 
>> If I run "sane-find-scanner" as root it
correctly says:-
>>
>>    found USB scanner (vendor=0x04b8 [EPSON],
product=0x012c [EPSON
>> Scanner]) at libusb:7:2
>>
>> I can make this work as a user by changing
permissions but I'm not
>> clear how to make the change 'stick'.
> 

http://www.s
ane-project.org/README.linux , read the
"Permissions:" section.

"One solution to set permissions on-the-fly is Linux
udev which comes
with current distributions. SANE comes with a udev rules
file in the
tools/udev directory which may be used by distributions or
can be copied
to /etc/udev/rules.d manually. The file format is explained
on top of
the file itself. Either you need libusb 0.1.12 or newer or
USB_DEVFS_PATH=/dev/bus/usb must be exported as a
system-wide
environment variable."


- --
- ----------------------------
Kristian Fiskerstrand
http://www.kfwebs.net
- ----------------------------
http://www.secure-my-e
mail.com
http://www.secure-m
y-internet.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6-svn4282 (GNU/Linux)

iQIVAwUBRU23uRbgz41rC5UIAQjOSQ/5AVJPfc3jTnYVUklE00RCLUacExwF
p/Wc
JmGTmSeEo3fWZx2kmekwOGOEdSiKlE8/PZmc4etIf9cPiIZ106bGNt8T+4PE
4GC3
u+8IDtUT6kt7dQqwOTCccVcFuvSD+9ln/Q9WHhnbqbS4fQqm1Qvy2K5l/857
xH7h
P0ATgjHH31OzjaOpYZy5wCRC3u13Bd5JXJcrG05rPJwbPYxl2a8IxTQJmbfC
PifE
jfgPTxVnbh9K9CrKWugJebqVL3jaVqknVjDnr1kjYMOTAn3r4NpYn0P+Q+54
p+ae
y9gCoXYI/iMuUvvN8ygX2G5IT9khUVJ+Q6eJcUy2ZoR7iyrkHFLXx02cWcZ1
fgc0
vPKrNTFWm6ILGQ5dEdg1xwYWQMve2pz5AFVW8RmPgUVuBmT/tOSCwnvaa0uu
i1to
kRSbTKivssNxFAwUEkeiWIrjhe6qV+DRtFc8gLXb4L0Xv6sLPhjCVCaZIWB2
UMro
MlIRnxi6Oi3X0dujmOPKxIM24Rp0s28Xe4JjtI+4Ca+2Izdjo45Qqy6Vs/yn
HxQJ
chHBIO9hP6RHeqlNoNtkTLBmxjkJJL+8OIPw0zzq6HIk3+moQQvsSV6Mjyuz
A9R1
19v3OoKfNHeFEAYOX6RHyo7p8cvSoyBUo99sPBNKpy5j8EKA6M3L9/tDNWh0
UaUV
44EdCYcmcwo=
=bPK5
-----END PGP SIGNATURE-----

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Problems with sane and USB
user name
2006-11-06 00:13:11
"m. allan noah" <anoahpfeiffer.edu> writes:

> On Sat, 4 Nov 2006 clisbd.net wrote:
>
>> If I run "sane-find-scanner" as root it
correctly says:-
>>
>>    found USB scanner (vendor=0x04b8 [EPSON],
product=0x012c [EPSON Scanner]) at libusb:7:2
>>
>> I can make this work as a user by changing
permissions but I'm not
>> clear how to make the change 'stick'.
>
> look at the docs for udev, i assume slack uses it.
>
>>
>> If I run "scanimage -L" as root it says
"No scanners were identified".
>>
>> If I run "xsane" or
"xscanimage" as root they find both my scanners.
>
> the fact that scanimage does not work, but xsane does,
generally means
> that you have two copies of sane-backends installed,
often the
> distro's original one, and one in /usr/local
>
>>
>> If I run "xsane" or
"xscanimage" as a user they only see the HP
>> all-in-one scanner.
>
> permissions
>
>>
>> If I run iscan (which I have installed) it says
"Could not send
>> command to scanner".
>>
>
> no idea. i dont use epson stuff or iscan.
>
>>
>> So how do I get this all to work consistently?
>>
>
> trash all copies of sane on system. try again? i dont
know if you need
> the proprietary modules or if the epson backend works?

It doesn't need proprietary modules.  As the V700 has only
been added
in CVS after 1.0.18 released, I would assume it is not in
the list of
scanners used by udev/hotplug.  Add a line similar to the
ones already
in /etc/udev/rules.d/*libsane.rules or
/etc/hotplug/usb/libsane.usermap to match the Perfection
V700.  Just
replace the USB product ID to match your device (0x012c).

Hope this helps,
-- 
Olaf Meeuwissen                          EPSON AVASYS
Corporation, SE1
FSF Associate Member #1962           sign up at http://member.fsf.org/
GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97  976A 16C7 F27D
6BE3 7D90
Penguin's lib!       -- I hack, therefore I am --           
   LPIC-2

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Problems with sane and USB
user name
2006-11-06 09:19:38
On Sat, Nov 04, 2006 at 07:12:39PM -0500, m. allan noah
wrote:
> On Sat, 4 Nov 2006 clisbd.net wrote:
> 
> >If I run "sane-find-scanner" as root it
correctly says:-
> >
> >   found USB scanner (vendor=0x04b8 [EPSON],
product=0x012c [EPSON 
> >   Scanner]) at libusb:7:2
> >
> >I can make this work as a user by changing
permissions but I'm not
> >clear how to make the change 'stick'.
> 
> look at the docs for udev, i assume slack uses it.
> 
> >
> >If I run "scanimage -L" as root it says
"No scanners were identified".
> >
> >If I run "xsane" or
"xscanimage" as root they find both my scanners.
> 
> the fact that scanimage does not work, but xsane does,
generally means 
> that you have two copies of sane-backends installed,
often the distro's 
> original one, and one in /usr/local
> 
Ah, thanks, it's possible that I do have two copies of sane
installed,
I'll investigate.

> >
> >If I run "xsane" or
"xscanimage" as a user they only see the HP
> >all-in-one scanner.
> 
> permissions
> 
> >
> >If I run iscan (which I have installed) it says
"Could not send
> >command to scanner".
> >
> 
> no idea. i dont use epson stuff or iscan.
> 
> >
> >So how do I get this all to work consistently?
> >
> 
> trash all copies of sane on system. try again? i dont
know if you need the 
> proprietary modules or if the epson backend works?
> 
The epson backend is supposed to work with the V700. 
There's an
"epkowa" backend specifically for iscan.

-- 
Chris Green (chrishalon.org.uk)

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Problems with sane and USB
user name
2006-11-06 09:21:00
On Sun, Nov 05, 2006 at 11:06:50AM +0100, Kristian
Fiskerstrand wrote:
> m. allan noah wrote, On 11/05/2006 01:12 AM:
> > On Sat, 4 Nov 2006 clisbd.net wrote:
> > 
> >> If I run "sane-find-scanner" as root
it correctly says:-
> >>
> >>    found USB scanner (vendor=0x04b8 [EPSON],
product=0x012c [EPSON
> >> Scanner]) at libusb:7:2
> >>
> >> I can make this work as a user by changing
permissions but I'm not
> >> clear how to make the change 'stick'.
> > 
> 
> http://www.s
ane-project.org/README.linux , read the
"Permissions:" section.
> 
> "One solution to set permissions on-the-fly is
Linux udev which comes
> with current distributions. SANE comes with a udev
rules file in the
> tools/udev directory which may be used by distributions
or can be copied
> to /etc/udev/rules.d manually. The file format is
explained on top of
> the file itself. Either you need libusb 0.1.12 or newer
or
> USB_DEVFS_PATH=/dev/bus/usb must be exported as a
system-wide
> environment variable."
> 
Thanks, OK, I'll have a dig around there when I've cleared
up the
other issues I have.  Part of the problem has been that
several
problems have interacted to make things even more confusing
than
normal.

-- 
Chris Green (chrishalon.org.uk)

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Problems with sane and USB
user name
2006-11-06 09:57:22
On Mon, Nov 06, 2006 at 09:19:38AM +0000, clisbd.net
wrote:
> On Sat, Nov 04, 2006 at 07:12:39PM -0500, m. allan noah
wrote:
> > On Sat, 4 Nov 2006 clisbd.net wrote:
[snip]
> > >
> > >If I run "scanimage -L" as root it
says "No scanners were identified".
> > >
> > >If I run "xsane" or
"xscanimage" as root they find both my scanners.
> > 
> > the fact that scanimage does not work, but xsane
does, generally means 
> > that you have two copies of sane-backends
installed, often the distro's 
> > original one, and one in /usr/local
> > 
> Ah, thanks, it's possible that I do have two copies of
sane installed,
> I'll investigate.
> 
It's not that I have two copies of sane installed, it's the
various
"add-ons" that have screwed things up.  It would
appear that both the
HPLIP/CUPS installation and the iscan installation have
assumed a base
directory of /usr/local whereas the basic sane installation
is in
/usr.

The result is a right hodge-podge of things in the wrong
places.

It's *very* obvious why iscan doesn't work, I'm still less
lear about
why "scanimage -L" doesn't work, as suggested I
think I'll maybe try
uninstalling and then re-installing everything with
"where to install"
set to the same place for all.

-- 
Chris Green (chrishalon.org.uk)

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Problems with sane and USB
user name
2006-11-06 10:39:02
On Mon, Nov 06, 2006 at 09:57:22AM +0000, clisbd.net
wrote:
> On Mon, Nov 06, 2006 at 09:19:38AM +0000, clisbd.net
wrote:
> > On Sat, Nov 04, 2006 at 07:12:39PM -0500, m. allan
noah wrote:
> > > On Sat, 4 Nov 2006 clisbd.net wrote:
> [snip]
> > > >
> > > >If I run "scanimage -L" as root
it says "No scanners were identified".
> > > >
> > > >If I run "xsane" or
"xscanimage" as root they find both my scanners.
> > > 
> > > the fact that scanimage does not work, but
xsane does, generally means 
> > > that you have two copies of sane-backends
installed, often the distro's 
> > > original one, and one in /usr/local
> > > 
> > Ah, thanks, it's possible that I do have two
copies of sane installed,
> > I'll investigate.
> > 
> It's not that I have two copies of sane installed, it's
the various
> "add-ons" that have screwed things up.  It
would appear that both the
> HPLIP/CUPS installation and the iscan installation have
assumed a base
> directory of /usr/local whereas the basic sane
installation is in
> /usr.
> 
> The result is a right hodge-podge of things in the
wrong places.
> 
> It's *very* obvious why iscan doesn't work, I'm still
less lear about
> why "scanimage -L" doesn't work, as suggested
I think I'll maybe try
> uninstalling and then re-installing everything with
"where to install"
> set to the same place for all.
> 
Well simply uninstalling iscan and then re-installing it so
that it
installs in /usr instead of /usr/local seems to have cleared
up most
of my problems.  All I have to deal with now is the
udev/permissions.

Thanks for the help everyone.

-- 
Chris Green (chrishalon.org.uk)

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Problems with sane and USB
user name
2006-11-06 23:24:33
clisbd.net writes:

> On Mon, Nov 06, 2006 at 09:19:38AM +0000, clisbd.net
wrote:
>> On Sat, Nov 04, 2006 at 07:12:39PM -0500, m. allan
noah wrote:
>> > On Sat, 4 Nov 2006 clisbd.net wrote:
> [snip]
>> > >
>> > >If I run "scanimage -L" as root
it says "No scanners were identified".
>> > >
>> > >If I run "xsane" or
"xscanimage" as root they find both my scanners.
>> > 
>> > the fact that scanimage does not work, but
xsane does, generally means 
>> > that you have two copies of sane-backends
installed, often the distro's 
>> > original one, and one in /usr/local
>> > 
>> Ah, thanks, it's possible that I do have two copies
of sane installed,
>> I'll investigate.
>> 
> It's not that I have two copies of sane installed, it's
the various
> "add-ons" that have screwed things up.  It
would appear that both the
> HPLIP/CUPS installation and the iscan installation have
assumed a base
> directory of /usr/local whereas the basic sane
installation is in
> /usr.

The iscan RPMs use /usr (and are not relocatable).  If you
compiled
from source, the ./configure script is GNU standards
compliant and
uses /usr/local as the default prefix.  A look at:

  $ ./configure --help

would have told you that.  You can easily recompile for /usr
with

  # ./configure --prefix=/usr

> The result is a right hodge-podge of things in the
wrong places.
>
> It's *very* obvious why iscan doesn't work, I'm still
less lear about
> why "scanimage -L" doesn't work, as suggested
I think I'll maybe try
> uninstalling and then re-installing everything with
"where to install"
> set to the same place for all.

Hope this helps,
-- 
Olaf Meeuwissen                          EPSON AVASYS
Corporation, SE1
FSF Associate Member #1962           sign up at http://member.fsf.org/
GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97  976A 16C7 F27D
6BE3 7D90
Penguin's lib!       -- I hack, therefore I am --           
   LPIC-2

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Problems with sane and USB
user name
2006-11-07 09:10:31
On Tue, Nov 07, 2006 at 08:24:33AM +0900, Olaf Meeuwissen
wrote:
> clisbd.net writes:
> 
> > On Mon, Nov 06, 2006 at 09:19:38AM +0000, clisbd.net
wrote:
> >> On Sat, Nov 04, 2006 at 07:12:39PM -0500, m.
allan noah wrote:
> >> > On Sat, 4 Nov 2006 clisbd.net
wrote:
> > [snip]
> >> > >
> >> > >If I run "scanimage -L" as
root it says "No scanners were identified".
> >> > >
> >> > >If I run "xsane" or
"xscanimage" as root they find both my scanners.
> >> > 
> >> > the fact that scanimage does not work,
but xsane does, generally means 
> >> > that you have two copies of sane-backends
installed, often the distro's 
> >> > original one, and one in /usr/local
> >> > 
> >> Ah, thanks, it's possible that I do have two
copies of sane installed,
> >> I'll investigate.
> >> 
> > It's not that I have two copies of sane installed,
it's the various
> > "add-ons" that have screwed things up. 
It would appear that both the
> > HPLIP/CUPS installation and the iscan installation
have assumed a base
> > directory of /usr/local whereas the basic sane
installation is in
> > /usr.
> 
> The iscan RPMs use /usr (and are not relocatable).  If
you compiled
> from source, the ./configure script is GNU standards
compliant and
> uses /usr/local as the default prefix.  A look at:
> 
>   $ ./configure --help
> 
> would have told you that.  You can easily recompile for
/usr with
> 
>   # ./configure --prefix=/usr
> 
Yes, that's exactly what I have done (after uninstalling the
/usr/local version of iscan) and, as I have already reported
here, it
has fixed all of my problems.

It's just unfortunate that my Slackware package install of
sane put
it in /usr and the iscan install went to /usr/local by
default.
Normally one *can* install 'non standard' packages (i.e.
stuff that's
not part of the Slackware distribution) in /usr/local
without
problems.  Iscan is an exception and needs to be in the same
place as
the rest of sane.


-- 
Chris Green (chrishalon.org.uk)

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Problems with sane and USB
user name
2006-11-07 23:33:15
clisbd.net writes:

> On Tue, Nov 07, 2006 at 08:24:33AM +0900, Olaf
Meeuwissen wrote:
>> clisbd.net writes:
>> 
>> > On Mon, Nov 06, 2006 at 09:19:38AM +0000,
clisbd.net wrote:
>> > It's not that I have two copies of sane
installed, it's the various
>> > "add-ons" that have screwed things
up.  It would appear that both the
>> > HPLIP/CUPS installation and the iscan
installation have assumed a base
>> > directory of /usr/local whereas the basic sane
installation is in
>> > /usr.
>> 
>> The iscan RPMs use /usr (and are not relocatable). 
If you compiled
>> from source, the ./configure script is GNU
standards compliant and
>> uses /usr/local as the default prefix.  A look at:
>> 
>>   $ ./configure --help
>> 
>> would have told you that.  You can easily recompile
for /usr with
>> 
>>   # ./configure --prefix=/usr
>> 
> Yes, that's exactly what I have done (after
uninstalling the
> /usr/local version of iscan) and, as I have already
reported here, it
> has fixed all of my problems.
>
> It's just unfortunate that my Slackware package install
of sane put
> it in /usr and the iscan install went to /usr/local by
default.
> Normally one *can* install 'non standard' packages
(i.e. stuff that's
> not part of the Slackware distribution) in /usr/local
without
> problems.  Iscan is an exception and needs to be in the
same place as
> the rest of sane.

<nitpick>
That is open for discussion.  You can install iscan under
/usr/local
and create a symbolic link to the epkowa backend in
/usr/lib/sane or
set up your LD_LIBRARY_PATH to include /usr/local/lib/sane. 
It's not
so much iscan's fault as that the distribution's SANE
packages assume
all backends live in the same place.
</nitpick>

-- 
Olaf Meeuwissen                          EPSON AVASYS
Corporation, SE1
FSF Associate Member #1962           sign up at http://member.fsf.org/
GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97  976A 16C7 F27D
6BE3 7D90
Penguin's lib!       -- I hack, therefore I am --           
   LPIC-2

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
[1-10]

about | contact  Other archives ( Real Estate discussion Medical topics )