Автор Тема: Сканер Epson v10/100 [решено]  (Прочитано 20850 раз)

Оффлайн Skull

  • Глобальный модератор
  • *****
  • Сообщений: 20 189
    • Домашняя страница
Re: Сканер Epson v10/100
« Ответ #15 : 11.05.2010 16:03:00 »
Нашел этот файл, теперь проблемма стоит в том чтобы отредактировать файл etc/sane.d/dll.conf, сохраняю при сохранение выдает ошибку что файл не может быть сохранен. Чтобы это могло значить?
Править нужно под правами root.
Андрей Черепанов (cas@)

Оффлайн Ru$

  • Участник
  • *
  • Сообщений: 121
Re: Сканер Epson v10/100
« Ответ #16 : 11.05.2010 21:12:34 »
подскажите пожалуйста как установить файл rpm в линукс мастере

Оффлайн Skull

  • Глобальный модератор
  • *****
  • Сообщений: 20 189
    • Домашняя страница
Re: Сканер Epson v10/100
« Ответ #17 : 12.05.2010 13:42:23 »
подскажите пожалуйста как установить файл rpm в линукс мастере
apt-get install file.rpm
Андрей Черепанов (cas@)

Оффлайн lucefer

  • Участник
  • *
  • Сообщений: 348
Re: Сканер Epson v10/100
« Ответ #18 : 14.05.2010 07:45:11 »
подскажите пожалуйста как установить файл rpm в линукс мастере
Можно ещё rpm -i файл.rpm или rpm -ivh файл.rpm
Если есть зависимость одного файла от другого, то rpm -ivh файл1.rpm файл2.rpm ...
Переустановка rpm -Uvh файл.rpm
Каждый линуксоид в начале своего пути не понимает, зачем так много дистрибутивов, а в конце пути - создает свой.

Оффлайн Ru$

  • Участник
  • *
  • Сообщений: 121
Re: Сканер Epson v10/100
« Ответ #19 : 14.05.2010 11:46:45 »
Добрый день, помогите пожалуйста разобраться, уже больше недели мучаюсь не могу подключить сканер, в Линуксе совсем новичок. При попытке завести сканер Epson Perfection v10. Проделал следующее:

1.С диска с драйверами от сканера достал файл esfw66.bin и переместил его в каталог /usr/share/sane/snapscan

2. Далее указал в файле snapscan.conf который находится в директории /etc/sane.d  следующую строчку

# firmware /usr/share/sane/snapscan/esfw66.bin
 
и в конце этого же файла добавил следующую строчку

# Epson Perfection v10/v100
usb 0x04b8 0x012d

в итоге получилось что файл имеет следующее содержание

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

# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
# firmware /usr/share/sane/snapscan/esfw66.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 5000E / 5000U
usb 0x04a5 0x20f8

# Benq 5000
usb 0x04a5 0x20fc

# Benq/Acer 5300
usb 0x04a5 0x20fe

# Benq 5250C
usb 0x04a5 0x2137

# 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

# Epson Perfection 2480
usb 0x04b8 0x0121

# Epson Perfection 3490
usb 0x04b8 0x0122

# Epson Stylus CX-1500
usb 0x04b8 0x080c

# Epson Perfection v10/v100
usb 0x04b8 0x012d


3.Далее в файле dll.conf который нашел в том же каталоге
нашел строчку epson и добавил перед ней #


получилось следующее содержание файла
# 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
dell1600n_net
dmc
#epson
fujitsu
#gphoto2
genesys
gt68xx
hp
hpljm1005
hp3900
hpsj5s
hp3500
hp4200
hp5400
ibm
leo
lexmark
ma1509
matsushita
microtek
microtek2
mustek
#mustek_pp
mustek_usb
mustek_usb2
nec
niash
pie
pint
pixma
plustek
#plustek_pp
#pnm
qcam
ricoh
s9036
sceptre
sharp
sm3600
sm3840
snapscan
sp15c
#st400
#stv680
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
epkowa


4.Дальше в файле epkowa которой находится том же каталоге добавил # перед scsi
получилось следующее содержание файла


