[sane-devel] portable sheet fed scanner listening 24/7?
m. allan noah
kitno455 at gmail.com
Mon Jul 5 20:20:12 UTC 2010
Some backends expose the state of hardware sensors. If the genesys
backend supports it, it should be possible to poll these, and only run
scanimage when paper is inserted. You might look for one of the button
daemons that come up in the list archives or in our old experimental
cvs tree.
allan
On Mon, Jul 5, 2010 at 3:25 PM, Mark Van den Borre <mark+sane at markvdb.be> wrote:
> Hi list,
>
> I wonder if I can have my portable sheet fed scanner permanently listening for
> a page to be fed, then auto start scanning it when it senses the
> presence of a page. (My scanner is a Xerox Travel Scanner 100, usb
> 0x04a7:0x04ac , Genesys GL841 chipset).
>
> I've been looking into scanimage --page-loaded , but that doesn't seem
> to be implemented for the genesys backend.
>
> I could keep on spawning new scanimage processes every time the
> previous one successfully exits after scanning or dies with exit
> status 9 of "scanimage: sane_start: Error during device I/O" after not
> getting any sheet fed. I just worry that this might kill my
> lamp/scanner within weeks or months. Can I safely ignore that risk?
>
> while true; do
> echo "Spawning a scanimage process."
> scanimage --format=tiff > $(date +%Y%m%d%H%M%S).tif
> done
>
> This does the trick, but it feels ucky...
>
> Any hints or help appreciated!
>
> Mark Van den Borre
> happy sane user
>
> --
> Mark Van den Borre
> Noormannenstraat 113
> 3000 Leuven, België
> +32 486 961726
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-request at lists.alioth.debian.org
--
"The truth is an offense, but not a sin"
More information about the sane-devel
mailing list