Re: Unstable scanning with Fujitsu fi-7160

"m. allan noah" <[email protected]> Wed, 14 Jan 2026 15:07:18 -0500
Newsgroups gmane.comp.graphics.scanning.sane.devel
Message-ID <CAKO8m0BQGE8OpoLqfokzQAHBTuWOcJJmGXrPtonn7VNGW7DB9A@mail.gmail.com>
--0000000000008e5f6806485ea856
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Again, check for kernel-level errors using dmesg.

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

> Everything changed, yes.
> The button daemon is a quite small program so I expected it to work also
> 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 (hardwar=
e,
> > OS, etc)
> >
> > allan
> >
> > On Wed, Jan 14, 2026 at 2:32=E2=80=AFPM Simon Matter <simon.matter@invo=
ca.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 bu=
t
> >> something has changed here.
> >>
> >> If anyone has an idea what could be wrong, please let me know. I'm qui=
te
> >> lost here.
> >>
> >> Thanks,
> >> Simon
> >>
> >> > I start to believe the problem is not in SANE itself but in the butt=
on
> >> > 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 or s=
o.
> >> > 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, th=
at
> >> > 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-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"
> >> >>
> >> >
> >>
> >>
> >>
> >
> > --
> > "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"

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

<div dir=3D"ltr">Again, check for kernel-level errors using dmesg.</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:59=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">Everything chang=
ed, yes.<br>
The button daemon is a quite small program so I expected it to work also<br=
>
with the new system. I was wrong here and now I try to find out why it<br>
leaves the system in a state where access to the device is blocked.<br>
<br>
Simon<br>
<br>
&gt; What changed? Just the sane-backends version, or anything else (hardwa=
re,<br>
&gt; OS, etc)<br>
&gt;<br>
&gt; allan<br>
&gt;<br>
&gt; On Wed, Jan 14, 2026 at 2:32=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; I can confirm now that the problem is with the button daemon<br>
&gt;&gt; scanmonitord-sanebd only and not with scanimage.<br>
&gt;&gt;<br>
&gt;&gt; When I run &quot;SANE_DEFAULT_DEVICE=3Dfujitsu:fi-7160:42929<br>
&gt;&gt; scanmonitord-sanebd&quot;<br>
&gt;&gt; several times in a terminal and terminate it with Ctrl+C, it will<=
br>
&gt;&gt; suddenly<br>
&gt;&gt; say &quot;Open of device fujitsu:fi-7160:42929 failed: Invalid arg=
ument&quot;.<br>
&gt;&gt; While studying the code of scanmonitord-sanebd.c I&#39;m failing t=
o<br>
&gt;&gt; understand<br>
&gt;&gt; what could be wrong. This has worked fine with SANE backends 1.0.2=
4 but<br>
&gt;&gt; something has changed here.<br>
&gt;&gt;<br>
&gt;&gt; If anyone has an idea what could be wrong, please let me know. I&#=
39;m quite<br>
&gt;&gt; lost here.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Simon<br>
&gt;&gt;<br>
&gt;&gt; &gt; I start to believe the problem is not in SANE itself but in t=
he button<br>
&gt;&gt; &gt; daemon we are using (see attachement).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Our software is running the button daemon and waits for event=
s, then<br>
&gt;&gt; &gt; terminates the button daemon and does the appropriate scanima=
ge job,<br>
&gt;&gt; and<br>
&gt;&gt; &gt; then starts the button daemon again.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The button daemon is a modified version of some daemon which =
was<br>
&gt;&gt; floating<br>
&gt;&gt; &gt; around many years ago. It has worked well for the last 15 yea=
rs or so.<br>
&gt;&gt; &gt; Maybe there is some modification needed to make it work well =
with<br>
&gt;&gt; newer<br>
&gt;&gt; &gt; SANE.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; If someone who knows SANE better than me would take a look at=
 it, that<br>
&gt;&gt; &gt; would be much appreciated.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt; Simon<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; We need to isolate the problem if possible- I expect if y=
ou compile<br>
&gt;&gt; an<br>
&gt;&gt; &gt;&gt; older, known working sane-backends on your current comput=
er, the<br>
&gt;&gt; problem<br>
&gt;&gt; &gt;&gt; will persist. That would indicate hardware or OS level is=
sue.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; allan<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Wed, Jan 14, 2026 at 9:35=E2=80=AFAM Simon Matter via =
sane-devel &lt;<br>
&gt;&gt; &gt;&gt; <a href=3D"mailto:[email protected]" tar=
get=3D"_blank">[email protected]</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; Hello,<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; On 2026-01-14 14:59, Simon Matter via sane-devel=
 wrote:<br>
&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; and operating system.<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; Does it work on the exact same computer<br>
&gt;&gt; &gt;&gt;&gt; &gt; where it fails or does it work on old computers?=
<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; It works fine on old computers with old software.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; I ask because of possible USB 3 related issues, =
see<br>
&gt;&gt; &gt;&gt;&gt; &gt; <a href=3D"https://en.opensuse.org/SDB:Configuri=
ng_Scanners#USB" rel=3D"noreferrer" target=3D"_blank">https://en.opensuse.o=
rg/SDB:Configuring_Scanners#USB</a><br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Thanks, I&#39;ll check it out.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Simon<br>
&gt;&gt; &gt;&gt;&gt;<br>
&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; &quot;well, I stand up next to a mountain- and I chop it =
down with the<br>
&gt;&gt; edge<br>
&gt;&gt; &gt;&gt; of<br>
&gt;&gt; &gt;&gt; my hand&quot;<br>
&gt;&gt; &gt;&gt;<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>

--0000000000008e5f6806485ea856--