[SOLVED] How to scan?

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
NiksaVel
Level 5
Level 5
Posts: 782
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia
Contact:

[SOLVED] How to scan?

Post 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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
scorp123
Level 8
Level 8
Posts: 2272
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Post 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).
NiksaVel
Level 5
Level 5
Posts: 782
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia
Contact:

Post by NiksaVel »

paralel :)
scorp123
Level 8
Level 8
Posts: 2272
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Post by scorp123 »

NiksaVel wrote:paralel :)
I suppose you'd then need some sort of SCSI-emulation. Did you find any instructions for your scanner?
NiksaVel
Level 5
Level 5
Posts: 782
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia
Contact:

Post 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.. :?
NiksaVel
Level 5
Level 5
Posts: 782
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia
Contact:

Post by NiksaVel »

Heeeeeeeeeeeeeeeeeeeeeelpppp meeeeeeeeeee :D
nick
Level 5
Level 5
Posts: 684
Joined: Sat Dec 02, 2006 8:04 am

How to scan?

Post 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
NiksaVel
Level 5
Level 5
Posts: 782
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia
Contact:

Post 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
NiksaVel
Level 5
Level 5
Posts: 782
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia
Contact:

Post 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
NiksaVel
Level 5
Level 5
Posts: 782
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia
Contact:

Post 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
Locked

Return to “Hardware Support”