ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

รูปภาพของ Thong.
Thong.
Rating 2
Posts: 14
Joined: 23-08-2006
คือว่าผมใช้ทะเล7 ครับแล้วใช้งาน Scanner รุ่น BenQ Scanner 5000 คือว่ามีวิธีไหนบ้างที่ทำให้ใช้งานได้ครับ ขอคำแนะนำด้วยนะครับ :o ล ขอบคุณครับ
--
ธง
รูปภาพของ จักรนันท์
จักรนันท์
Rating 7
Posts: 551
Joined: 10-12-2004
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

http://www.sane-project.org
http://www.sane-project.org/sane-mfgs.html#Z-BENQ--ACER-

รูปภาพของ Thong.
Thong.
Rating 2
Posts: 14
Joined: 23-08-2006
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

ทำยังไงล่ะครับผมลองใช้ xsane ดูแล้วมันบอกว่า "no devices availalable" :oops:

--
ธง
รูปภาพของ จักรนันท์
จักรนันท์
Rating 7
Posts: 551
Joined: 10-12-2004
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

http://www.xs4all.nl/~ljm/SANE-faq.html

รูปภาพของ Thong.
Thong.
Rating 2
Posts: 14
Joined: 23-08-2006
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

ลองเข้าตามลิงค์ที่คุณจักรนันท์ให้มาแล้วครับ ในเว็บเขาบอกให้ใช้เครื่องมือ sane-find-scanner ผมลองใช้แล้วมันบอกว่า
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04a5 [Color], product=0x20f8 [ FlatbedScanner 22]) at libusb:002:002
# 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.

อย่างนี้ล่ะครับ ต้องทำอย่างไงล่ะครับ ขอความกรุณาผู้รู้ช่วยตอบด้วยนะครับ :!:

--
ธง
รูปภาพของ Thong.
Thong.
Rating 2
Posts: 14
Joined: 23-08-2006
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

ต่อครับผมลองใช้ scanimage -L ดูแล้วมันบอกว่า

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

ขอกราบเรียนให้ช่วยตอบหน่อยครับว่าต้องทำยังไง

--
ธง
รูปภาพของ จักรนันท์
จักรนันท์
Rating 7
Posts: 551
Joined: 10-12-2004
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

ไปถูกทางแล้วครับ เกือบแล้ว อยู่แค่ปลายจมูกคุณแล้วครับ
ผมตอบสั้น เพราะตอนนี้ยังยุ่งๆ เวลามีไม่มากจะพิมพ์ยาวๆ
และอยากให้ได้ลองพยายามเสียก่อน เพราะ SANE นั้น Config ไม่ยากเลย

จากที่เอามาให้ดู คือ...

found USB scanner (vendor=0x04a5 [Color], product=0x20f8 [ FlatbedScanner 22]) at libusb:002:002

นั่นครับ แสดงว่าเจอแล้วครับ อยู่ปลายจมูกแล้ว
ส่วน scanimage -L จะใช้หลังจากเรา Config แล้วครับ
แต่ตอนนี้... เมื่อเรา Probe แล้ว (sane-find-scanner) มันค้นหาพบ แสดงว่ามันติดต่อกันได้
ขั้นต่อไป เราก็ต้องไป Config ก่อนครับ แล้วจึงจะมาลอง scanimage -L ครับ
การ Config ต้องไป Config ที่ไฟล์ /etc/sane.d/dll.conf และอีกไฟล์คือ /etc/sane.d/โมเด็ล.conf
ตรง "โมเด็ล" ที่ผมว่าคือ ชื่อไฟล์มันมักจะเป็นชื่อโมเด็ลของ Scanner นั้นๆ หาข้อมูลได้จาก Link ที่ผมให้ไปแล้วคือ http://www.sane-project.org/sane-mfgs.html#Z-BENQ--ACER-
การ Config ใน "โมเด็ล.conf" ก็จะต้องเอาข้อมูลที่ Probe ได้ไปใส่ว่า Scanner เราต่อที่ไหน Port อะไร ฯลฯ ซึ่ง มันรายงานออกมาให้คุณเห็นอยู่แล้ว
ส่วนการ Config ที่ dll.conf เป็นการ Config เพื่อเลือกใช้ "โมเด็ล.conf" อันไหน (มากกว่า 1 ตัวก็ได้) เท่านั้น

รายละเอียดการ Config ต้องกำหนดอะไรอย่างไร ขอให้ลองปล้ำดูต่อไปอีกหน่อยครับ จะได้เข้าใจได้ด้วยตนเอง
ผมจะยังไม่บอกลงไปถึง "วิธีทำ" ว่าจะต้องป้อนอะไร
แต่ขอยืนยันว่า อีกนิดเดียวจริงๆ ครับ นิดเดียวขนาดที่ว่า ไฟล์หนึ่ง แค่เข้าลบ Comment ออกแค่ตัวอักษรเดียวเท่านั้น
ส่วนอีกไฟล์หนึ่ง *อาจ* ไม่ต้องแก้ไขอะไรเลย

