[sane-devel] SANE API / How to detect disconnect of scanner

m. allan noah kitno455 at gmail.com
Sun Apr 12 20:14:14 UTC 2009

yes- i can confirm that current fujitsu backend ignores the return
value from the hardware status query, so a front-end has no way of
knowing there was a problem. I'll commit a patch to current cvs asap.


On Sun, Apr 12, 2009 at 3:23 PM, m. allan noah <kitno455 at gmail.com> wrote:
> Well, I wrote the fujitsu backend, so I feel justified in saying that
> is a bug :) What version of sane-backends are you using?
> allan
> On Sun, Apr 12, 2009 at 3:04 PM, Florian Lohoff <flo at rfc822.org> wrote:
>> On Sun, Apr 12, 2009 at 09:11:16AM +0200, Florian Lohoff wrote:
>>> Hi,
>>> i am writing my own little scanner button handling which works without the problem.
>>> I am trying to attach the scanner (via USB) to a headles system. So in the
>>> end i 'd like to start the scanner button program via udev and let it
>>> die once the user turns off the scanner.
>>> I would have expected sane_control_option to return an error message once
>>> the scanner gets turned off (disconnected) but it still returns
>>> 0 aka SANE_STATUS_GOOD which is astonishing..
>>> Whats the proposed way to detect a disconnected scanner? Should i reopen the scanner
>>> on every 1 sec polling interval?!?
>> As i got a hint that the backend would be an important point - The backend
>> in this case is the fujitsu - fi 4120C on USB
>> Flo
>> --
>> Florian Lohoff                  flo at rfc822.org             +49-171-2280134
>>        Those who would give up a little freedom to get a little
>>          security shall soon have neither - Benjamin Franklin
>> Version: GnuPG v1.4.9 (GNU/Linux)
>> iD8DBQFJ4js/Uaz2rXW+gJcRAv8DAKDWG48RQ2j3ZfYsALoKpDKvmjaG4QCg0/y8
>> 9a3YGNziQ2H2fiG60nrGQhk=
>> =TjxZ
>> -----END PGP SIGNATURE-----
> --
> "The truth is an offense, but not a sin"

"The truth is an offense, but not a sin"

More information about the sane-devel mailing list