Доброго времени суток!
Имеется сканер AGFA snapscan e40, запустил при помощи snape40.bin и
nano /etc/sane.d/snapscan.conf
#------------------------------ General -----------------------------------
# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
firmware /usr/share/sane/snapscan/snape40,bin
# If not automatically found you may manually specify a device name.
# For USB scanners also specify bus=usb, e.g.
/dev/usb/scanner0 bus=usb
# For SCSI scanners specify the generic device, e.g. /dev/sg0 on Linux.
# /dev/sg0
#---------------------------------------------------------------------------
# No changes should be necessary below this line
#---------------------------------------------------------------------------
#-------------------------- SCSI scanners ----------------------------------
# These SCSI devices will be probed automatically
scsi AGFA * Scanner
scsi COLOR * Scanner
scsi Color * Scanner
scsi ACERPERI * Scanner
#--------------------------- USB scanners -----------------------------------
# These USB devices will be probed automatically
# (This will currently work only on Linux)
# Benq/Acer/Vuego 310U
usb 0x04a5 0x1a20
usb 0x04a5 0x1a26
# Benq/Acer/Vuego 320U
usb 0x04a5 0x2022
# Benq/Acer/Vuego 620U / 620UT
usb 0x04a5 0x1a2afirmware /usr/share/sane/snapscan/snape40,bin
usb 0x04a5 0x2040
# Benq/Acer/Vuego 640U
usb 0x04a5 0x2060
# Benq/Acer/Vuego 640BU
usb 0x04a5 0x207e
# Benq/Acer/Vuego 640BT
usb 0x04a5 0x20be
# Benq/Acer/Vuego 1240U
usb 0x04a5 0x20c0
# Benq/Acer/Vuego 3300 / 4300
usb 0x04a5 0x20b0
# Benq/Acer/Vuego 4300
usb 0x04a5 0x20de
# Benq 5000E / 5000U
usb 0x04a5 0x20f8
# Benq 5000
usb 0x04a5 0x20fc
# Benq/Acer 5300
usb 0x04a5 0x20fe
# Benq 5250C
usb 0x04a5 0x2137
# Agfa 1236U
usb 0x06bd 0x0002
# Agfa 1212U
usb 0x06bd 0x0001
usb 0x06bd 0x2061
# Agfa Snapscan e10
usb 0x06bd 0x2093
# Agfa Snapscan e20
usb 0x06bd 0x2091
# Agfa Snapscan e25
usb 0x06bd 0x2095
# Agfa Snapscan e26
usb 0x06bd 0x2097
# Agfa Snapscan e40
usb 0x06bd 0x208d
# Agfa Snapscan e42
usb 0x06bd 0x20ff
# Agfa Snapscan e50
usb 0x06bd 0x208f
# Agfa Snapscan e52
usb 0x06bd 0x20fd
# Epson Perfection 660
usb 0x04b8 0x0114
# Epson Perfection 1670
usb 0x04b8 0x011f
# Epson Perfection 2480
usb 0x04b8 0x0121
# Epson Perfection 3490
usb 0x04b8 0x0122
# Epson Stylus CX-1500
usb 0x04b8 0x080c
Работал через xscanimage, все работало отлично, до перезагрузки...
После перезагрузки сканер перестал определяться:
lc /dev
alarm loop-control sdb2 tty11 tty49 ttyS27
ashmem lp0 sdb3 tty12 tty5 ttyS28
autofs mapper sdb4 tty13 tty50 ttyS29
binder mcelog sdc tty14 tty51 ttyS3
block mem sdc1 tty15 tty52 ttyS30
bsg net sdd tty16 tty53 ttyS31
btrfs-control network_latency sdd1 tty17 tty54 ttyS4
bus network_throughput sde tty18 tty55 ttyS5
canonLBP6018 null sdf tty19 tty56 ttyS6
cdrom oldmem sdg tty2 tty57 ttyS7
cdrw parport0 sdh tty20 tty58 ttyS8
char port sdh1 tty21 tty59 ttyS9
console ppp sdh2 tty22 tty6 uinput
core psaux sdi tty23 tty60 urandom
cpu ptmx sdi1 tty24 tty61 usb
cpu_dma_latency pts sdi2 tty25 tty62 v4l
disk radio0 sdi3 tty26 tty63 vbi0
dri ram0 sdi4 tty27 tty7 vcs
dvd ram1 sdi5 tty28 tty8 vcs1
dvdrw ram10 sdi6 tty29 tty9 vcs2
ecryptfs ram11 sg0 tty3 ttyprintk vcs3
fb0 ram12 sg1 tty30 ttyS0 vcs4
fd ram13 sg2 tty31 ttyS1 vcs5
full ram14 sg3 tty32 ttyS10 vcs6
fuse ram15 sg4 tty33 ttyS11 vcs7
fw0 ram2 sg5 tty34 ttyS12 vcsa
hidraw0 ram3 sg6 tty35 ttyS13 vcsa1
hidraw1 ram4 sg7 tty36 ttyS14 vcsa2
hpet ram5 sg8 tty37 ttyS15 vcsa3
input ram6 sg9 tty38 ttyS16 vcsa4
kmsg ram7 shm tty39 ttyS17 vcsa5
kvm ram8 snapshot tty4 ttyS18 vcsa6
log ram9 snd tty40 ttyS19 vcsa7
loop0 random sr0 tty41 ttyS2 vga_arbiter
loop1 rfkill stderr tty42 ttyS20 vhost-net
loop2 rtc stdin tty43 ttyS21 video0
loop3 rtc0 stdout tty44 ttyS22 video1
loop4 sda tty tty45 ttyS23 zero
loop5 sda1 tty0 tty46 ttyS24
loop6 sdb tty1 tty47 ttyS25
loop7 sdb1 tty10 tty48 ttyS26
ls /dev/usb
Определяется вроде верно:
lsusb
Bus 001 Device 003: ID 0c45:627b Microdia PC Camera (SN9C201 + OV7660)
Bus 002 Device 003: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 002 Device 008: ID 04a9:271a Canon, Inc.
Bus 004 Device 008: ID 06bd:208d AGFA-Gevaert NV Snapscan e40
Bus 006 Device 002: ID 0d9f:00a2 Powercom Co., Ltd Imperial Uninterruptible Power Supply (HID PDC)
Bus 007 Device 003: ID 04b4:0033 Cypress Semiconductor Corp. Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 011 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Но udev видимо не отрабатывает
nano /lib/udev/rules.d/40-libsane.rules
# This file was automatically created based on description files (*.desc)
# by sane-desc 3.5 from sane-backends 1.0.22
#
# udev rules file for supported USB and SCSI devices
#
# The SCSI device support is very basic and includes only
# scanners that mark themselves as type "scanner" or
# SCSI-scanners from HP and other vendors that are entitled "processor"
# but are treated accordingly.
#
# To add a USB device, add a rule to the list below between the
# LABEL="libsane_usb_rules_begin" and LABEL="libsane_usb_rules_end" lines.
#
# To run a script when your device is plugged in, add RUN+="/path/to/script"
# to the appropriate rule.
#
# If your scanner isn't listed below, you can add it as explained above.
#
# If your scanner is supported by some external backend (brother, epkowa,
# hpaio, etc) please ask the author of the backend to provide proper
# device detection support for your OS
#
# If the scanner is supported by sane-backends, please mail the entry to
# the sane-devel mailing list (sane-devel@lists.alioth.debian.org).
#
ACTION!="add", GOTO="libsane_rules_end"
ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev"
SUBSYSTEMS=="scsi", GOTO="libsane_scsi_rules_begin"
SUBSYSTEM=="usb_device", GOTO="libsane_usb_rules_begin"
SUBSYSTEM!="usb_device", GOTO="libsane_usb_rules_end"
# Kernel >= 2.6.22 jumps here
LABEL="libsane_create_usb_dev"
# For Linux >= 2.6.22 without CONFIG_USB_DEVICE_CLASS=y
# If the following rule does not exist on your system yet, uncomment it
# ENV{DEVTYPE}=="usb_device", MODE="0664", OWNER="root", GROUP="root"
# Kernel < 2.6.22 jumps here
LABEL="libsane_usb_rules_begin"
# AGFA SnapScan 1212U
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0001", ENV{libsane_matched}="yes"
# AGFA SnapScan 1236u
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0002", ENV{libsane_matched}="yes"
# Agfa Snapscan Touch
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0100", ENV{libsane_matched}="yes"
# AGFA SnapScan 1212U_2
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2061", ENV{libsane_matched}="yes"
# AGFA SnapScan e40
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="208d", ENV{libsane_matched}="yes"
# AGFA SnapScan e50
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="208f", ENV{libsane_matched}="yes"
# AGFA SnapScan e20
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2091", ENV{libsane_matched}="yes"
# AGFA SnapScan e10
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2093", ENV{libsane_matched}="yes"
# AGFA SnapScan e25
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2095", ENV{libsane_matched}="yes"
# AGFA SnapScan e26
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2097", ENV{libsane_matched}="yes"
# AGFA SnapScan e52
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="20fd", ENV{libsane_matched}="yes"
# AGFA SnapScan e42
ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
LABEL="libsane_rules_end"
Кто знает, подскажите, куда копать?