ง่ายขนาดนั้นเลยเชียวจริงๆ นะ
ลองดูหน่อยนะครับ

รูปภาพของ McGuyver
McGuyver
Rating 3
Posts: 128
Joined: 17-03-2003
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

เมื่อทำได้แล้วช่วยมาโพสต์บอกด้วยนะครับ จะได้เป็นวิทยาทานให้กับท่านอื่น ๆ ต่อไปครับ :D

benq น่าจะมี driver สำหรับ Linux นะครับ เคยลองไป search ดูรึยังครับ ผมเคยเซ็ตรุ่นเก่ากว่านี้ง่ายนิดเดียวเองครับ แต่จำวิธีทำไม่ได้แล้วมันผ่านมาหลายปีแล้วครับ

--

Linux be my life. Rock be my heart.

ASUS Eee PC 702 8G - Pearl White Ram 1GB, SSD 8GB, SDHC 16GB CL6

HTC TyTN II MicroSDHC 6GB CL6

รูปภาพของ McGuyver
McGuyver
Rating 3
Posts: 128
Joined: 17-03-2003
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

เอา link มาฝากครับ
http://www.scanner-drivers.com/companies/1251.htm
http://www.scanner-drivers.com/drivers/239/239854.htm
http://www.treiberupdate.de/treiber-download/download-134604-treiber-Ben...
ลองดูครับ ไม่รู้จะแก้ปัญหาได้หรือเปล่าครับ

--

Linux be my life. Rock be my heart.

ASUS Eee PC 702 8G - Pearl White Ram 1GB, SSD 8GB, SDHC 16GB CL6

HTC TyTN II MicroSDHC 6GB CL6

รูปภาพของ Thong.
Thong.
Rating 2
Posts: 14
Joined: 23-08-2006
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

