<div dir="ltr"><div>Please note that I have never used scanbd, but I am the author of the fujitsu sane backend. I just took a quick look at your logs to see if I could help.</div><div><br></div><div>Your scanbd config seems really odd, with lots of default stuff you don't need enabled. The fujitsu.conf file already has support for reading the function setting and placing the value in an environment variable. The base scanbd.conf already has support for reading a scan button and calling 'test.script'. Seems like all you need to do is replace test.script with something useful.</div><div><br></div><div>Also, it is expected that pressing the scan button on the scanner, and then running scanimage -A will not show that the button was pressed. Scanimage is not a daemon, so is not running when the button press happens.</div><div><br></div><div>allan</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Jun 6, 2025 at 3:45 PM Dirk Meier via sane-devel <<a href="mailto:sane-devel@alioth-lists.debian.net">sane-devel@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Freitag, 6. Juni 2025, 01:27:10 CEST schrieb Tricia:<br>
> Hi, Dirk.<br>
> <br>
> On Thu, Jun 05, 2025 at 01:25:42PM -0700, Dirk Meier via sane-devel wrote:<br>
> > I have tried the following filters: “2”, “.*2.*”, “^2.*”, “.*2$” none of<br>
> > them worked. Only when I use “.*” as a filter is the assigned script<br>
> > executed. But continuously.<br>
> <br>
> I think your filter should be something like "^function$", and then<br>
> you'd use a `numerical-trigger` block to specify which transitions you<br>
> want to trigger on.<br>
> <br>
> `filter` controls, in effect, the name of the variable; not what values<br>
> to trigger on.<br>
> <br>
> If this doesn't get you anywhere, perhaps you can include both the full<br>
> output of `scanimage -A` and the full output of scanbd logs, making sure<br>
> you adjust the switch while it's running?<br>
> <br>
> - Tricia<br>
<br>
Hello Tricia,<br>
attached are two files output of scanimage -A with function wheel set to #2 and <br>
output of scanbd -f -d7 with wheel set to #2 and pressed scan-button.<br>
Scanner has wheel for function number 0-9 which ist shown in scanimage -A and <br>
has separate pushbutton "scan". But scanimage -A shows only "no" for scan <br>
button even if it is pressed before scanimage -A.<br>
I am confused how to filter.<br>
<br>
-- <br>
Dirk<br>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">"well, I stand up next to a mountain- and I chop it down with the edge of my hand"</div>