-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scanadf: open of device fujitsu failed: Invalid argument #16
Comments
The script defaults to a fujitsu scanner/device. What is your hardware? You can see the drivers / connected devices by doing this:
You can then pass See the |
I'm using a FUJITSU ScanSnap S1300i scanner pi@raspberrypi:~ $ scanadf -L but the script already defaults to DEVICE=fujitsu Thanks again for your help |
Update: I changed the device from DEVICE=fujitsu to DEVICE=epjitsu pi@raspberrypi:~ $ sudo scanbd -f |
You are triggering a scan from For the purposes of debugging here, I'd remove |
That makes complete sense to remove scanbd, I saw that other's had had success and that's how I came to try try it. This is the output: pi@raspberrypi:~/sane-scan-pdf $ sudo bash scan -v -d -r 300 -v -m Lineart --skip-empty-pages -o /home/pi/scans/scan Thanks |
Probably unrelated, but you shouldn't need to use The '-y' option is a driver-specific option for page height. Looking at the man page for epjitsu (https://linux.die.net/man/5/sane-epjitsu) it does seem to have some limitations:
and
Try removing or commenting these lines from your script and see if it works: https://github.com/rocketraman/sane-scan-pdf/blob/master/scan#L185-L188 |
Or grab the code from #17 and try to call the scan script with the argument |
@timcknowles Once you let me know if the code from #17 is working for this case, I can merge it to master. |
Hi thanks so much for this. I can confirm that by using code from #17 and calling the script with the argument --no-default-size works for the S1300i. I did run into one more dependency issue with the scan_perpage script "bc: command not found" - installing the bc package fixed this (apt-get install bc) I'm going to continue to try and get this work calling it via scanbd so the scan triggered form the scanner button and not just the cmd line. Thanks Tim |
Thanks for that confirmation. Code merged to master, README updated with optional |
@timcknowles This issue might be relevant to your use case with scanbd: #39. |
I meant to say the script fails on this. Thanks Tim
The text was updated successfully, but these errors were encountered: