Re: Unstable scanning with Fujitsu fi-7160

"m. allan noah" <[email protected]> Wed, 14 Jan 2026 16:11:02 -0500
Newsgroups gmane.comp.graphics.scanning.sane.devel
Message-ID <CAKO8m0DW9+RVFB+vzd813xPduvmMkfkkrXEtFiSA7RrysP3Csg@mail.gmail.com>
--0000000000005f8e5d06485f8ce3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

well, are you normally killing button daemon, or did the problem start
before that?

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

> There is nothing in dmesg, unfortunately.
> I see that the button daemon does a sane_open() but when it is terminated
> with SIGTERM, there is no sane_close() called from what I understand.
> Could that be problem?
>
> Thanks,
> Simon
>
> > Again, check for kernel-level errors using dmesg.
> >
> > On Wed, Jan 14, 2026 at 2:59=E2=80=AFPM Simon Matter <simon.matter@invo=
ca.ch>
> > wrote:
> >
> >> Everything changed, yes.
> >> The button daemon is a quite small program so I expected it to work al=
so
> >> with the new system. I was wrong here and now I try to find out why it
> >> leaves the system in a state where access to the device is blocked.
> >>
> >> Simon
> >>
> >> > 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 <simon.matter@i=
nvoca.ch>
> >> > 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-sanebd"
> >> >> several times in a terminal and terminate it with Ctrl+C, it will
> >> >> suddenly
> >> >> say "Open of device fujitsu:fi-7160:42929 failed: Invalid argument"=
.
> >> >> While studying the code of scanmonitord-sanebd.c I'm failing to
> >> >> understand
> >> >> 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,
> >> >> and
> >> >> > then starts the button daemon again.
> >> >> >
> >> >> > The button daemon is a modified version of some daemon which was
> >> >> floating
> >> >> > around many years ago. It has worked well for the last 15 years o=
r
> >> 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
> >> >> problem
> >> >> >> 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-de=
vel <
> >> >> >> [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-backen=
ds
> >> >> >>> >> 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 th=
e
> >> >> edge
> >> >> >> of
> >> >> >> my hand"
> >> >> >>
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >
> >> > --
> >> > "well, I stand up next to a mountain- and I chop it down with the ed=
ge
> >> of
> >> > my hand"
> >> >
> >>
> >>
> >>
> >
> > --
> > "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"

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

<div dir=3D"ltr">well, are you normally killing button daemon, or did the p=
roblem start before that?</div><br><div class=3D"gmail_quote gmail_quote_co=
ntainer"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jan 14, 2026 at 3:54=
=E2=80=AFPM Simon Matter &lt;<a href=3D"mailto:[email protected]">simo=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote=
" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">There is nothing in dmesg, unfortunately.<br>
I see that the button daemon does a sane_open() but when it is terminated<b=
r>
with SIGTERM, there is no sane_close() called from what I understand.<br>
Could that be problem?<br>
<br>
Thanks,<br>
Simon<br>
<br>
&gt; Again, check for kernel-level errors using dmesg.<br>
&gt;<br>
&gt; On Wed, Jan 14, 2026 at 2:59=E2=80=AFPM Simon Matter &lt;<a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]</a>&g=
t;<br>
&gt; wrote:<br>
&gt;<br>
&gt;&gt; Everything changed, yes.<br>
&gt;&gt; The button daemon is a quite small program so I expected it to wor=
k also<br>
&gt;&gt; with the new system. I was wrong here and now I try to find out wh=
y it<br>
&gt;&gt; leaves the system in a state where access to the device is blocked=
.<br>
&gt;&gt;<br>
&gt;&gt; Simon<br>
&gt;&gt;<br>
&gt;&gt; &gt; What changed? Just the sane-backends version, or anything els=
e<br>
&gt;&gt; (hardware,<br>
&gt;&gt; &gt; OS, etc)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; allan<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Wed, Jan 14, 2026 at 2:32=E2=80=AFPM Simon Matter &lt;<a h=
ref=3D"mailto:[email protected]" target=3D"_blank">simon.matter@invoca=
.ch</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; I can confirm now that the problem is with the button dae=
mon<br>
&gt;&gt; &gt;&gt; scanmonitord-sanebd only and not with scanimage.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; When I run &quot;SANE_DEFAULT_DEVICE=3Dfujitsu:fi-7160:42=
929<br>
&gt;&gt; &gt;&gt; scanmonitord-sanebd&quot;<br>
&gt;&gt; &gt;&gt; several times in a terminal and terminate it with Ctrl+C,=
 it will<br>