ลองหาไฟล์ /etc/sane.d/acer.conf และ /etc/sane.d/benq.conf หาแล้วไม่เจออ่ะครับต้องทำไงครับ :( จนปัญญาแล้วครับ

--
ธง
รูปภาพของ จักรนันท์
จักรนันท์
Rating 7
Posts: 551
Joined: 10-12-2004
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

อย่าเพิ่งยอมแพ้สิครับ นิดเดียวเองจริงๆ
เห็น Link ที่ผมให้ไปไหมครับ http://www.sane-project.org/sane-mfgs.html#Z-BENQ--ACER-
ในหน้านั้นจะมีรายชื่อ Scanner ที่ Support แยกตามยี่ห้อ และในตารางของยี่ห้อ BENQ ก็มีรุ่น 5000 ที่คุณใช้ เห็นไหมครับ?
ในตารางนี้ จะมีช่อง "Backend" เห็นไหมครับ?
ตรงนั้นจะระบุว่า "SnapScan" เห็นไหมครับ?
ก็แปลว่า ไฟล์ Config ของ BenQ 5000 คือ SnapScan ครับ ซึ่งก็คือ snapscan.conf นั่นเอง และไม่ต้องไปแก้ไขอะไรเลย เพราะผมลองดูแล้ว ปรากฏว่าค่าภายในไฟล์นั้นที่เขา Default มา ก็ตรงกับที่ Probe เจอบนเครื่องคุณอยู่แล้วครับ
ดังนั้น ในไฟล์ /etc/sane.d/dll.conf ก็ให้เอา Comment (เครื่องหมาย #) หน้า snapscan ออกเท่านั้น (ส่วนบรรทัดอื่นๆ ให้ใส่ # นำหน้าให้หมด)
เท่านั้น ก็จะใช้งานได้แล้ว ลองเรียก scanimage -L เพื่อทดสอบดูได้เลย
หลังจากนั้นค่อยลองเรียก xsane ซึ่งทำงานเป็น GUI มาทดลองดู
ส่วนโปรแกรมอื่นๆ เช่น The Gimp จะเรียกหาจาก xsane ได้เองอยู่แล้วครับ

รูปภาพของ Thong.
Thong.
Rating 2
Posts: 14
Joined: 23-08-2006
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

พอใช้ scanimage -L แล้วมันบอกว่า
[b:dd22664788][gphoto2] init_gphoto2: error: serial:/dev/ttyd1 is not a valid gphoto2 port. Use "gphoto2 --list-ports" for list.
device `test:0' is a Noname frontend-tester virtual device
device `test:1' is a Noname frontend-tester virtual device[/b:dd22664788]

หมายความว่ายังไงอ่ะครับ
แล้วพอใช้ xsane แล้วมันบอกว่าใช้เลือก Device สองตัวคือ Test1 และ Test2 ลองเลือกทุกตัวแล้วก็ยังใช้ไม่ได้พอคลิกที่ scan ไม่เห็น Scanner ทำงานเลย ต้องทำยังไงต่อครับ :oops:

--
ธง
รูปภาพของ จักรนันท์
จักรนันท์
Rating 7
Posts: 551
Joined: 10-12-2004
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

ขอให้เอาไฟล์ /etc/sane.d/dll.conf และ /etc/sane.d/snapscan.conf มา Post ให้ดูหน่อยครับ

รูปภาพของ Thong.
Thong.
Rating 2
Posts: 14
Joined: 23-08-2006
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

อันนี้ไฟล์ /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 /path/to/your/firmware/file.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 0x1a2a
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/Acer/Vuego 5000
usb 0x04a5 0x20f8

# Benq/Acer/Vuego 5300
usb 0x04a5 0x20fe

# 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

เอามาให้ดูแล้วครับ

--
ธง
รูปภาพของ Thong.
Thong.
Rating 2
Posts: 14
Joined: 23-08-2006
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

อันนี้ไฟล์ /etc/sane.d/dll.conf

# enable the next line if you want to allow access through the network:
#net
#abaton
#agfafocus
#apple
#avision
#artec
#artec_eplus48u
#as6e
#bh
#canon
#canon630u
#canon_pp
#coolscan
#coolscan2
#dc25
#dc210
#dc240
#dmc
#epson
#fujitsu
#gphoto2
#gt68xx
#hp
#hpsj5s
#hp5400
#ibm
#leo
#ma1509
#matsushita
#microtek
#microtek2
#mustek
#mustek_pp
#mustek_usb
#nec
#pie
#pint
#plustek
#plustek_pp
#pnm
#qcam
#ricoh
#s9036
#sceptre
#sharp
#sm3600
snapscan
#sp15c
#st400
#tamarack
#teco1
#teco2
#teco3
#test
#u12
#umax
#umax_pp
#umax1220u
#v4l
#
# The following backends are not included in the sane-backends distribution
# If you want to use them, download them from their webpages and read their
# documentation
#
# HP OfficeJet backend homepage: http://hpoj.sf.net/
# Uncomment the following line if hpoj is installed:
#hpoj

--
ธง
รูปภาพของ Thong.
Thong.
Rating 2
Posts: 14
Joined: 23-08-2006
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

พอลองรีบูทเครื่องแล้วลองใช้ scanimage -L ดูแล้วมันบอกว่า

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

แต่ถ้าล็อกอินเป็น root แล้วมันบอกว่า

device 'snapscan:libusb:002:002' is a Acer FlatbedScanner22 flatbed scanner

พอลองใช้ xsane ใน root มันบอกว่า

Failed to open device 'snapscan:libusb:002:002' Invalid argument.

ใช้ xsane ใน user มันบอกว่า no devices available

ต้องทำยังไงครับ

--
ธง
รูปภาพของ จักรนันท์
จักรนันท์
Rating 7
Posts: 551
Joined: 10-12-2004
ขอคำแนะนำเกี่ยวกับการลง Scanner หน่อยครับ

ขอให้แก้ไขไฟล์ /etc/sane.d/snapscan.conf เป็นดังนี้ครับ

#------------------------------ General -----------------------------------

# 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

#--------------------------- USB scanners -----------------------------------
# These USB devices will be probed automatically
# (This will currently work only on Linux)

# Benq/Acer/Vuego 5000
usb 0x04a5 0x20f8

(อย่าลืมเคาะ Enter ขึ้นบรรทัดใหม่เปล่าๆ ทิ้งท้ายไว้ด้วยนะครับ)
ส่วนใน /etc/sane.d/dll.conf ถูกต้องแล้ว ไม่ต้องแก้ไขอะไร
ต่อไปก็ลอง Reboot เสียก่อน แล้ว Login เป็น root
แล้วลอง scanimage -L ดูก่อน แล้วมาบอกผลนะครับ

อ้อ... ถ้ายังมีปัญหา ต่อไปจะให้ Download เอา SANE ตัวล่าสุดมาลองติดตั้งดูก่อน
เพราะผมเห็นว่า ที่มัน Error แจ้งว่าเจอ Scanner สองตัวเป็น test:0 และ test:1 นั้น
มันดูแปลกๆ คล้ายๆ กับ SANE ไม่ได้ไปอ่าน Config ที่ /etc/sane.d แต่ไปไหนก็ไม่รู้
ถ้าเป็นแบบนั้น สู่ Remove เอา SANE ที่มากับ TLE 7.0 ออกก่อน แล้วเอามาติดตั้งใหม่เลยดีกว่า
จะได้ไม่ต้องไปหา ว่ามันไปเที่ยวหาไฟล์ Config ที่ไหน

Syndicate content