[sane-devel] root can scan, user not...

Thomas Dahlén erikthomasdahlen at gmail.com
Tue Oct 20 09:05:48 UTC 2015


hi,
i have a Fujitsu fi -7160 and the latest version of Debian jessie installed.
(i also have a Fujitsu Scansnap S1100 but that can wait until i can scan 
with my fi-7160)

After installing sane-frontends and backends i can scan as root but not 
as user.
I tried everything, that I can think of so if anyone can help me with 
this I would be greatful.

My installation steps:
sudo apt-get install sane sane-utils libsane-extras xsane
I checked that the backend for fujitsu is enabled in /etc/sane.d/dll.conf

sudo sane-find-scanner
found USB scanner (vendor=0x0a5c [Broadcom Corp], product=0x21f3 
[BCM20702A0]) at libusb:006:002
found USB scanner (vendor=0x04c5, product=0x132e) at libusb:003:002
found USB scanner (vendor=0x04c5 [FUJITSU], product=0x1200 [ScanSnap 
S1100]) at libusb:001:003

sane-find-scanner
could not open USB device 0x1d6b/0x0001 at 007:001: Access denied 
(insufficient permissions)
could not open USB device 0x5986/0x0299 at 004:003: Access denied 
(insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 004:001: Access denied 
(insufficient permissions)
could not open USB device 0x0a5c/0x21f3 at 006:002: Access denied 
(insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 006:001: Access denied 
(insufficient permissions)
could not open USB device 0x04c5/0x132e at 003:002: Access denied 
(insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 003:001: Access denied 
(insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 005:001: Access denied 
(insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 002:001: Access denied 
(insufficient permissions)
could not open USB device 0x045e/0x0745 at 001:002: Access denied 
(insufficient permissions)
could not open USB device 0x04c5/0x1200 at 001:004: Access denied 
(insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied 
(insufficient permissions)

I edit /etc/sane.d/fujitsu.conf
#fi-7160
usb 0x04c5 0x132e

and /etc/sane.d/epjitsu.conf
# Fujitsu S1100
firmware /usr/share/sane/epjitsu/1100_0A00.nal
usb 0x04c5 0x1200

then i create the library epjitsu
thomas at ws2:/usr/share/sane$ sudo mkdir epjitsu
and copy 1100_0A00.nal into the library
thomas at ws2:/usr/share/sane/epjitsu$ ls
1100_0A00.nal

thomas at ws2:~$ sudo scanimage -L
device `v4l:/dev/video0' is a Noname Integrated Camera virtual device
device `fujitsu:fi-7160:13013' is a FUJITSU fi-7160 scanner
device `epjitsu:libusb:001:007' is a FUJITSU ScanSnap S1100 scanner

thomas at ws2:~$ sudo scanimage --device-name=fujitsu --format tiff > 
testimage1.tiff
thomas at ws2:~$ xdg-open testimage1.tiff
perfect result!

thomas at ws2:~$ sudo scanimage --device-name=epjitsu --format tiff > 
testimage2.tiff
scanimage: sane_start: Out of memory
that problem can wait!

here is my main problem
thomas at ws2:~$ scanimage --device-name=fujitsu --format tiff > 
testimage3.tiff
scanimage: open of device fujitsu failed: Invalid argument

I check /etc/group
lp:x:7:thomas
saned:x:120:
scanner:x:105:saned,thomas

thomas at ws2:~/.sane$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 5986:0299 Acer, Inc
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 0a5c:21f3 Broadcom Corp.
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 04c5:132e Fujitsu, Ltd
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 
for Bluetooth
Bus 001 Device 008: ID 04c5:1200 Fujitsu, Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I check permissions
thomas at ws2:~/.sane$ ls -la /dev/bus/usb/003/002
crw-rw-r-- 1 root root 189, 257 okt 20 10:20 /dev/bus/usb/003/002

I change permissons
thomas at ws2:~/.sane$ sudo chmod 666 /dev/bus/usb/003/002
thomas at ws2:~/.sane$ sudo chmod 666 /dev/bus/usb/001/008

thomas at ws2:~/.sane$ scanimage --device-name=fujitsu --format tiff > 
testimage3.tiff
it works! But not after reboot

thomas at ws2:~/.sane$ scanimage --device-name=epjitsu --format tiff > 
testimage2.tiff
scanimage: sane_start: Out of memory

reboot
thomas at ws2:~$ scanimage --device-name=fujitsu --format tiff > 
testimage6.tiff
scanimage: open of device fujitsu failed: Invalid argument

thomas at ws2:~$ sudo chmod 666 /dev/bus/usb/003/002
[sudo] password for thomas:
thomas at ws2:~$ scanimage --device-name=fujitsu --format tiff > 
testimage6.tiff
now it works but is there a better way to solve the problem permanently 
than to chmod after start.

/Thomas
-- 

- - - - - - - - - - -
*Thomas Dahlén*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20151020/cf3c68ca/attachment-0001.html>


More information about the sane-devel mailing list