Page 1 of 1

[SOLVED] How to scan?

Posted: Wed Mar 28, 2007 10:44 am
by NiksaVel
Hey guys... I've never attempted scanning in Linux.. yet... I've been reading around and I've found that SANE has good support for my scanner (Umax Astra 1220P) but I have no idea what to do to actually get to the scanning part...

I've been reading around and I thought I did what I was supposed to

(installed sane, sane-utils, xsane, uncommented umax_pp in dll.conf and entered port 0x378 in umax_pp.conf, set in bios paralel port to ECP+EPP)

but still xsane doesn't detect my scanner which works just fine under windows...


I'm prolly doing somehting wrong and if anyone can help out or point me to a noob how-to I would really appreciate it!


cya
N

Posted: Wed Mar 28, 2007 12:52 pm
by scorp123
Is that a SCSI scanner or a USB scanner? There is a bunch of modules (= Linux kernel "drivers") that need to be loaded. For SCSI it would be "sg" (= SCSI Generic), I don't know about USB. And I use my Scanner from within GIMP (Acquire => Scanner).

Posted: Wed Mar 28, 2007 1:00 pm
by NiksaVel
paralel :)

Posted: Wed Mar 28, 2007 5:22 pm
by scorp123
NiksaVel wrote:paralel :)
I suppose you'd then need some sort of SCSI-emulation. Did you find any instructions for your scanner?

Posted: Wed Mar 28, 2007 5:53 pm
by NiksaVel
I found:

http://umax1220p.sourceforge.net/
and
http://www.die.net/doc/linux/man/man5/s ... _pp.5.html


but it's beyond me... I just don't understand what to do.. :?

Posted: Sat Mar 31, 2007 11:06 am
by NiksaVel
Heeeeeeeeeeeeeeeeeeeeeelpppp meeeeeeeeeee :D

How to scan?

Posted: Sat Mar 31, 2007 12:56 pm
by nick
Hi
I cannot test it as I do not have your scanner
but why not cut and paste the instructions into terminal as on page;
download umax patch
download sane-1.0.18-backends.tar.gz

http://umax1220p.sourceforge.net/download.html
install:
tar xvzf sane-backends-1.0.18.tar.gz
cd sane-backends-1.0.18

http://umax1220p.sourceforge.net/install.html
zcat umax1220p-6.3.gz | patch -p1

Or, if you have already unzipped the patch

patch <umax1220p-6.3 -p1

compile it

./configure --enable-parport-directio --sysconfdir=/etc --prefix=/usr
make
make install
ldconfig

configure it
You have to the know address of your parallel port. If you don't know it, you should look into system messages with 'dmesg', you'll have lines such as:

...........................
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
parport0: cpp_mux: aa55f00f52ad51(86)
parport0: Found 4 daisy-chained devices
lp0: using parport0 (interrupt-driven).
............................

let us know how you get on from there

Nick

Posted: Sat Mar 31, 2007 1:47 pm
by NiksaVel
I can't... the patch seems to be outdated even though the instructions are okay... it seems to want to patch the sane version 1.0.14 even though the instructions clearly state that it's 1.0.18 version that I need. I've also tried to find the file in the 1.0.18 directory but it's not there, it seems to have been split in two different files in this new version:

root@maya-mint:/usr/src/sane-backends-1.0.18# patch <umax1220p-6.3 -p1
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur --new-file sane-backends-1.0.14/backend/dll.conf sane-backends-1.0.14-umax_pp/backend/dll.conf
|--- sane-backends-1.0.14/backend/dll.conf 2004-01-05 22:05:04.000000000 +0100
|+++ sane-backends-1.0.14-umax_pp/backend/dll.conf 2004-05-03 12:55:04.000000000 +0200
--------------------------
File to patch: sane-backends-1.0.18/backend/dll.conf
sane-backends-1.0.18/backend/dll.conf: No such file or directory
Skip this patch? [y] n

Posted: Sat Mar 31, 2007 2:08 pm
by NiksaVel
bah... by every account I've done everything right and it should be working... could this message be cause of the problem?

it's from dmesg
[17179589.792000] parport: PnPBIOS parport detected.
[17179589.792000] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
[17179589.808000] parport0: reported broken Device ID length of 0X8888 bytes

Posted: Sat Mar 31, 2007 2:19 pm
by NiksaVel
solved it... it wouldn't take anything else beside

Code: Select all

port /dev/parport0
in the backend config file... even though those instructions gave different info... I managed to get it to work from the repos...


btw... THIS also means that I've gotten EVERY piece of hardware in the house to work under mint :)

YAY :D