Closed kleinarne closed 1 year ago
Well, after posting this I found https://github.com/rocketraman/sane-scan-pdf/issues/16, which eventually solved it - I had to update the script that calls scan,
from
#!/bin/sh
now=`date +"%Y-%m-%d-%H%M"`
/home/username/sane-scan-pdf/scan -d -r 300 -v -m Lineart --skip-empty-pages -o /home/username/scans/scan-$now.pdf
to
#!/bin/sh
now=`date +"%Y-%m-%d-%H%M"`
/home/username/sane-scan-pdf/scan --device "" --no-default-size -d -r 300 -v -m Lineart --skip-empty-pages -o /home/username/scans/scan-$now.pdf
--device ""
fixed the scanadf: open of device fujitsu failed: Invalid argument
error,
--no-default-size
fixed the units: cannot open file '/root/.units': Permission denied
error.
And then it scanned, albeit 15 seconds or so after pressing the button.
/edit: Your comment in https://github.com/rocketraman/sane-scan-pdf/issues/39#issuecomment-1013807529 about calling scanadf without the -d
parameter fixed it for me too, I changed the --device ""
parameter to --device "epjitsu"
which also fixed the delay.
Anyway, I'll close this.
Glad you got it all working and thanks for updating the issue with your solution and issue references! Cheers.
I'm trying to get scanbd to call sane-scan-pdf when pressing the scan button on my Fujitsu S1300i.
When I run scanbd with
sudo SANE_CONFIG_DIR=/etc/scanbd scanbd -d7 -f
and press the scan button, I get the following debug output. Note the two linesunits: cannot open file '/root/.units': Permission denied
.I don't know how to fix this...