Re: Unstable scanning with Fujitsu fi-7160

"m. allan noah" <[email protected]> Wed, 14 Jan 2026 14:48:41 -0500
Newsgroups gmane.comp.graphics.scanning.sane.devel
Message-ID <CAKO8m0BNF-moaUQzj7xdqmAxYZvRrvq54xwWr1wiHqV5c55MwQ@mail.gmail.com>
--000000000000dc482f06485e65c9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

What changed? Just the sane-backends version, or anything else (hardware,
OS, etc)

allan

On Wed, Jan 14, 2026 at 2:32=E2=80=AFPM Simon Matter <[email protected]=
h> wrote:

> I can confirm now that the problem is with the button daemon
> scanmonitord-sanebd only and not with scanimage.
>
> When I run "SANE_DEFAULT_DEVICE=3Dfujitsu:fi-7160:42929 scanmonitord-sane=
bd"
> several times in a terminal and terminate it with Ctrl+C, it will suddenl=
y
> say "Open of device fujitsu:fi-7160:42929 failed: Invalid argument".
> While studying the code of scanmonitord-sanebd.c I'm failing to understan=
d
> what could be wrong. This has worked fine with SANE backends 1.0.24 but
> something has changed here.
>
> If anyone has an idea what could be wrong, please let me know. I'm quite
> lost here.
>
> Thanks,
> Simon
>
> > I start to believe the problem is not in SANE itself but in the button
> > daemon we are using (see attachement).
> >
> > Our software is running the button daemon and waits for events, then
> > terminates the button daemon and does the appropriate scanimage job, an=
d
> > then starts the button daemon again.
> >
> > The button daemon is a modified version of some daemon which was floati=
ng
> > around many years ago. It has worked well for the last 15 years or so.
> > Maybe there is some modification needed to make it work well with newer
> > SANE.
> >
> > If someone who knows SANE better than me would take a look at it, that
> > would be much appreciated.
> >
> > Thanks,
> > Simon
> >
> >> We need to isolate the problem if possible- I expect if you compile an
> >> older, known working sane-backends on your current computer, the probl=
em
> >> will persist. That would indicate hardware or OS level issue.
> >>
> >> allan
> >>
> >> On Wed, Jan 14, 2026 at 9:35=E2=80=AFAM Simon Matter via sane-devel <
> >> [email protected]> wrote:
> >>
> >>> >
> >>> > Hello,
> >>> >
> >>> > On 2026-01-14 14:59, Simon Matter via sane-devel wrote:
> >>> >> These scanners work perfectly fine with very old sane-backends
> >>> >> and operating system.
> >>> >
> >>> > Does it work on the exact same computer
> >>> > where it fails or does it work on old computers?
> >>>
> >>> It works fine on old computers with old software.
> >>>
> >>> >
> >>> > I ask because of possible USB 3 related issues, see
> >>> > https://en.opensuse.org/SDB:Configuring_Scanners#USB
> >>>
> >>> Thanks, I'll check it out.
> >>>
> >>> Simon
> >>>
> >>>
> >>>
> >>
> >> --
> >> "well, I stand up next to a mountain- and I chop it down with the edge
> >> of
> >> my hand"
> >>
> >
>
>
>

--=20
"well, I stand up next to a mountain- and I chop it down with the edge of
my hand"

--000000000000dc482f06485e65c9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>What changed? Just the sane-backends version, or anyt=
hing else (hardware, OS, etc)</div><div><br></div><div>allan</div></div><br=
><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D=
"gmail_attr">On Wed, Jan 14, 2026 at 2:32=E2=80=AFPM Simon Matter &lt;<a hr=
ef=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">I can confirm no=
w that the problem is with the button daemon<br>
scanmonitord-sanebd only and not with scanimage.<br>
<br>
When I run &quot;SANE_DEFAULT_DEVICE=3Dfujitsu:fi-7160:42929 scanmonitord-s=
anebd&quot;<br>
several times in a terminal and terminate it with Ctrl+C, it will suddenly<=
br>
say &quot;Open of device fujitsu:fi-7160:42929 failed: Invalid argument&quo=
t;.<br>
While studying the code of scanmonitord-sanebd.c I&#39;m failing to underst=
and<br>
what could be wrong. This has worked fine with SANE backends 1.0.24 but<br>
something has changed here.<br>
<br>
If anyone has an idea what could be wrong, please let me know. I&#39;m quit=
e<br>
lost here.<br>
<br>
Thanks,<br>
Simon<br>
<br>
&gt; I start to believe the problem is not in SANE itself but in the button=
<br>
&gt; daemon we are using (see attachement).<br>
&gt;<br>
&gt; Our software is running the button daemon and waits for events, then<b=
r>
&gt; terminates the button daemon and does the appropriate scanimage job, a=
nd<br>
&gt; then starts the button daemon again.<br>
&gt;<br>
&gt; The button daemon is a modified version of some daemon which was float=
ing<br>
&gt; around many years ago. It has worked well for the last 15 years or so.=
<br>
&gt; Maybe there is some modification needed to make it work well with newe=
r<br>
&gt; SANE.<br>
&gt;<br>
&gt; If someone who knows SANE better than me would take a look at it, that=
<br>
&gt; would be much appreciated.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Simon<br>
&gt;<br>
&gt;&gt; We need to isolate the problem if possible- I expect if you compil=
e an<br>
&gt;&gt; older, known working sane-backends on your current computer, the p=
roblem<br>
&gt;&gt; will persist. That would indicate hardware or OS level issue.<br>
&gt;&gt;<br>
&gt;&gt; allan<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jan 14, 2026 at 9:35=E2=80=AFAM Simon Matter via sane-deve=
l &lt;<br>
&gt;&gt; <a href=3D"mailto:[email protected]" target=3D"_b=
lank">[email protected]</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Hello,<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; On 2026-01-14 14:59, Simon Matter via sane-devel wrote:<b=
r>
&gt;&gt;&gt; &gt;&gt; These scanners work perfectly fine with very old sane=
-backends<br>
&gt;&gt;&gt; &gt;&gt; and operating system.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Does it work on the exact same computer<br>
&gt;&gt;&gt; &gt; where it fails or does it work on old computers?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; It works fine on old computers with old software.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; I ask because of possible USB 3 related issues, see<br>
&gt;&gt;&gt; &gt; <a href=3D"https://en.opensuse.org/SDB:Configuring_Scanne=
rs#USB" rel=3D"noreferrer" target=3D"_blank">https://en.opensuse.org/SDB:Co=
nfiguring_Scanners#USB</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks, I&#39;ll check it out.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Simon<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; &quot;well, I stand up next to a mountain- and I chop it down with=
 the edge<br>
&gt;&gt; of<br>
&gt;&gt; my hand&quot;<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">&q=
uot;well, I stand up next to a mountain- and I chop it down with the edge o=
f my hand&quot;</div>

--000000000000dc482f06485e65c9--