EPSON STYLUS CX4700のスキャナ(解決)
...ものすごい紆余曲折を経たのち。
私を救ってくれたのはスペイン語のUbuntuのサイトでした。
Configuracion Multifuncion EPSON CX3650 en Ubuntu 5.04
とりあえずSynapticから
- xsane
- libsane-dev
- libsane-extra
をインストール。
USBスキャナが接続されているかどうか確認。
$ lsusb
Bus 004 Device 008: ID 04b8:0819 Seiko Epson Corp.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
キてます。
次はsane-find-scannerにてスキャナが認識されているか確認。
$ sane-find-scanner -q
found USB scanner (vendor=0x04b8 [EPSON], product=0x0819 [USB2.0 MFP(Hi-Speed)]) at libusb:004:008
/etc/sane.d/epson.confを以下に変更。
$ cat /etc/sane.d/epson.conf
# epson.conf
#
# here are some examples for how to configure the EPSON backend
#
# SCSI scanner:
#scsi EPSON
#
# Parallel port scanner:
#pio 0x278
#pio 0x378
#pio 0x3BC
#
# USB scanner:
# There are two different methods of configuring a USB scanner: libusb and the kernel module
# For any system with libusb support (which is pretty much any recent Linux distribution) the
# following line is sufficient. This however assumes that the connected scanner (or to be more
# accurate, it's device ID) is known to the backend.
#usb
# For libusb support for unknown scanners use the following command
# usb
# e.g.:
usb 0x4b8 0x819 # ここの数字はsane-find-scannerの結果によって変わります
# And for the scanner module, use the following configuration:
#usb /dev/usbscanner0
usb /dev/usb/scanner0
/etc/sane.d/dll.confも変更。
「epson」以外は全てコメントアウトします。
さらにscannerのデバイス作成。
$ sudo mknod /dev/usb/scanner0 c 180 48 -m 666
/etc/hotplug/usb/libsane.usermapに以下を追加。
# Epson CX4700
libusbscanner 0x0003 0x04b8 0x0819 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
(2番め、3番めの数字はsane-find-scannerの結果を。)
/etc/hotplug/usb/libusbscannerに以下を追加。
if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
chown root:scanner "$DEVICE"
chmod 0660 "$DEVICE"
fi
hotplug再起動。
$ sudo /etc/init.d/hotplug restart
これでスキャナが認識されてるか確認。
$ scanimage -L
device `epson:libusb:004:008' is a Epson Unknown model flatbed scanner
キター。Unknownだけど気にしない。
ここでxsaneを起動。
さんざ「スキャナが見つかりません」ていわれてたのが起動したよ!!!(画像参照)
結構きれいにスキャンできるし、すごい嬉し〜〜〜。