en English version
cz česká verse

Daniel Fišer, <d@niel.fiser.cz>

v0.2, 2003-08-22


This mini-HOWTO describes setting up USB flatbed scanner Epson Epson Perfection 1250 Photo under Linux. The mini-HOWTO is based on my experience with using the scanner with Mandrake Linux, though it should work on most Linux flavours.

The current version of the text explains setup for Mandrake Linux 9.1 with kernel 2.4.21. I used to use the scanner with Mandrake Linux 8.1, but the configuration was not so straightforward - one had to edit /lib/modules/`uname -r`/modules.usbmap; however the scanner worked.

The mini-HOWTO does not explain elementary administration tasks; instead it focuses on combination of steps necesary for setting up the scanner. If you at any moment don't understand what I write about, please consult other sources of information (in other words: RTFM ;-)).


Content

  1. ChangeLog
  2. Kernel module configuration
  3. SANE installation and configuration
  4. XSane installation
  5. Links - files and additional information sources

ChangeLog

v0.2, 2003-08-22 - Mandrake 9.1
v0.1, 2002-09-08 - Mandrake 8.1


Kernel module configuration

Linux detects the scanner in  /proc/bus/usb/devices as following:

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=ff MxPS= 8 #Cfgs=  1
P:  Vendor=04b8 ProdID=010f Rev= 1.00
S:  Manufacturer=EPSON
S:  Product=EPSON Scanner 010F
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=usbscanner
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl= 16ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms

You must edit /etc/modules.conf to make sure the corresponding kernel module is loaded automaticaly. Add new line with module parameters for the scanner:

# Epson Perfection 1250 Photo
options scanner vendor=0x04b8 product=0x010f

back to content


SANE installation and configuration

Scanner Perfection 1250 Photo is based on LM9382 chip (for more see [2]). LM9382-based scanners are suported by two SANE backends - plustek and hp2200c ([3], [4]). I had some problems when setting up hp2200c backend in Mandrake 8.1 (I'm only a BFU), so I stick with plustek backend.

Since RPM packages distributed by Mandrake don't contain the last version of plustek backend, I use the latest packages by Kyrian (to be found at [5]).

Install Kyrian's packages sane-backends and sane-frontends. Change SANE configuration to make it detect the scanner: backup your /etc/sane.d/plustek.conf and change it's content as follows:

# Plustek-SANE Backend configuration file
# For use with Plustek parallel-port scanners and
# LM9831/2/3 based USB scanners
#
# modified for Epson Perfection 1250 Photo by d@niel.fiser.cz
# last update 2003-08-22

[usb]	0x04b8	0x010f
device /dev/usb/scanner0

# lamp warming options
option lampOff 0
option warmup 30
option lOffOnEnd 0

# options to tweak the image start-position
# (WARNING: there's no internal range check!!!)
#
# for the normal scan area
#
option posOffX 0
option posOffY 0

# for transparencies
option tpaOffX 0
option tpaOffY 0

# for negatives
option negOffX 0
option negOffY 0

# for adjusting the default gamma values
# use values of 2.5 for CanoScan
#
option redGamma         1.0
option greenGamma       1.0
option blueGamma        1.0
option grayGamma        1.0

# to enable TPA (non Plustek devices only)
# 0 means default behaviour as specified in the internal tables
# 1 means enable
#
enableTPA 1

Plug your scanner and test that it works. Use sane-find-scanner to list detected scanners. Watch for the following one line:

sane-find-scanner: found USB scanner (vendor = 0x04b8, product = 0x010f)
	at device /dev/usb/scanner0

Run scanimage to make sure SANE can communicate with the scanner:

$ scanimage -L
device `plustek:/dev/usb/scanner0' is a Epson Perfection 1250/Photo USB flatbed scanner
$ scanimage 
P6
# SANE data follows
248 150
255
...

back to content


XSane installation

If you prefer scanning in X Windows, you need XSane ([6]). XSane makes use of SANE, so you can install RPM packages from your distribution. If you don't like xscanimage and scan directly to GIMP, don't forget to install package xsane-gimp.

When installing Mandrake XSane packages, use --nodeps; required libraries from Mandrake package libsane0 are included in Kyrian's packages.

back to content


[1] SANE
http://www.mostang.com/sane/
[2] LM9832 chip specification
http://www.national.com/pf/LM/LM9832.html
[3] Plustek parallel port/USB scanner driver for Linux
http://www.gjaeger.de/scanner/plustek.html
[4] HP 2200c Scanner SANE USB Scanner Driver
http://scanjet2200c.sourceforge.net/
[5] Plustek backend RPM packages by Kyrian
http://kyrian.ore.org/RPMS/plustek_sane/
[6] XSane
http://www.xsane.org/

back to content

copyright © 2000–2014 Daniel Fišer (XHTML 1.1 & CSS)