Closed nyn44e closed 2 years ago
I have a Fujitsu S1500 as well. I'll install scanbd
here and see if I can reproduce.
I'm assuming you've configured scanbd as recommended?
I followed several instruction pages to configure scanbd since the original README (https://github.com/mdengler/scanbd/blob/master/doc/README.txt) is a little dated.
The major difference to the instructions in the link is that I use systemd (scanbm.socket) to listen for requests to the scanner in the network instead of inetd/xinetd. But since that part seems to be working (I can scan pressing the button or access the scanner through the network from a different machine with Xsane) I started testing with calling scanadf directly.
Thank you for looking into it.
I'm on Fedora but these arch instructions seem to be pretty up to date, and use systemd. Does this sound something like your local configuration?
@nyn44e I tried to install scanbd but was unsuccessful (compile error I don't have time to resolve).
That being said, I've committed c892202 to the repo, which allows an empty device argument i.e. --device ""
. With an empty device argument, no -d
parameter will be set for scanadf
. If your evaluation of the problem is correct, this should allow you to move forward.
BTW, on my machine, not specifying any -d
argument causes a long pause (I believe while scanadf is trying to enumerate devices) and also a crash in scanadf
. But let me know if it works for you.
I'm on Fedora but these arch instructions seem to be pretty up to date, and use systemd. Does this sound something like your local configuration?
Those are pretty much the configuration guidelines I followed for scanbd.
@nyn44e I tried to install scanbd but was unsuccessful (compile error I don't have time to resolve).
That being said, I've committed c892202 to the repo, which allows an empty device argument i.e.
--device ""
. With an empty device argument, no-d
parameter will be set forscanadf
. If your evaluation of the problem is correct, this should allow you to move forward.BTW, on my machine, not specifying any
-d
argument causes a long pause (I believe while scanadf is trying to enumerate devices) and also a crash inscanadf
. But let me know if it works for you.
Thank you very much for the new commit. That fixed it. It will now scan instantly, whether I press the button or just execute the script. Thanks a lot!
Great to hear!
Hi,
first of all thanks for making this great script. It's a real time-saver.
I have a Fujitsu S1500 connected to a raspberrypi that also runs
scanbd
to enable me to scan stuff by pressing the button on the scanner. Scanbd is configured to execute the scriptscan.sh
upon signal from the button:This works great when I press the button. However, when I execute the script directly via ./scan.sh, I get the following error message from scanadf:
scanadf: open of device fujitsu failed: Invalid argument
If I just execute scanadf > tmp.jpg (or something) it scans fine.
If I change the DEVICE name in sane-scan-pdf/scan to the actual SANE-name of the scanner,
I can execute the script directly and I can scan with pressing the button, however there's a delay of almost 25s between press of the button and the start of the scan.
If I disable scanbd I can execute the script directly, no problems.
All of that makes me think that the script is somehow trying to call upon the scanner device directly or at least locally which it should not. It's supposed to go through scanbd.
Is there a way to just get rid of the device specification and let scanadf pick the device (which does work, see above)? I cannot figure out how to achieve this and would appreciate any help.
Kind regards, nyn