# epkowa.conf -- sample configuration for the EPKOWA SANE backend
# Copyright (C) 2004, 2008, 2009  Olaf Meeuwissen
#
# See sane-epkowa(5), sane-usb(5) and sane-scsi(5) for details.

# Detect all devices supported by the backend.
# If you don't have a SCSI device, you can comment out the "scsi"
# keyword.  Similarly for the other keywords.
#
usb
#scsi


# For any USB scanner not known to the backend (yet), you may, at your
# own peril(!!), force the backend to recognise and use it via libusb.
# You can do so by the following configuration command:
#
#   usb <USB vendor ID> <USB product ID>
#
# SEIKO EPSON's USB vendor ID is '0x04b8' (without quotes).  In order
# to find the USB product ID, use lsusb(1).
# A sample configuration for the Epson Perfection 1650 (Epson GT-8200),
# which has a product ID of 0x0110, would look as follows:
#
#usb 0x04b8 0x0110


# For SCSI devices not detected, you can add an entry like:
#
#   scsi EPSON GT-20000
#
# where the GT-20000 bit corresponds to the SCSI model information as
# shown in the output of dmesg(1) or in the /var/log/kern.log file.


# Network attached devices may be made to work by first installing the
# (non-free) iscan-network-nt package and then adding configuration lines
# as per information below.
#
# For each network attached device, you must add an entry as follows:
#
#   net <IP-address|hostname> [port-number]
#
# Ask your network administrator for the device's IP address or check
# for yourself on the panel (if it has one).  The port-number is very
# optional and defaults to 1865.
# Note that network attached devices are not queried unless configured
# in this file.
#
# Examples:
#
#net 192.16.136.2 1865
#net 10.0.0.1
#net scanner.mydomain.com

5. В файл libsane.usermap который располагается в каталоге /etc/hotplug/usb добавил следующую строчку, относящаяся к моему сканеру 


# Epson Perfection v10/100
libusbscanner 0x0003 0x04b8 0x012d 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000


6. Далее добавил в /usr/share/iscan в файл USB  #usb 0x04b8 0x012d

получилось следующие:


#  usb -- vendor and product IDs of supported devices
#  Copyright (C) 2008  SEIKO EPSON CORPORATION
#
#  License: GPLv2+
#  Authors: AVASYS CORPORATION
#
#  This file is part of the SANE backend distributed with Image Scan!
#
#  Image Scan!'s SANE backend is free software.
#  You can redistribute it and/or modify it under the terms of the GNU
#  General Public License as published by the Free Software Foundation;
#  either version 2 of the License or at your option any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#  You ought to have received a copy of the GNU General Public License
#  along with this package.  If not, see <http://www.gnu.org/licenses/>.
#
#
#  Unlike the SANE backend distributed with Image Scan! this data file
#  is not subject to any special exceptions.


usb 0x04b8 0x0101
usb 0x04b8 0x0103
usb 0x04b8 0x0104
usb 0x04b8 0x0106
usb 0x04b8 0x0107
usb 0x04b8 0x0109
usb 0x04b8 0x010a
usb 0x04b8 0x010b
usb 0x04b8 0x010c
usb 0x04b8 0x010e
usb 0x04b8 0x0110
usb 0x04b8 0x0112
usb 0x04b8 0x011b
usb 0x04b8 0x011c
usb 0x04b8 0x011e
#usb 0x04b8 0x012d
usb 0x04b8 0x0126
usb 0x04b8 0x0128
usb 0x04b8 0x0129
usb 0x04b8 0x012a
usb 0x04b8 0x012b
usb 0x04b8 0x012c
usb 0x04b8 0x0135
usb 0x04b8 0x0138
usb 0x04b8 0x0801
usb 0x04b8 0x0802
usb 0x04b8 0x0805
usb 0x04b8 0x0806
usb 0x04b8 0x0807
usb 0x04b8 0x0808
usb 0x04b8 0x080d
usb 0x04b8 0x080e
usb 0x04b8 0x080f
usb 0x04b8 0x0810
usb 0x04b8 0x0811
usb 0x04b8 0x0813
usb 0x04b8 0x0814
usb 0x04b8 0x0815
usb 0x04b8 0x0817
usb 0x04b8 0x0818
usb 0x04b8 0x0819
usb 0x04b8 0x081a
usb 0x04b8 0x081c
usb 0x04b8 0x081d
usb 0x04b8 0x081f
usb 0x04b8 0x0820
usb 0x04b8 0x0827
usb 0x04b8 0x0828
usb 0x04b8 0x0829
usb 0x04b8 0x082a
usb 0x04b8 0x082b
usb 0x04b8 0x082e
usb 0x04b8 0x082f
usb 0x04b8 0x0830
usb 0x04b8 0x0833
usb 0x04b8 0x0834
usb 0x04b8 0x0835
usb 0x04b8 0x0836
usb 0x04b8 0x0837
usb 0x04b8 0x0838
usb 0x04b8 0x0839
usb 0x04b8 0x083a
usb 0x04b8 0x083c
usb 0x04b8 0x0841
usb 0x04b8 0x0843
usb 0x04b8 0x0844
usb 0x04b8 0x0846
usb 0x04b8 0x0847
usb 0x04b8 0x0848
usb 0x04b8 0x0849
usb 0x04b8 0x084a
usb 0x04b8 0x084c
usb 0x04b8 0x084d
usb 0x04b8 0x084f
usb 0x04b8 0x0851
usb 0x04b8 0x0854
usb 0x04b8 0x0856
usb 0x04b8 0x0855
usb 0x04b8 0x0850
usb 0x04b8 0x0852
usb 0x04b8 0x0853м


