[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

сканер Epson Perfection 1270



Привет.

Недавно появился у меня сканер Epson Perfection 1270. В списке
поддерживаемых устройств на sane-project.org он обозначен как "good".

Смотрим, что нашел scanimage:
$ sudo scanimage -L
device `snapscan:libusb:001:005' is a EPSON EPSON Scanner flatbed
scanner

Пытаемся что-то сканировать:
$ sudo scanimage > image.pnm
[snapscan] Scanner warming up - waiting 9 seconds.
[snapscan] Scanner warming up - waiting 35 seconds.
scanimage: sane_start: Error during device I/O

Прогревает лампу, калибрует ее, на чем все сканирование и завершается.
Включим отладку, что бы посмотреть поподробнее:
$ export SANE_DEBUG_DLL=4
$ export SANE_DEBUG_SNAPSCAN=4
$ sudo scanimage -L
[sanei_debug] Setting debug level of dll to 4.
[dll] sane_init: SANE dll backend version 1.0.11 from sane-backends
1.0.16-cvs
[dll] add_backend: adding backend `snapscan'
[dll] sane_get_devices
[dll] load: searching backend `snapscan' in `/usr/lib/sane'
[dll] load: trying to load `/usr/lib/sane/libsane-snapscan.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-snapscan.so.1'
[dll] init: initializing backend `snapscan'
[sanei_debug] Setting debug level of snapscan to 4.
[snapscan] usb_read_status: scanner structure not set, returning default
error
[dll] init: backend `snapscan' is version 1.4.49
[dll] sane_get_devices: found 1 devices
device `snapscan:libusb:001:005' is a EPSON EPSON Scanner1 flatbed
scanner
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `snapscan's exit function
[dll] sane_exit: finished
$ sudo scanimage > image.pnm
[sanei_debug] Setting debug level of dll to 4.
[dll] sane_init: SANE dll backend version 1.0.11 from sane-backends
1.0.16-cvs
[dll] add_backend: adding backend `snapscan'
[dll] sane_get_devices
[dll] load: searching backend `snapscan' in `/usr/lib/sane'
[dll] load: trying to load `/usr/lib/sane/libsane-snapscan.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-snapscan.so.1'
[dll] init: initializing backend `snapscan'
[sanei_debug] Setting debug level of snapscan to 4.
[dll] init: backend `snapscan' is version 1.4.49
[dll] sane_get_devices: found 1 devices
[dll] sane_open: trying to open `snapscan:libusb:001:005'
[dll] sane_open: open successful
[dll]
sane_control_option(handle=0x80537b8,option=0,action=0,value=0xbfffe7c0,info=(nil))
[dll]
sane_control_option(handle=0x80537b8,option=0,action=0,value=0xbfffe728,info=(nil))
[dll] sane_get_option_descriptor(handle=0x80537b8,option=0)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=1)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=2)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=3)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=4)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=5)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=6)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=7)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=8)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=9)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=10)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=11)
[dll]
sane_control_option(handle=0x80537b8,option=11,action=0,value=0x8052698,info=(nil))
[dll] sane_get_option_descriptor(handle=0x80537b8,option=12)
[dll]
sane_control_option(handle=0x80537b8,option=12,action=0,value=0x805269c,info=(nil))
[dll] sane_get_option_descriptor(handle=0x80537b8,option=13)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=14)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=15)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=16)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=17)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=18)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=19)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=20)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=21)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=22)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=23)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=24)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=25)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=26)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=27)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=28)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=29)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=30)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=31)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=32)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=33)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=34)
[dll] sane_get_option_descriptor(handle=0x80537b8,option=35)
[dll]
sane_control_option(handle=0x80537b8,option=9,action=0,value=0xbfffe724,info=(nil))
[dll]
sane_control_option(handle=0x80537b8,option=10,action=0,value=0xbfffe724,info=(nil))
[dll]
sane_control_option(handle=0x80537b8,option=9,action=0,value=0xbfffe7bc,info=(nil))
[dll] sane_get_option_descriptor(handle=0x80537b8,option=11)
[dll]
sane_control_option(handle=0x80537b8,option=11,action=1,value=0xbfffe7b8,info=0xbfffe728)
[dll]
sane_control_option(handle=0x80537b8,option=10,action=0,value=0xbfffe7bc,info=(nil))
[dll] sane_get_option_descriptor(handle=0x80537b8,option=12)
[dll]
sane_control_option(handle=0x80537b8,option=12,action=1,value=0xbfffe7b8,info=0xbfffe728)
[dll] sane_start(handle=0x80537b8)
[snapscan] usb_read Only 0 bytes read
[snapscan] scsi_read: snapscan_cmd command failed: Error during device
I/O
[snapscan] measure_transfer_rate: scsi_read command failed: Error during
device I/O
[snapscan] sane_snapscan_start: measure_transfer_rate command failed:
Error during device I/O
scanimage: sane_start: Error during device I/O
[dll] sane_cancel(handle=0x80537b8)
[snapscan] usb_write Only 0 bytes written
[snapscan] release_unit: scsi command error: Error during device I/O
[snapscan] usb_write Only 0 bytes written
[snapscan] usb_write Only 0 bytes written
[dll] sane_close(handle=0x80537b8)
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `snapscan's exit function
[dll] sane_exit: finished

Ядро 2.6.8 из дистрибутива.
Установленная версия libsane (sane-backends) - 1.0.16-cvs. Тоже самое
наблюдается при версиях sane-backends 1.0.15-9 (входящую в релиз sarge)
и 1.0.16-5. libusb-0.1-4 (2:0.1.10a-9.sarge.1).

Сейчас покажу свои конфиги sane:
/etc/sane.d$ ls -lR
.:
итого 80
-rw-r--r--  1 root root     9 2005-11-26 19:09 dll.conf
-rw-rw-rw-  1 root root 64000 2005-11-26 00:02 esfw3e.bin
drwxr-xr-x  2 root root  4096 2005-11-26 19:19 hotplug
-rw-r--r--  1 root root    75 2005-11-26 19:11 snapscan.conf

./hotplug:
итого 4
-rw-r--r--  1 root root 63 2005-11-26 19:08 libsane.db

$ tail dll.conf
snapscan
$ tail snapscan.conf
firmware /etc/sane.d/esfw3e.bin

# Epson Perfection 1270
usb 0x04b8 0x0120
$ tail hotplug/libsane.db
# Epson Corp.|Perfection 1270
0x04b8 0x0120   root:scanner    0660

$ cat /proc/bus/usb/devices
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs=  1
P:  Vendor=04b8 ProdID=0120 Rev= 1.10
S:  Manufacturer=EPSON
S:  Product=EPSON Scanner
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=16ms

/etc/hotplug/usb$ ls -l
итого 96
-rwxr-xr-x  1 root root   219 2005-11-25 23:50 libgphoto2
-rw-r--r--  1 root root 78052 2005-07-24 05:02 libgphoto2.usermap
-rw-r--r--  1 root root    90 2005-11-26 02:20 libsane.usermap
-rwxr-xr-x  1 root root   941 2005-11-26 02:13 libusbscanner
/etc/hotplug/usb$ tail libsane.usermap
libusbscanner 0x0003 0x04b8 0x0120 0x0000 0x0000 0x00 0x00 0x00 0x00
0x00 0x00 0x00000000

Firmware "esfw3e.bin" выгреб из установленного драйвера сканера под
мастдаем.

В тоже время, этот сканер прекрасно работатет под 98-м мастдаем,
установленным на вмварь.

Посмотрел эту тему в гугле. Один человечек запостил баг на
alioth.debian.org, в котором в точности описал все наблюдаемые мной
симптомы:
https://alioth.debian.org/tracker/index.php?func=detail&aid=301090&group_id=30186&atid=410366

В том же гугле можно видеть слова людей, которые, судя по всему смогли
поставить этот сканер под sane.

Что делать? Статус бага - open. Ни чего не делать, ждать, когда это
зафиксят в sane-backends, если есть, что фиксить..??

Вообще, каким образом этот девайс стал называться "good" в списке
поддреживаемых sane устройств? Значит, оно все-таки у кого-то работает?
Но как??


-- 
best regards,
Alexander Popov		mailto:popov.ap@gmail.com

Attachment: signature.asc
Description: Digital signature


Reply to: