Re: resolution option unknown

Henning Meier-Geinitz (henningmg@gmx.de)
Sun, 21 Feb 1999 21:34:21 +0100

Hi,

> I use a Mustek 600 II N scanner. 'scanimage -L' returns:
>
> device `pnm:0' is a Noname PNM file reader virtual device
> device `pnm:1' is a Noname PNM file reader virtual device
> device `mustek:0x36b' is a Mustek MFC-06000CZ flatbed scanner

Same here. I am using sane 0.73.

> Looks quite nice I think, the scanner moves about a centimeter up and down, lamp
> goes on, no problem..
>
> But when I acctually want to scan an image the scanner gives me the same action
> as the 'initialisation' as mentioned above but then locks up. CTRL-C sais:
> stopping scanner... but this has no effect I have to kill the scanimage process
> and a 0 byte output file remains.

Did you use "scanimage -d mustek > testfile"? This works for me.
Perhaps it's the same timing problem I had in the beginning. My
solution:

1) Put a usleep in sanei_ab306.c. The following patch was for 0.72,
but you get the idea.

diff -ru sane-0.72.orig/sanei/sanei_ab306.c
sane-0.72/sanei/sanei_ab306.c
--- sane-0.72.orig/sanei/sanei_ab306.c Tue Mar 3 03:13:25 1998
+++ sane-0.72/sanei/sanei_ab306.c Mon Apr 13 15:58:02 1998
@@ -196,6 +196,8 @@
ab306_inb (p, base + 1));
while ((ab306_inb (p, base + 1) & 0x20) == 0);

+ usleep(100000);
+
DBG(4, "ab306_write: writing data\n");
for (i = 0; i < len; ++i)
{


2) Sometimes a higher debugging level can help:
(for bash:)
export SANE_DEBUG_SANEI_AB306=128


> another strange thing:
>
> --resolution 51..600dpi (in steps of 1) [18]
> Sets the resolution of the scanned image.
> (look at the default value and the range given)
>
> and when I do:
>
> # scanimage --resolution 100
>
> I get:
> scanimage: unrecognized option `--resolution'

scanimage -d mustek --resolution 100 > testfile

works for me.

Hope this helps.

Ciao, Henning

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com