7. В файле 25-libsane.rules который нашел в каталоге /usr/share/sane/snapscan внес следующую строчку
# EPSON Perfection v10/v100
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="012d", MODE="660", GROUP="scanner"

8.Создал файл /var/lib/iscan/interpreter с содержанием 'interpreter usb 0x04b8 0x012d /usr/lib/iscan/libesint66 /usr/share/iscan/esfw66.bin'

После этих изменений, получилось следующее:
При запуске команды sane-find-scanner терминал выдает следующее


[root@localhost ~]# sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04b8 [EPSON], product=0x012d [EPSON Scanner]) at libusb:007:004
  # 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.

При выводе команды scanimage -L

[qwerty@localhost ~]$ scanimage -L
device `epkowa:interpreter:007:004' is a Epson (unknown model) flatbed scanner

[qwerty@localhost ~]$ scanimage -T
scanimage: open of device epkowa:interpreter:007:004 failed: Access to
 resource has been denied

При выполнении команды scanimage > test.pnm

[root@localhost ~]# scanimage > test.pnm
scanimage: open of device epkowa:interpreter:007:004 failed: Device busy

При запуске графических пакетов выдает следующие ошибки во вложении

подскажите пожалуйста, что где не так я сделал, куда дальше копать

Оффлайн chaos_dremel

  • Участник
  • *
  • Сообщений: 519
  • Не будите, да не будимы будете.
Re: Сканер Epson v10/100
« Ответ #20 : 14.05.2010 11:58:51 »
Вместо:
usb 0x04b8 0x011e
#usb 0x04b8 0x012d
usb 0x04b8 0x0126
usb 0x04b8 0x0128
usb 0x04b8 0x0129
usb 0x04b8 0x012a
usb 0x04b8 0x012b
usb 0x04b8 0x012c
usb 0x04b8 0x0135
надо:
usb 0x04b8 0x011e
usb 0x04b8 0x0126
usb 0x04b8 0x0128
usb 0x04b8 0x0129
usb 0x04b8 0x012a
usb 0x04b8 0x012b
usb 0x04b8 0x012c
usb 0x04b8 0x012d
usb 0x04b8 0x0135

p.S. Без решетки и поставить запись после строчки usb 0x04b8 0x012c
« Последнее редактирование: 14.05.2010 12:00:47 от chaos_dremel »
Хаосу, знаете ли, без разницы, как его величают — на то он и Хаос.

Оффлайн Ru$

  • Участник
  • *
  • Сообщений: 121
Re: Сканер Epson v10/100
« Ответ #21 : 14.05.2010 13:10:11 »
Спасибо! исправил. Но все равно не сканирует
Запустить получилось xsane под root'ом, программа загружалась долго сканер так и не запищал. При попытке сканировать выдал ошибку  '' Не возможно инициализировать сканирование: неверный аргумент "
Но теперь хоть xsane запускается и iscan предлагает выбрать сканер, после выбора опять выскакивает тоже самое окно " Could not send command scanner. Check the scanner's status "

[root@localhost ~]# xsane

(xsane:4853): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(xsane:4853): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(xsane:4853): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion `height >= -1' failed


