Debian

掃描器 GT-1500 Epson 無法通過 xsane、simple-scan 或 iscan 找到

  • March 30, 2019

目前我正在嘗試讓我的 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)

然後最後一行在無限循環中重複……有什麼想法嗎?

我發現了問題!當我第一次下載 iscan 驅動程序時,它是以下版本:

iscan-bundle-1.0.0.x64.deb.tar.gz

但不知何故,我雖然必須有一個更新的版本,但在愛普生網站上搜尋了幾個小時讓我找到了一個名為:

iscan-gt-1500-bundle-1.0.1.x64.deb.tar.gz

在使用不帶 sudo 的捆綁 install.sh 腳本安裝此程序後,掃描器在第一次嘗試時就做出了反應,我能夠使用 xsane 掃描頁面……即使沒有重新啟動我的系統!現在我設置了掃描器組,我希望現在一切都好。

我在這裡得到了(工作的)gt-1500-bundle:

http://support.epson.net/linux/en/iscan.php?model=gt-1500&version=1.0.1

最後,在將我的登錄使用者添加到掃描器組之後

usermod -a -G scanner myusername

然後重新啟動,我可以在沒有 sudo 權限的情況下進行掃描。

引用自:https://unix.stackexchange.com/questions/508691