[sane-devel] Scanner Access on FreeBSD

Tom Garvin tomgarvin at amyskitchen.net
Fri Jul 13 15:41:55 UTC 2007


I'm looking for help in opening access to a scanner on FreeBSD.  My
setup is:

 

OS:                  FreeBSD v6.2

SANE:              current versions of frontend and backend from ports

Scanner:           Avision AV220C2

 

Situation is that everything works from root... scanadf scans a document
just fine.  Debug output as root is almost identical to what you see
below, except that it finds one scanner and lists it properly.  My
problem is that I can't get the saned user to work.  I've followed the
steps at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/scanners.html
to no avail.  I realize that it must be a permissions issue, but can't
see the solution.  I think the debug output shows that saned user can
read the /usr/local/etc/sane.d files.  And I think device permissions
are set to allow saned access through the operator group.  So I'm a
little stumped and appreciative of any help.

 

 

$ whoami

saned

$ sane-find-scanner -q

found USB scanner (vendor=0x0638 [AVISION ], product=0x0a2a [AV220C2])
at libusb:/dev/usb2:/dev/ugen0

$ ll /dev | grep ugen0

crw-rw----  1 root   operator    0,  90 Jul 13 06:13 ugen0

crw-r--r--  1 root   operator    0,  96 Jul 13 06:13 ugen0.1

crw-r--r--  1 root   operator    0,  97 Jul 13 06:13 ugen0.2

crw-r--r--  1 root   operator    0,  98 Jul 13 06:13 ugen0.3

$ ll /dev | grep usb

crw-rw----  1 root   operator    0,  32 Jul 13 06:13 usb

crw-rw----  1 root   operator    0,  31 Jul 13 06:13 usb0

crw-rw----  1 root   operator    0,  33 Jul 13 06:13 usb1

crw-rw----  1 root   operator    0,  34 Jul 13 06:13 usb2

$ grep saned /etc/group

operator:*:5:root,saned

saned:*:117:

$ scanadf -Lq

[sanei_debug] Setting debug level of dll to 128.

[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends
1.0.18

[dll] sane_init: reading dll.conf

[dll] add_backend: adding backend `net'

[dll] add_backend: adding backend `avision'

[dll] sane_get_devices

[dll] load: searching backend `avision' in `/usr/local/lib/sane'

[dll] load: trying to load `/usr/local/lib/sane/libsane-avision.so.1'

[dll] load: dlopen()ing `/usr/local/lib/sane/libsane-avision.so.1'

[dll] init: initializing backend `avision'

[dll] init: backend `avision' is version 1.0.201

[dll] load: searching backend `net' in `/usr/local/lib/sane'

[dll] load: trying to load `/usr/local/lib/sane/libsane-net.so.1'

[dll] load: dlopen()ing `/usr/local/lib/sane/libsane-net.so.1'

[dll] init: initializing backend `net'

[dll] init: backend `net' is version 1.0.18

[dll] sane_get_devices: found 0 devices

[dll] sane_exit: exiting

[dll] sane_exit: calling backend `avision's exit function

[dll] sane_exit: calling backend `net's exit function

[dll] sane_exit: finished

 

 

-Tom

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070713/0f487fe1/attachment.htm 


More information about the sane-devel mailing list