Оффлайн chaos_dremel

  • Участник
  • *
  • Сообщений: 519
  • Не будите, да не будимы будете.
Re: Сканер Epson v10/100
« Ответ #22 : 14.05.2010 13:46:41 »
Спасибо! исправил. Но все равно не сканирует
Запустить получилось xsane под root'ом, программа загружалась долго сканер так и не запищал. При попытке сканировать выдал ошибку  '' Не возможно инициализировать сканирование: неверный аргумент "
Но теперь хоть xsane запускается и iscan предлагает выбрать сканер, после выбора опять выскакивает тоже самое окно " Could not send command scanner. Check the scanner's status "

[root@localhost ~]# xsane

(xsane:4853): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(xsane:4853): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(xsane:4853): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion `height >= -1' failed
Вместо
#------------------------------ General -----------------------------------

# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
# firmware /usr/share/sane/snapscan/esfw66.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
надо
#------------------------------ General -----------------------------------

# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
firmware /usr/share/sane/snapscan/esfw66.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 в этой строчке я не уверен, может она должна быть с #, но по моему без
« Последнее редактирование: 14.05.2010 13:48:30 от chaos_dremel »
Хаосу, знаете ли, без разницы, как его величают — на то он и Хаос.

Оффлайн Ru$

  • Участник
  • *
  • Сообщений: 121
Re: Сканер Epson v10/100
« Ответ #23 : 14.05.2010 14:45:15 »
Пробовал менял так и не помогло, и нечего не поменялось

vano

  • Гость
Re: Сканер Epson v10/100
« Ответ #24 : 14.05.2010 18:58:58 »
А как насчёт взять дровишек http://driver.ru/?V=Epson&S=14
« Последнее редактирование: 14.05.2010 19:22:57 от Skull »

Оффлайн Ru$

  • Участник
  • *
  • Сообщений: 121
Re: Сканер Epson v10/100
« Ответ #25 : 18.05.2010 11:13:17 »
А как насчёт взять дровишек http://driver.ru/?V=Epson&S=14

уже все стоит

vano

  • Гость
Re: Сканер Epson v10/100
« Ответ #26 : 18.05.2010 13:30:16 »
Запустить получилось xsane под root'ом, 
Добавьте юзера в группу сканер и можно запускать от юзера.
# gpasswd -a имя_пользователя scannerИ потом у вас не iscan-2.3.0-1.i386.rpm и iscan-plugin-gt-s600-2.0.0-1.i386.rpm ?
http://forum.altlinux.org/index.php/topic,889.0.html
Моему знакомому помогло это описание, правда это было давно и на 4.1.

Оффлайн Ru$

  • Участник
  • *
  • Сообщений: 121
Re: Сканер Epson v10/100
« Ответ #27 : 18.05.2010 14:44:55 »
сегодня попробовал дать команду scanimage > test.pnm он у меня пожужал и выдал следующее

[root@localhost ~]# scanimage > test.pnm
scanimage: rounded value of br-x from -32768 to 0
scanimage: rounded value of br-y from -32768 to 0
scanimage: sane_start: Invalid argument

Оффлайн Ru$

  • Участник
  • *
  • Сообщений: 121
Re: Сканер Epson v10/100
« Ответ #28 : 18.05.2010 14:50:00 »
запустил xsane под рутом и он открылся и мало того отсканировал мне листок))))
блин а как сделать чтобы обычный пользователь смог сканировать?

Оффлайн Skull

  • Глобальный модератор
  • *****
  • Сообщений: 20 189
    • Домашняя страница
Re: Сканер Epson v10/100
« Ответ #29 : 18.05.2010 15:11:02 »
запустил xsane под рутом и он открылся и мало того отсканировал мне листок))))
блин а как сделать чтобы обычный пользователь смог сканировать?
gpasswd -a user_name scannerПользователь user_name должен перелогиниться.
Андрей Черепанов (cas@)