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 <<a hr= ef=3D"mailto:[email protected]">[email protected]</a>> 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 "SANE_DEFAULT_DEVICE=3Dfujitsu:fi-7160:42929 scanmonitord-s= anebd"<br> several times in a terminal and terminate it with Ctrl+C, it will suddenly<= br> say "Open of device fujitsu:fi-7160:42929 failed: Invalid argument&quo= t;.<br> While studying the code of scanmonitord-sanebd.c I'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'm quit= e<br> lost here.<br> <br> Thanks,<br> Simon<br> <br> > I start to believe the problem is not in SANE itself but in the button= <br> > daemon we are using (see attachement).<br> ><br> > Our software is running the button daemon and waits for events, then<b= r> > terminates the button daemon and does the appropriate scanimage job, a= nd<br> > then starts the button daemon again.<br> ><br> > The button daemon is a modified version of some daemon which was float= ing<br> > around many years ago. It has worked well for the last 15 years or so.= <br> > Maybe there is some modification needed to make it work well with newe= r<br> > SANE.<br> ><br> > If someone who knows SANE better than me would take a look at it, that= <br> > would be much appreciated.<br> ><br> > Thanks,<br> > Simon<br> ><br> >> We need to isolate the problem if possible- I expect if you compil= e an<br> >> older, known working sane-backends on your current computer, the p= roblem<br> >> will persist. That would indicate hardware or OS level issue.<br> >><br> >> allan<br> >><br> >> On Wed, Jan 14, 2026 at 9:35=E2=80=AFAM Simon Matter via sane-deve= l <<br> >> <a href=3D"mailto:[email protected]" target=3D"_b= lank">[email protected]</a>> wrote:<br> >><br> >>> ><br> >>> > Hello,<br> >>> ><br> >>> > On 2026-01-14 14:59, Simon Matter via sane-devel wrote:<b= r> >>> >> These scanners work perfectly fine with very old sane= -backends<br> >>> >> and operating system.<br> >>> ><br> >>> > Does it work on the exact same computer<br> >>> > where it fails or does it work on old computers?<br> >>><br> >>> It works fine on old computers with old software.<br> >>><br> >>> ><br> >>> > I ask because of possible USB 3 related issues, see<br> >>> > <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> >>><br> >>> Thanks, I'll check it out.<br> >>><br> >>> Simon<br> >>><br> >>><br> >>><br> >><br> >> --<br> >> "well, I stand up next to a mountain- and I chop it down with= the edge<br> >> of<br> >> my hand"<br> >><br> ><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"</div> --000000000000dc482f06485e65c9--