Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2005 12:14:25 +0200 (CEST)
From:      =?ISO-8859-1?Q?Erik_N=C3=B8rgaard?= <norgaard@math.ku.dk>
To:        cpghost <cpghost@cordula.ws>
Cc:        questions@freebsd.org
Subject:   Re: scanimage -L doesn't work as normal user
Message-ID:  <Pine.LNX.4.40.0507301202560.14000-100000@shannon.math.ku.dk>
In-Reply-To: <20050729232511.GA3040@epia2.farid-hajji.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 30 Jul 2005, cpghost wrote:

> > Then as ordinary user:
> > $ sane-find-scanner -q
> > found USB scanner (vendor=0x04b8 [EPSON], product=0x0121 [EPSON
> > Scanner]) at libusb:/dev/usb0:/dev/ugen0
> > $ scanimage -L
> >
> > No scanners were identified.
>
> This is normally a problem with permissions. You could set them
> to 0666 in /etc/devfs.conf, and [re]start devfs with
> # /etc/rc.d/devfs start

This was also what I thought, but I can't seem to get it right:

In my devfs.conf I have:
# Allow all users to use the scanner
perm    ugen0  0666

perm    usb    0666
perm    usb0   0666
perm    usb1   0666

But when I plugin the scanner, ugen0 and ugen0.* has permissions
crw-r--r--

sane-find-scanner doesn't show any scanners. Then I manually set
the permissions on ugen0 to give write permissions to all, and
sane-find-scanner finds the scanner, but scanimage still doesn't
work.

I would expect either both or none to work.

To investigate furhter, I ran sane-find-scanner verbose:
This is sane-find-scanner from sane-backends 1.0.15

searching for SCSI scanners:
checking /dev/scanner... failed to open (Invalid argument)
checking /dev/scanner0... failed to open (Invalid argument)
...
searching for USB scanners:
checking /dev/uscanner... failed to open (Invalid argument)
checking /dev/uscanner0... failed to open (Invalid argument)
...
device 0x04b8/0x0121 is not configured

that is when there is no write permissions to ugen0, setting write
permissions on ugen0 the last device line becomes

found USB scanner (vendor=0x04b8 [EPSON], product=0x0121 [EPSON
Scanner]) at libusb:/dev/usb0:/dev/ugen0

Unfortunately, running scanimage verbose doesn't show anything
about probing for devices.

Thanks, Erik

GnuPG: http://www.locolomo.org/home/norgaard/norgaard.gpg.asc
pub  1024D/11D11F9E 2003-08-15 Erik Norgaard <norgaard@locolomo.org>
     Key fingerprint = C394 81C4 D137 EEE5 39BE  82D5 3E6B FB3E 11D1 1F9E




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.40.0507301202560.14000-100000>