目前我正在尝试让我的 Epson GT-1500 工作。我正在使用基于 debian stretch 9 的 Sparky Linux 5.0.4-amd64。
sane 不支持扫描仪 Epson GT-1500,因此需要从 Epson 网站下载适当的 Iscan-Driver。安装后我做了以下手动步骤:
/etc/sane.d/ddl.conf,修改:
epson to #epson
epson2 to #epson2
因为 /etc/sane.d/epkowa.conf 在那里!
然后编辑了epkowa.conf:
usb 0x04b8 0x0133
然后我编辑了/lib/udev/rules.d/60-libsane.rules:
ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0133", ENV{libsane_matched}="yes"
# Epson GT-1500 | Epson GT-1500
重新启动后,仍然没有成功。然后我创建了 /etc/udev/rules.d/99-epson-gt1500.rules
ACTION!="add", GOTO="epson_rules_end"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="epson_pid_test"
SUBSYSTEM!="usb", GOTO="epson_rules_end"
LABEL="epson_pid_test"
# Check for the gt-1500.
ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0133", OWNER="root", GROUP="root", MODE="660"
LABEL="epson_rules_end"
重启,没有成功。
在我执行scanimage -L的每一步中:
这个过程花了很长时间但打印出来:
device `epkowa:usb:001:003' is a Epson (unknown model) flatbed scanner
但 iscan、simple-scan 和 xsane 要么停止工作(简单关闭),要么给出消息“未找到扫描仪”
sane-find-scanner 的输出:
could not open USB device 0x045e/0x0719 at 004:004: Access denied (insufficient permissions)
could not open USB device 0x045e/0x07b2 at 004:003: Access denied (insufficient permissions)
could not open USB device 0x8087/0x0024 at 004:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x13b1/0x003b at 002:004: Access denied (insufficient permissions)
found USB scanner (vendor=0x04b8 [EPSON], product=0x0133 [EPSON Scanner]) at libusb:002:003
could not open USB device 0x8087/0x0024 at 002:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x2109/0x0812 at 003:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 003:001: Access denied (insufficient permissions)
could not open USB device 0x1532/0x0046 at 001:003: Access denied (insufficient permissions)
could not open USB device 0x2109/0x2812 at 001:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.
使用和不使用 sudo 运行所有内容。
和更多信息:
scanimage -x 100 -y 100 --format=tiff >image.tiff
scanimage: open of device epkowa:usb:001:003 failed: Access to resource has been denied
作为 sudo 运行它需要很长时间,但不会扫描任何图像....
在清除并重新安装 iscan 后我注意到的一些事情:
Entpacken von iscan-network-nt (1.1.1-1) ... iscan-data (1.36.0-1) wird eingerichtet ... expr: Syntaxfehler tail: ungültige Anzahl von Zeilen: „/lib/udev/rules.d/60-libsane.rules“ iscan (2.30.1-1~usb0.1.ltdl7) wird eingerichtet ...
我不确定此错误是否可能导致扫描无效。文件的内容看起来不错,但至少我认为是这样。
执行: sudo strace -o strace.out -f scanimage -T 给了我:
5199 access("/usr/lib/iscan/esdip", X_OK) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
5199 openat(AT_FDCWD, "/dev/bus/usb/001/003", O_RDWR) = 12
5199 ioctl(12, USBDEVFS_GETDRIVER, 0x7ffcebbc2220) = -1 ENODATA (Keine Daten verfügbar)
5199 ioctl(12, USBDEVFS_CLAIMINTERFACE, 0x7ffcebbc237c) = 0
5199 ioctl(12, USBDEVFS_SUBMITURB, 0x7ffcebbc2230) = 0
5199 ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7ffcebbc21f8) = 0
5199 ioctl(12, USBDEVFS_SUBMITURB, 0x7ffcebbc2230) = 0
5199 ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7ffcebbc21f8) = 0
5199 ioctl(12, USBDEVFS_SUBMITURB, 0x7ffcebbc2230) = 0
5199 ioctl(12, USBDEVFS_REAPURBNDELAY, 0x7ffcebbc21f8) = -1 EAGAIN (Die Ressource ist zur Zeit nicht verfügbar)
5199 select(13, NULL, [12], NULL, {tv_sec=0, tv_usec=1000}) = 0 (Timeout)
然后最后一行在无限循环中重复......有什么想法吗?