&gt;&gt; &gt;&gt; suddenly<br>
&gt;&gt; &gt;&gt; say &quot;Open of device fujitsu:fi-7160:42929 failed: In=
valid argument&quot;.<br>
&gt;&gt; &gt;&gt; While studying the code of scanmonitord-sanebd.c I&#39;m =
failing to<br>
&gt;&gt; &gt;&gt; understand<br>
&gt;&gt; &gt;&gt; what could be wrong. This has worked fine with SANE backe=
nds 1.0.24<br>
&gt;&gt; but<br>
&gt;&gt; &gt;&gt; something has changed here.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; If anyone has an idea what could be wrong, please let me =
know. I&#39;m<br>
&gt;&gt; quite<br>
&gt;&gt; &gt;&gt; lost here.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanks,<br>
&gt;&gt; &gt;&gt; Simon<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; I start to believe the problem is not in SANE itself=
 but in the<br>
&gt;&gt; button<br>
&gt;&gt; &gt;&gt; &gt; daemon we are using (see attachement).<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Our software is running the button daemon and waits =
for events,<br>
&gt;&gt; then<br>
&gt;&gt; &gt;&gt; &gt; terminates the button daemon and does the appropriat=
e scanimage<br>
&gt;&gt; job,<br>
&gt;&gt; &gt;&gt; and<br>
&gt;&gt; &gt;&gt; &gt; then starts the button daemon again.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; The button daemon is a modified version of some daem=
on which was<br>
&gt;&gt; &gt;&gt; floating<br>
&gt;&gt; &gt;&gt; &gt; around many years ago. It has worked well for the la=
st 15 years or<br>
&gt;&gt; so.<br>
&gt;&gt; &gt;&gt; &gt; Maybe there is some modification needed to make it w=
ork well with<br>
&gt;&gt; &gt;&gt; newer<br>
&gt;&gt; &gt;&gt; &gt; SANE.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; If someone who knows SANE better than me would take =
a look at it,<br>
&gt;&gt; that<br>
&gt;&gt; &gt;&gt; &gt; would be much appreciated.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt;&gt; &gt; Simon<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; We need to isolate the problem if possible- I ex=
pect if you<br>
&gt;&gt; compile<br>
&gt;&gt; &gt;&gt; an<br>
&gt;&gt; &gt;&gt; &gt;&gt; older, known working sane-backends on your curre=
nt computer, the<br>
&gt;&gt; &gt;&gt; problem<br>
&gt;&gt; &gt;&gt; &gt;&gt; will persist. That would indicate hardware or OS=
 level issue.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; allan<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; On Wed, Jan 14, 2026 at 9:35=E2=80=AFAM Simon Ma=
tter via sane-devel &lt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href=3D"mailto:[email protected]=
.net" target=3D"_blank">[email protected]</a>&gt; wrote:<b=
r>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt; Hello,<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt; On 2026-01-14 14:59, Simon Matter via s=
ane-devel wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; These scanners work perfectly fine =
with very old sane-backends<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; and operating system.<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt; Does it work on the exact same computer=
<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt; where it fails or does it work on old c=
omputers?<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; It works fine on old computers with old soft=
ware.<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt; I ask because of possible USB 3 related=
 issues, see<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; &gt; <a href=3D"https://en.opensuse.org/SDB:=
Configuring_Scanners#USB" rel=3D"noreferrer" target=3D"_blank">https://en.o=
pensuse.org/SDB:Configuring_Scanners#USB</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; Thanks, I&#39;ll check it out.<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; Simon<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; &gt;&gt; &quot;well, I stand up next to a mountain- and I=
 chop it down with the<br>
&gt;&gt; &gt;&gt; edge<br>
&gt;&gt; &gt;&gt; &gt;&gt; of<br>
&gt;&gt; &gt;&gt; &gt;&gt; my hand&quot;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&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; &gt; my hand&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; --<br>
&gt; &quot;well, I stand up next to a mountain- and I chop it down with the=
 edge of<br>
&gt; my hand&quot;<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>

--0000000000005f8e5d06485f8ce3--