I recently got a Microtek E6 scanner for my Linux (RH5.0) machine. It
came with an Adaptec AVA-1502 AE scsi card. I installed SANE 0.71,
and it didn't work for reasons already cited on this list (wait_ready
failed etc.); I removed the "&& (req->cdb.hdr.sense_buffer[0] & 0x7f)
== 0" line from saneei_scsi.c as cited by Matto Marjanovic in a March
7 message to this list, and everything worked. The first thing I did
was write a little shell script and began scanning a whole pile of
stuff. After doing about 30 or so scans, my machine, which has 128 MB
memory and 128 MB swap, began running out of memory. After rebooting,
I ran xsysinfo to observe what was going on, and it appears I have a
memory leak. I installed SANE 0.70, which compiled and ran with no
modifications, and the problem still exists. Basically, I have to keep
my eye on memory consumption and reboot regularly when I want to do a
lot of scanning... pain in the ass. Based upon what I came up with via
Dejanews, I'm thinking that the problem is probably with the aha152x
driver, but I'm not sure, and don't know who to bug if it is. I'm
wondering if anyone has observed a similar memory leak problem with a
similar setup, and if they found a solution.
Here's my setup:
Red Hat 5.0
kernel 2.0.33
Microtek E6
AVA-1502 AE scsi card, scsi disconnection disabled (required by stupid
windows NT which I also boot), I/O port address 140h, scsi parity
enabled. Here's my /etc/conf.modules file:
alias scsi_hostadapter aha152x
options aha152x aha152x=0x140,11,7,0
I like how Linux automagically scans for the scsi bus when I do a scan
using modules... neato :) This problem occurs whether I use the scsi as
a module, or whether it's compiled into the kernel, btw.
Here's the shell script that I would repeatedly run. I just pass it a
base file name.
--------------
#!/bin/ksh
if [ ! -e $1.jpg ]
then
scanimage --mode Color --resolution 114 -l 0 -t 0 -x 200 -y 175 \
--gamma-mode Scalar --analog-gamma 1.5 > $1.ppm
convert -quality 85 $1.ppm $1.jpg
/bin/rm $1.ppm
display $1.jpg &
else
echo "I will not write over $1.jpg for it would be Bad."
fi
--------------
I'm assuming the memory leak is not coming from ImageMagick!
Anyhow, thanks for any insight, and THANKS MUCH to all of those who made
it possible... and simple... to scan under Linux. Gawd, I'd hate to have
to do this under NT... ick....
Leigh
p.s. the instructions to subscribe to the list on
http://www.mostang.com/sane/mail.html say that you can subscribe by
sending "subscribe" in the subject to majordomo... these instructions
don't work, majordomo wants "subscribe sane-devel" in the message body...
p.p.s. It's annoying that during a scan, the system basically freezes
up... is there any way to get around this? I'm assuming the scsi bus is
getting hammered with data due to the 'stupid' nature of the scanner (?)
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com