Discussion:
[sane-devel] SANE automation setup?
Adam Lloyd
2017-11-02 15:19:12 UTC
Permalink
Hello,

I recently moved an old scanner to a raspberry pi to see if I could get it
to work on alternative platform. A google search revealed that SANE has
"good" support for my particular scanner. After a few attempts I managed to
get Xsane working on a raspberry pi 3 running with stretch. I was able to
successfully scan a document! I would like to setup a dumb terminal
station, where the scanner sits in a corner and is idle. Whenever some
needs to scan a document they would hit the scan button and the document
would get moved to our home NAS. I have attempted to get this setup working
but without much luck.

Thanks,
Adam.
Wilhelm Meier
2017-11-02 16:06:48 UTC
Permalink
You should have a look at scanbd:

https://sourceforge.net/projects/scanbd/
Post by Adam Lloyd
Hello,
I recently moved an old scanner to a raspberry pi to see if I could get
it to work on alternative platform. A google search revealed that SANE
has "good" support for my particular scanner. After a few attempts I
managed to get Xsane working on a raspberry pi 3 running with stretch. I
was able to successfully scan a document! I would like to setup a dumb
terminal station, where the scanner sits in a corner and is idle.
Whenever some needs to scan a document they would hit the scan button
and the document would get moved to our home NAS. I have attempted to
get this setup working but without much luck. 
Thanks,
Adam. 
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-***@lis
Adam Lloyd
2017-11-02 16:21:13 UTC
Permalink
Thanks Wilhelm.

Here is the issue with my scandb setup.

[IMG]Loading Image...[/IMG]


On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier <
Post by Wilhelm Meier
https://sourceforge.net/projects/scanbd/
Post by Adam Lloyd
Hello,
I recently moved an old scanner to a raspberry pi to see if I could get
it to work on alternative platform. A google search revealed that SANE
has "good" support for my particular scanner. After a few attempts I
managed to get Xsane working on a raspberry pi 3 running with stretch. I
was able to successfully scan a document! I would like to setup a dumb
terminal station, where the scanner sits in a corner and is idle.
Whenever some needs to scan a document they would hit the scan button
and the document would get moved to our home NAS. I have attempted to
get this setup working but without much luck.
Thanks,
Adam.
Wilhelm Meier
2017-11-02 16:49:51 UTC
Permalink
Please post the log as text, not as image ...
Thanks Wilhelm. 
Here is the issue with my scandb setup.
[IMG]http://i67.tinypic.com/2hqq7op.jpg[/IMG]
On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier
https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>
Post by Adam Lloyd
Hello,
I recently moved an old scanner to a raspberry pi to see if I
could get
Post by Adam Lloyd
it to work on alternative platform. A google search revealed that SANE
has "good" support for my particular scanner. After a few attempts I
managed to get Xsane working on a raspberry pi 3 running with
stretch. I
Post by Adam Lloyd
was able to successfully scan a document! I would like to setup a dumb
terminal station, where the scanner sits in a corner and is idle.
Whenever some needs to scan a document they would hit the scan button
and the document would get moved to our home NAS. I have attempted to
get this setup working but without much luck. 
Thanks,
Adam. 
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to
Adam Lloyd
2017-11-02 20:49:43 UTC
Permalink
Sorry about that.

***@raspberrypi:~ $ export SANE_CONFIG_DIR=/etc/scanbd
***@raspberrypi:~ $ scanbd -f
scanbd: Can't set the effective gid to 116
scanbd: Can't set the effective uid to 111
scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection ":1.18" is not allowed to own the service
"de.kmux.scanbd.server" due to security policies in the configuration file)
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping

***@raspberrypi:~ $ scanimage --list-devices
device `rts8891:libusb:001:006' is a Hewlett-Packard 4470c flatbed scanner

here is the script that scandb is running -- (under the action section of
the scanbd.conf file)

#!/bin/bash

OUT_DIR=~/scans/Today
TMP_DIR=`mktemp -d`
FILE_NAME=scan_`date +%Y-%m-%d-%H%M%S`
LANGUAGE="eng" # the tesseract language - ensure you
installed it

echo 'scanning...'
scanimage --resolution 300 \
--batch="$TMP_DIR/scan_%03d.pnm" \
--format=pnm \
--mode Gray \
--source 'ADF Front'
echo "Output saved in $TMP_DIR/scan*.pnm"

cd $TMP_DIR

for i in scan_*.pnm; do
echo "${i}"
convert "${i}" "${i}.tif"
done

# do OCR
echo 'doing OCR...'
for i in scan_*.tif; do
echo "${i}"
tesseract "$i" "$i" -l $LANGUAGE hocr
hocr2pdf -i "$i" -s -o "$i.pdf" < "$i.hocr"
done

# create PDF
echo 'creating PDF...'
pdftk *.tif.pdf cat output "compiled.pdf"

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook
-dNOPAUSE -dQUIET -dBATCH -sOutputFile="$FILE_NAME.pdf" compiled.pdf

cp $FILE_NAME.pdf $OUT_DIR/

rm -rf $TMP_DIR


On Thu, Nov 2, 2017 at 4:49 PM, Wilhelm Meier <
Post by Wilhelm Meier
Please post the log as text, not as image ...
Post by Adam Lloyd
Thanks Wilhelm.
Here is the issue with my scandb setup.
[IMG]http://i67.tinypic.com/2hqq7op.jpg[/IMG]
On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier
https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>
Post by Adam Lloyd
Hello,
I recently moved an old scanner to a raspberry pi to see if I
could get
Post by Adam Lloyd
it to work on alternative platform. A google search revealed that
SANE
Post by Adam Lloyd
Post by Adam Lloyd
has "good" support for my particular scanner. After a few attempts
I
Post by Adam Lloyd
Post by Adam Lloyd
managed to get Xsane working on a raspberry pi 3 running with
stretch. I
Post by Adam Lloyd
was able to successfully scan a document! I would like to setup a
dumb
Post by Adam Lloyd
Post by Adam Lloyd
terminal station, where the scanner sits in a corner and is idle.
Whenever some needs to scan a document they would hit the scan
button
Post by Adam Lloyd
Post by Adam Lloyd
and the document would get moved to our home NAS. I have attempted
to
Post by Adam Lloyd
Post by Adam Lloyd
get this setup working but without much luck.
Thanks,
Adam.
Wilhelm Meier
2017-11-03 06:21:06 UTC
Permalink
Please post the full log, so that one can see the names of all options.
If the scanner supports a button (option) we will see the name of the
option in the log. Then one can adapt the config file to match the
option name and call a scan-script.
Sorry about that. 
scanbd: Can't set the effective gid to 116
scanbd: Can't set the effective uid to 111
scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection ":1.18" is not allowed to own the service
"de.kmux.scanbd.server" due to security policies in the configuration file)
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
device `rts8891:libusb:001:006' is a Hewlett-Packard 4470c flatbed scanner
here is the script that scandb is running -- (under the action section
of the scanbd.conf file)
#!/bin/bash
OUT_DIR=~/scans/Today
TMP_DIR=`mktemp -d`
FILE_NAME=scan_`date +%Y-%m-%d-%H%M%S`
LANGUAGE="eng"                 # the tesseract language - ensure you
installed it
echo 'scanning...'
scanimage --resolution 300 \
          --batch="$TMP_DIR/scan_%03d.pnm" \
          --format=pnm \
          --mode Gray \
          --source 'ADF Front'
echo "Output saved in $TMP_DIR/scan*.pnm"
cd $TMP_DIR
for i in scan_*.pnm; do
    echo "${i}"
    convert "${i}" "${i}.tif"
done
# do OCR
echo 'doing OCR...'
for i in scan_*.tif; do
    echo "${i}"
    tesseract "$i" "$i" -l $LANGUAGE hocr
    hocr2pdf -i "$i" -s -o "$i.pdf" < "$i.hocr"
done
# create PDF
echo 'creating PDF...'
pdftk *.tif.pdf cat output "compiled.pdf"
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook
-dNOPAUSE -dQUIET -dBATCH -sOutputFile="$FILE_NAME.pdf" compiled.pdf
cp $FILE_NAME.pdf $OUT_DIR/
rm -rf $TMP_DIR
On Thu, Nov 2, 2017 at 4:49 PM, Wilhelm Meier
Please post the log as text, not as image ...
Thanks Wilhelm. 
Here is the issue with my scandb setup.
[IMG]http://i67.tinypic.com/2hqq7op.jpg[/IMG]
<http://i67.tinypic.com/2hqq7op.jpg[/IMG]>
On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier
     https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>
     <https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>>
     > Hello,
     >
     > I recently moved an old scanner to a raspberry pi to see if I
     could get
     > it to work on alternative platform. A google search revealed
that SANE
     > has "good" support for my particular scanner. After a few
attempts I
     > managed to get Xsane working on a raspberry pi 3 running with
     stretch. I
     > was able to successfully scan a document! I would like to
setup a dumb
     > terminal station, where the scanner sits in a corner and is
idle.
     > Whenever some needs to scan a document they would hit the
scan button
     > and the document would get moved to our home NAS. I have
attempted to
     > get this setup working but without much luck. 
     >
     > Thanks,
     > Adam. 
     >
     >
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to s
Adam Lloyd
2017-11-03 10:38:52 UTC
Permalink
How/where would I find the full logs? Thanks for your patience!

Adam.

On Fri, Nov 3, 2017 at 2:21 AM, Wilhelm Meier <
Post by Wilhelm Meier
Please post the full log, so that one can see the names of all options.
If the scanner supports a button (option) we will see the name of the
option in the log. Then one can adapt the config file to match the
option name and call a scan-script.
Post by Adam Lloyd
Sorry about that.
scanbd: Can't set the effective gid to 116
scanbd: Can't set the effective uid to 111
scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection ":1.18" is not allowed to own the service
"de.kmux.scanbd.server" due to security policies in the configuration
file)
Post by Adam Lloyd
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
device `rts8891:libusb:001:006' is a Hewlett-Packard 4470c flatbed
scanner
Post by Adam Lloyd
here is the script that scandb is running -- (under the action section
of the scanbd.conf file)
#!/bin/bash
OUT_DIR=~/scans/Today
TMP_DIR=`mktemp -d`
FILE_NAME=scan_`date +%Y-%m-%d-%H%M%S`
LANGUAGE="eng" # the tesseract language - ensure you
installed it
echo 'scanning...'
scanimage --resolution 300 \
--batch="$TMP_DIR/scan_%03d.pnm" \
--format=pnm \
--mode Gray \
--source 'ADF Front'
echo "Output saved in $TMP_DIR/scan*.pnm"
cd $TMP_DIR
for i in scan_*.pnm; do
echo "${i}"
convert "${i}" "${i}.tif"
done
# do OCR
echo 'doing OCR...'
for i in scan_*.tif; do
echo "${i}"
tesseract "$i" "$i" -l $LANGUAGE hocr
hocr2pdf -i "$i" -s -o "$i.pdf" < "$i.hocr"
done
# create PDF
echo 'creating PDF...'
pdftk *.tif.pdf cat output "compiled.pdf"
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook
-dNOPAUSE -dQUIET -dBATCH -sOutputFile="$FILE_NAME.pdf" compiled.pdf
cp $FILE_NAME.pdf $OUT_DIR/
rm -rf $TMP_DIR
On Thu, Nov 2, 2017 at 4:49 PM, Wilhelm Meier
Please post the log as text, not as image ...
Post by Adam Lloyd
Thanks Wilhelm.
Here is the issue with my scandb setup.
[IMG]http://i67.tinypic.com/2hqq7op.jpg[/IMG]
<http://i67.tinypic.com/2hqq7op.jpg[/IMG]>
Post by Adam Lloyd
On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier
googlemail.com>
Post by Adam Lloyd
Post by Adam Lloyd
https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>
Post by Adam Lloyd
<https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>>
Post by Adam Lloyd
Post by Adam Lloyd
Hello,
I recently moved an old scanner to a raspberry pi to see if I
could get
Post by Adam Lloyd
it to work on alternative platform. A google search revealed
that SANE
Post by Adam Lloyd
Post by Adam Lloyd
has "good" support for my particular scanner. After a few
attempts I
Post by Adam Lloyd
Post by Adam Lloyd
managed to get Xsane working on a raspberry pi 3 running with
stretch. I
Post by Adam Lloyd
was able to successfully scan a document! I would like to
setup a dumb
Post by Adam Lloyd
Post by Adam Lloyd
terminal station, where the scanner sits in a corner and is
idle.
Post by Adam Lloyd
Post by Adam Lloyd
Whenever some needs to scan a document they would hit the
scan button
Post by Adam Lloyd
Post by Adam Lloyd
and the document would get moved to our home NAS. I have
attempted to
Post by Adam Lloyd
Post by Adam Lloyd
get this setup working but without much luck.
Thanks,
Adam.
Adam Lloyd
2017-11-05 12:07:43 UTC
Permalink
Here are some of the log files below:

***@raspberrypi:~ $ tail -f /var/log/messages
Nov 3 10:39:44 raspberrypi kernel: [ 12.884962] Bluetooth: RFCOMM socket
layer initialized
Nov 3 10:39:44 raspberrypi kernel: [ 12.884981] Bluetooth: RFCOMM ver
1.11
Nov 3 10:39:45 raspberrypi lightdm[552]: Error getting user list from
org.freedesktop.Accounts:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.Accounts was not provided by any .service files
Nov 3 10:39:48 raspberrypi kernel: [ 17.721642] fuse init (API version
7.26)
Nov 3 10:39:53 raspberrypi kernel: [ 21.889090] EXT4-fs (mmcblk0p5):
mounted filesystem with ordered data mode. Opts: (null)
Nov 5 11:59:29 raspberrypi kernel: [ 176.512360] warning: process
`scanbd' used the deprecated sysctl system call with
Nov 5 11:59:29 raspberrypi kernel: [ 176.512370] 8.
Nov 5 11:59:29 raspberrypi kernel: [ 176.512373] 1.
Nov 5 11:59:29 raspberrypi kernel: [ 176.512375] 2.
Nov 5 11:59:29 raspberrypi kernel: [ 176.512376]


***@raspberrypi:~ $ tail -f /var/log/syslog
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[20] sensors for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[1] standard for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[5] geometry for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[20] sensors for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[1] standard for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[5] geometry for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[20] sensors for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping

***@raspberrypi:~ $ lsusb
Bus 001 Device 006: ID 045e:074f Microsoft Corp.
Bus 001 Device 005: ID 0603:00f2 Novatek Microelectronics Corp. Keyboard
(Labtec Ultra Flat Keyboard)
Bus 001 Device 004: ID 03f0:0805 Hewlett-Packard HP4470C
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514
Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

would the dmesg logs provide additional info?






On Fri, Nov 3, 2017 at 6:21 AM, Wilhelm Meier <
Post by Wilhelm Meier
Please post the full log, so that one can see the names of all options.
If the scanner supports a button (option) we will see the name of the
option in the log. Then one can adapt the config file to match the
option name and call a scan-script.
Post by Adam Lloyd
Sorry about that.
scanbd: Can't set the effective gid to 116
scanbd: Can't set the effective uid to 111
scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection ":1.18" is not allowed to own the service
"de.kmux.scanbd.server" due to security policies in the configuration
file)
Post by Adam Lloyd
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
device `rts8891:libusb:001:006' is a Hewlett-Packard 4470c flatbed
scanner
Post by Adam Lloyd
here is the script that scandb is running -- (under the action section
of the scanbd.conf file)
#!/bin/bash
OUT_DIR=~/scans/Today
TMP_DIR=`mktemp -d`
FILE_NAME=scan_`date +%Y-%m-%d-%H%M%S`
LANGUAGE="eng" # the tesseract language - ensure you
installed it
echo 'scanning...'
scanimage --resolution 300 \
--batch="$TMP_DIR/scan_%03d.pnm" \
--format=pnm \
--mode Gray \
--source 'ADF Front'
echo "Output saved in $TMP_DIR/scan*.pnm"
cd $TMP_DIR
for i in scan_*.pnm; do
echo "${i}"
convert "${i}" "${i}.tif"
done
# do OCR
echo 'doing OCR...'
for i in scan_*.tif; do
echo "${i}"
tesseract "$i" "$i" -l $LANGUAGE hocr
hocr2pdf -i "$i" -s -o "$i.pdf" < "$i.hocr"
done
# create PDF
echo 'creating PDF...'
pdftk *.tif.pdf cat output "compiled.pdf"
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook
-dNOPAUSE -dQUIET -dBATCH -sOutputFile="$FILE_NAME.pdf" compiled.pdf
cp $FILE_NAME.pdf $OUT_DIR/
rm -rf $TMP_DIR
On Thu, Nov 2, 2017 at 4:49 PM, Wilhelm Meier
Please post the log as text, not as image ...
Post by Adam Lloyd
Thanks Wilhelm.
Here is the issue with my scandb setup.
[IMG]http://i67.tinypic.com/2hqq7op.jpg[/IMG]
<http://i67.tinypic.com/2hqq7op.jpg[/IMG]>
Post by Adam Lloyd
On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier
googlemail.com>
Post by Adam Lloyd
Post by Adam Lloyd
https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>
Post by Adam Lloyd
<https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>>
Post by Adam Lloyd
Post by Adam Lloyd
Hello,
I recently moved an old scanner to a raspberry pi to see if I
could get
Post by Adam Lloyd
it to work on alternative platform. A google search revealed
that SANE
Post by Adam Lloyd
Post by Adam Lloyd
has "good" support for my particular scanner. After a few
attempts I
Post by Adam Lloyd
Post by Adam Lloyd
managed to get Xsane working on a raspberry pi 3 running with
stretch. I
Post by Adam Lloyd
was able to successfully scan a document! I would like to
setup a dumb
Post by Adam Lloyd
Post by Adam Lloyd
terminal station, where the scanner sits in a corner and is
idle.
Post by Adam Lloyd
Post by Adam Lloyd
Whenever some needs to scan a document they would hit the
scan button
Post by Adam Lloyd
Post by Adam Lloyd
and the document would get moved to our home NAS. I have
attempted to
Post by Adam Lloyd
Post by Adam Lloyd
get this setup working but without much luck.
Thanks,
Adam.
Wilhelm Meier
2017-11-05 18:31:37 UTC
Permalink
Please provide the log of scanbd from the beginning on - until the point
where it starts repeating the same messages.
Nov  3 10:39:44 raspberrypi kernel: [   12.884962] Bluetooth: RFCOMM
socket layer initialized
Nov  3 10:39:44 raspberrypi kernel: [   12.884981] Bluetooth: RFCOMM ver
1.11
Nov  3 10:39:45 raspberrypi lightdm[552]: Error getting user list from
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.Accounts was not provided by any .service files
Nov  3 10:39:48 raspberrypi kernel: [   17.721642] fuse init (API
version 7.26)
mounted filesystem with ordered data mode. Opts: (null)
Nov  5 11:59:29 raspberrypi kernel: [  176.512360] warning: process
`scanbd' used the deprecated sysctl system call with 
Nov  5 11:59:29 raspberrypi kernel: [  176.512370] 8.
Nov  5 11:59:29 raspberrypi kernel: [  176.512373] 1.
Nov  5 11:59:29 raspberrypi kernel: [  176.512375] 2.
Nov  5 11:59:29 raspberrypi kernel: [  176.512376] 
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[20] sensors for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[1] standard for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[5] geometry for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[20] sensors for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[1] standard for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[5] geometry for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov  5 11:59:34 raspberrypi scanbd: scanbd: option[20] sensors for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Bus 001 Device 006: ID 045e:074f Microsoft Corp. 
Bus 001 Device 005: ID 0603:00f2 Novatek Microelectronics Corp. Keyboard
(Labtec Ultra Flat Keyboard)
Bus 001 Device 004: ID 03f0:0805 Hewlett-Packard HP4470C
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
would the dmesg logs provide additional info?
On Fri, Nov 3, 2017 at 6:21 AM, Wilhelm Meier
Please post the full log, so that one can see the names of all options.
If the scanner supports a button (option) we will see the name of the
option in the log. Then one can adapt the config file to match the
option name and call a scan-script.
Sorry about that. 
scanbd: Can't set the effective gid to 116
scanbd: Can't set the effective uid to 111
scanbd: dbus match
type='signal',interface='org.freedesktop.Hal.Manager'
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection ":1.18" is not allowed to own the
service
"de.kmux.scanbd.server" due to security policies in the
configuration file)
scanbd: option[1] standard for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006
not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006
not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006
not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006
not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not
of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
device `rts8891:libusb:001:006' is a Hewlett-Packard 4470c flatbed
scanner
here is the script that scandb is running -- (under the action section
of the scanbd.conf file)
#!/bin/bash
OUT_DIR=~/scans/Today
TMP_DIR=`mktemp -d`
FILE_NAME=scan_`date +%Y-%m-%d-%H%M%S`
LANGUAGE="eng"                 # the tesseract language - ensure you
installed it
echo 'scanning...'
scanimage --resolution 300 \
          --batch="$TMP_DIR/scan_%03d.pnm" \
          --format=pnm \
          --mode Gray \
          --source 'ADF Front'
echo "Output saved in $TMP_DIR/scan*.pnm"
cd $TMP_DIR
for i in scan_*.pnm; do
    echo "${i}"
    convert "${i}" "${i}.tif"
done
# do OCR
echo 'doing OCR...'
for i in scan_*.tif; do
    echo "${i}"
    tesseract "$i" "$i" -l $LANGUAGE hocr
    hocr2pdf -i "$i" -s -o "$i.pdf" < "$i.hocr"
done
# create PDF
echo 'creating PDF...'
pdftk *.tif.pdf cat output "compiled.pdf"
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook
-dNOPAUSE -dQUIET -dBATCH -sOutputFile="$FILE_NAME.pdf" compiled.pdf
cp $FILE_NAME.pdf $OUT_DIR/
rm -rf $TMP_DIR
On Thu, Nov 2, 2017 at 4:49 PM, Wilhelm Meier
     Please post the log as text, not as image ...
     > Thanks Wilhelm. 
     >
     > Here is the issue with my scandb setup.
     >
     > [IMG]http://i67.tinypic.com/2hqq7op.jpg[/IMG]
<http://i67.tinypic.com/2hqq7op.jpg[/IMG]>
     <http://i67.tinypic.com/2hqq7op.jpg[/IMG]
<http://i67.tinypic.com/2hqq7op.jpg[/IMG]>>
     >
     >
     > On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier
     >
     >
     >     https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>
     <https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>>
     >     <https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>
     <https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>>>
     >
     >
     >
     >     > Hello,
     >     >
     >     > I recently moved an old scanner to a raspberry pi to
see if I
     >     could get
     >     > it to work on alternative platform. A google search
revealed
     that SANE
     >     > has "good" support for my particular scanner. After a few
     attempts I
     >     > managed to get Xsane working on a raspberry pi 3
running with
     >     stretch. I
     >     > was able to successfully scan a document! I would like to
     setup a dumb
     >     > terminal station, where the scanner sits in a corner
and is
     idle.
     >     > Whenever some needs to scan a document they would hit the
     scan button
     >     > and the document would get moved to our home NAS. I have
     attempted to
     >     > get this setup working but without much luck. 
     >     >
     >     > Thanks,
     >     > Adam. 
     >     >
     >     >
     >
     >
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-***@lists.alioth.debian.
Adam Lloyd
2017-11-05 21:30:37 UTC
Permalink
I am going to include the syslog and debug log from scanbd

here is the debug log
***@raspberrypi:/etc/scanbd $ sudo pico scanbd.conf
***@raspberrypi:/etc/scanbd $ export SANE_CONFIG_DIR=/etc/scanbd
***@raspberrypi:/etc/scanbd $ scanbd
scanbd: debug on: level: 3
***@raspberrypi:/etc/scanbd $ scanbd -f
scanbd: debug on: level: 3
scanbd: dropping privs to uid saned
scanbd: dropping privs to gid scanner
scanbd: group scanner has member:
scanbd: saned
scanbd: Can't set the effective gid to 116
scanbd: Can't set the effective uid to 111
scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'
scanbd: sane version 1.0
scanbd: Scanning for local-only devices
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection ":1.18" is not allowed to own the service
"de.kmux.scanbd.server" due to security policies in the configuration file)
scanbd: udev fd is non-blocking, now setting to blocking mode
scanbd: found 32 options for device rts8891:libusb:001:004
scanbd: found 5 actions in section (null)
scanbd: option[1] standard for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[2] mode (type: 3) for device
rts8891:libusb:001:004
scanbd: found active option[3] preview (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[4] resolution (type: 1) for device
rts8891:libusb:001:004
scanbd: option[5] geometry for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[6] tl-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[7] tl-y (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[8] br-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[9] br-y (type: 2) for device
rts8891:libusb:001:004
scanbd: option[10] enhancement for device rts8891:libusb:001:004 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[12] custom-gamma (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[18] lamp-on (type: 4) for device
rts8891:libusb:001:004
scanbd: found active option[19] lamp-off (type: 4) for device
rts8891:libusb:001:004
scanbd: option[20] sensors for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[21] button-plus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[22] button-minus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[23] button-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[24] button-mail (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[25] button-image-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[26] button-www (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[27] button-scan (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[28] button-power (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[29] button-cancel (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[30] button-options (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[31] button-toggle-mode (type: 0) for device
rts8891:libusb:001:004
scanbd: option[1] standard for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[2] mode (type: 3) for device
rts8891:libusb:001:004
scanbd: found active option[3] preview (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[4] resolution (type: 1) for device
rts8891:libusb:001:004
scanbd: option[5] geometry for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[6] tl-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[7] tl-y (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[8] br-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[9] br-y (type: 2) for device
rts8891:libusb:001:004
scanbd: option[10] enhancement for device rts8891:libusb:001:004 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[12] custom-gamma (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[18] lamp-on (type: 4) for device
rts8891:libusb:001:004
scanbd: found active option[19] lamp-off (type: 4) for device
rts8891:libusb:001:004
scanbd: option[20] sensors for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[21] button-plus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[22] button-minus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[23] button-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[24] button-mail (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[25] button-image-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[26] button-www (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[27] button-scan (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[28] button-power (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[29] button-cancel (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[30] button-options (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[31] button-toggle-mode (type: 0) for device
rts8891:libusb:001:004
scanbd: option[1] standard for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[2] mode (type: 3) for device
rts8891:libusb:001:004
scanbd: found active option[3] preview (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[4] resolution (type: 1) for device
rts8891:libusb:001:004
scanbd: option[5] geometry for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[6] tl-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[7] tl-y (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[8] br-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[9] br-y (type: 2) for device
rts8891:libusb:001:004
scanbd: option[10] enhancement for device rts8891:libusb:001:004 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[12] custom-gamma (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[18] lamp-on (type: 4) for device
rts8891:libusb:001:004
scanbd: found active option[19] lamp-off (type: 4) for device
rts8891:libusb:001:004
scanbd: option[20] sensors for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[21] button-plus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[22] button-minus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[23] button-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[24] button-mail (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[25] button-image-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[26] button-www (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[27] button-scan (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[28] button-power (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[29] button-cancel (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[30] button-options (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[31] button-toggle-mode (type: 0) for device
rts8891:libusb:001:004
scanbd: option[1] standard for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[2] mode (type: 3) for device
rts8891:libusb:001:004
scanbd: found active option[3] preview (type: 0) for device
rts8891:libusb:001:004
scanbd: installing action preview (0) for rts8891:libusb:001:004,
option[3]: preview as: test.script
scanbd: multiple actions allowed
scanbd: Initial value of option preview is 0
scanbd: found active option[4] resolution (type: 1) for device
rts8891:libusb:001:004
scanbd: option[5] geometry for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[6] tl-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[7] tl-y (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[8] br-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[9] br-y (type: 2) for device
rts8891:libusb:001:004
scanbd: option[10] enhancement for device rts8891:libusb:001:004 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[12] custom-gamma (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[18] lamp-on (type: 4) for device
rts8891:libusb:001:004
scanbd: found active option[19] lamp-off (type: 4) for device
rts8891:libusb:001:004
scanbd: option[20] sensors for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[21] button-plus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[22] button-minus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[23] button-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[24] button-mail (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[25] button-image-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[26] button-www (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[27] button-scan (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[28] button-power (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[29] button-cancel (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[30] button-options (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[31] button-toggle-mode (type: 0) for device
rts8891:libusb:001:004
scanbd: option[1] standard for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[2] mode (type: 3) for device
rts8891:libusb:001:004
scanbd: found active option[3] preview (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[4] resolution (type: 1) for device
rts8891:libusb:001:004
scanbd: option[5] geometry for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[6] tl-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[7] tl-y (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[8] br-x (type: 2) for device
rts8891:libusb:001:004
scanbd: found active option[9] br-y (type: 2) for device
rts8891:libusb:001:004
scanbd: option[10] enhancement for device rts8891:libusb:001:004 not of
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[12] custom-gamma (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[18] lamp-on (type: 4) for device
rts8891:libusb:001:004
scanbd: found active option[19] lamp-off (type: 4) for device
rts8891:libusb:001:004
scanbd: option[20] sensors for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[21] button-plus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[22] button-minus (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[23] button-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[24] button-mail (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[25] button-image-copy (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[26] button-www (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[27] button-scan (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[28] button-power (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[29] button-cancel (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[30] button-options (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[31] button-toggle-mode (type: 0) for device
rts8891:libusb:001:004
scanbd: found 2 functions in section (null)
scanbd: option[1] standard for device rts8891:libusb:001:004 not of type
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: found active option[2] mode (type: 3) for device
rts8891:libusb:001:004
scanbd: found active option[3] preview (type: 0) for device
rts8891:libusb:001:004
scanbd: found active option[4] resolution (type: 1) for device
rts8891:libusb:001:004


***** END OF debug log


Here is the start of the syslog...

Nov 5 20:58:32 raspberrypi systemd[1]: Starting Cleanup of Temporary
Directories...
Nov 5 20:58:32 raspberrypi systemd[1]: Started Cleanup of Temporary
Directories.
Nov 5 21:17:01 raspberrypi CRON[865]: (root) CMD ( cd / && run-parts
--report /etc/cron.hourly)
Nov 5 21:17:15 raspberrypi scanbd: scanbd: debug on: level: 3
Nov 5 21:17:15 raspberrypi scanbd: scanbd: dropping privs to uid saned
Nov 5 21:17:15 raspberrypi scanbd: scanbd: dropping privs to gid scanner
Nov 5 21:17:15 raspberrypi scanbd: scanbd: Can't create pidfile
/var/run/scanbd.pid : Permission denied
Nov 5 21:17:40 raspberrypi scanbd: scanbd: debug on: level: 3
Nov 5 21:17:40 raspberrypi scanbd: scanbd: dropping privs to uid saned
Nov 5 21:17:40 raspberrypi scanbd: scanbd: dropping privs to gid scanner
Nov 5 21:17:40 raspberrypi scanbd: scanbd: group scanner has member:
Nov 5 21:17:40 raspberrypi scanbd: scanbd: saned
Nov 5 21:17:40 raspberrypi scanbd: scanbd: Can't set the effective gid to
116
Nov 5 21:17:40 raspberrypi scanbd: scanbd: Can't set the effective uid to
111
Nov 5 21:17:40 raspberrypi scanbd: scanbd: dbus match
type='signal',interface='org.freedesktop.Hal.Manager'
Nov 5 21:17:40 raspberrypi scanbd: scanbd: sane version 1.0
Nov 5 21:17:40 raspberrypi scanbd: scanbd: Scanning for local-only devices
Nov 5 21:17:40 raspberrypi kernel: [ 2049.036427] warning: process
`scanbd' used the deprecated sysctl system call with
Nov 5 21:17:40 raspberrypi kernel: [ 2049.036435] 8.
Nov 5 21:17:40 raspberrypi kernel: [ 2049.036438] 1.
Nov 5 21:17:40 raspberrypi kernel: [ 2049.036440] 2.
Nov 5 21:17:40 raspberrypi kernel: [ 2049.036442]
Nov 5 21:17:45 raspberrypi scanbd: scanbd: Not Primary Owner (-1)
Nov 5 21:17:45 raspberrypi scanbd: scanbd: Name Error (Connection ":1.18"
is not allowed to own the service "de.kmux.scanbd.server" due to security
policies in the configuration file)
Nov 5 21:17:45 raspberrypi scanbd: scanbd: udev fd is non-blocking, now
setting to blocking mode
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found 32 options for device
rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found 5 actions in section
(null)
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[1] standard for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[2] mode
(type: 3) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[3] preview
(type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[4]
resolution (type: 1) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[5] geometry for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[6] tl-x
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[7] tl-y
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[8] br-x
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[9] br-y
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[12]
custom-gamma (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[18] lamp-on
(type: 4) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[19]
lamp-off (type: 4) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[20] sensors for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[21]
button-plus (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[22]
button-minus (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[23]
button-copy (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[24]
button-mail (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[25]
button-image-copy (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[26]
button-www (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[27]
button-scan (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[28]
button-power (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[29]
button-cancel (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[30]
button-options (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[31]
button-toggle-mode (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[1] standard for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[2] mode
(type: 3) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[3] preview
(type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[4]
resolution (type: 1) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[5] geometry for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[6] tl-x
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[7] tl-y
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[8] br-x
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[9] br-y
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[12]
custom-gamma (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[18] lamp-on
(type: 4) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[19]
lamp-off (type: 4) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[20] sensors for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[21]
button-plus (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[22]
button-minus (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[23]
button-copy (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[24]
button-mail (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[25]
button-image-copy (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[26]
button-www (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[27]
button-scan (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[28]
button-power (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[29]
button-cancel (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[30]
button-options (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[31]
button-toggle-mode (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[1] standard for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[2] mode
(type: 3) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[3] preview
(type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[4]
resolution (type: 1) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[5] geometry for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[6] tl-x
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[7] tl-y
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[8] br-x
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[9] br-y
(type: 2) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[12]
custom-gamma (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[18] lamp-on
(type: 4) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[19]
lamp-off (type: 4) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[20] sensors for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[21]
button-plus (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[22]
button-minus (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[23]
button-copy (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[24]
button-mail (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[25]
button-image-copy (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[26]
button-www (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[27]
button-scan (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[28]
button-power (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[29]
button-cancel (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[30]
button-options (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[31]
button-toggle-mode (type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: option[1] standard for device
rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[2] mode
(type: 3) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[3] preview
(type: 0) for device rts8891:libusb:001:004
Nov 5 21:17:45 raspberrypi scanbd: scanbd: installing action preview (0)
for rts8891:libusb:001:004, option[3]: preview as: test.script
Nov 5 21:17:45 raspberrypi scanbd: scanbd: multiple actions allowed
Nov 5 21:17:45 raspberrypi scanbd: scanbd: Initial value of option preview
is 0
Nov 5 21:17:45 raspberrypi scanbd: scanbd: found active option[4]
resolution (type: 1) for device rts8891:libusb:001:004

Thanks again for your assistance!
Adam.


On Sun, Nov 5, 2017 at 6:31 PM, Wilhelm Meier <
Post by Wilhelm Meier
Please provide the log of scanbd from the beginning on - until the point
where it starts repeating the same messages.
Post by Adam Lloyd
Nov 3 10:39:44 raspberrypi kernel: [ 12.884962] Bluetooth: RFCOMM
socket layer initialized
Nov 3 10:39:44 raspberrypi kernel: [ 12.884981] Bluetooth: RFCOMM ver
1.11
Nov 3 10:39:45 raspberrypi lightdm[552]: Error getting user list from
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.Accounts was not provided by any .service files
Nov 3 10:39:48 raspberrypi kernel: [ 17.721642] fuse init (API
version 7.26)
mounted filesystem with ordered data mode. Opts: (null)
Nov 5 11:59:29 raspberrypi kernel: [ 176.512360] warning: process
`scanbd' used the deprecated sysctl system call with
Nov 5 11:59:29 raspberrypi kernel: [ 176.512370] 8.
Nov 5 11:59:29 raspberrypi kernel: [ 176.512373] 1.
Nov 5 11:59:29 raspberrypi kernel: [ 176.512375] 2.
Nov 5 11:59:29 raspberrypi kernel: [ 176.512376]
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[20] sensors for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[1] standard for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[5] geometry for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[20] sensors for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[1] standard for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[5] geometry for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[10] enhancement for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Nov 5 11:59:34 raspberrypi scanbd: scanbd: option[20] sensors for
device rts8891:libusb:001:004 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping
Bus 001 Device 006: ID 045e:074f Microsoft Corp.
Bus 001 Device 005: ID 0603:00f2 Novatek Microelectronics Corp. Keyboard
(Labtec Ultra Flat Keyboard)
Bus 001 Device 004: ID 03f0:0805 Hewlett-Packard HP4470C
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
would the dmesg logs provide additional info?
On Fri, Nov 3, 2017 at 6:21 AM, Wilhelm Meier
Please post the full log, so that one can see the names of all
options.
Post by Adam Lloyd
If the scanner supports a button (option) we will see the name of the
option in the log. Then one can adapt the config file to match the
option name and call a scan-script.
Post by Adam Lloyd
Sorry about that.
scanbd: Can't set the effective gid to 116
scanbd: Can't set the effective uid to 111
scanbd: dbus match
type='signal',interface='org.freedesktop.Hal.Manager'
Post by Adam Lloyd
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection ":1.18" is not allowed to own the
service
Post by Adam Lloyd
"de.kmux.scanbd.server" due to security policies in the
configuration file)
Post by Adam Lloyd
scanbd: option[1] standard for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006
not of
Post by Adam Lloyd
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006
not of
Post by Adam Lloyd
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006
not of
Post by Adam Lloyd
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[1] standard for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[5] geometry for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[10] enhancement for device rts8891:libusb:001:006
not of
Post by Adam Lloyd
type BOOL|INT|FIXED|STRING|BUTTON. Skipping
scanbd: option[20] sensors for device rts8891:libusb:001:006 not
of type
Post by Adam Lloyd
BOOL|INT|FIXED|STRING|BUTTON. Skipping
device `rts8891:libusb:001:006' is a Hewlett-Packard 4470c flatbed
scanner
Post by Adam Lloyd
here is the script that scandb is running -- (under the action
section
Post by Adam Lloyd
Post by Adam Lloyd
of the scanbd.conf file)
#!/bin/bash
OUT_DIR=~/scans/Today
TMP_DIR=`mktemp -d`
FILE_NAME=scan_`date +%Y-%m-%d-%H%M%S`
LANGUAGE="eng" # the tesseract language - ensure
you
Post by Adam Lloyd
Post by Adam Lloyd
installed it
echo 'scanning...'
scanimage --resolution 300 \
--batch="$TMP_DIR/scan_%03d.pnm" \
--format=pnm \
--mode Gray \
--source 'ADF Front'
echo "Output saved in $TMP_DIR/scan*.pnm"
cd $TMP_DIR
for i in scan_*.pnm; do
echo "${i}"
convert "${i}" "${i}.tif"
done
# do OCR
echo 'doing OCR...'
for i in scan_*.tif; do
echo "${i}"
tesseract "$i" "$i" -l $LANGUAGE hocr
hocr2pdf -i "$i" -s -o "$i.pdf" < "$i.hocr"
done
# create PDF
echo 'creating PDF...'
pdftk *.tif.pdf cat output "compiled.pdf"
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook
-dNOPAUSE -dQUIET -dBATCH -sOutputFile="$FILE_NAME.pdf"
compiled.pdf
Post by Adam Lloyd
Post by Adam Lloyd
cp $FILE_NAME.pdf $OUT_DIR/
rm -rf $TMP_DIR
On Thu, Nov 2, 2017 at 4:49 PM, Wilhelm Meier
Please post the log as text, not as image ...
Post by Adam Lloyd
Thanks Wilhelm.
Here is the issue with my scandb setup.
[IMG]http://i67.tinypic.com/2hqq7op.jpg[/IMG]
<http://i67.tinypic.com/2hqq7op.jpg[/IMG]>
Post by Adam Lloyd
<http://i67.tinypic.com/2hqq7op.jpg[/IMG]
<http://i67.tinypic.com/2hqq7op.jpg[/IMG]>>
Post by Adam Lloyd
Post by Adam Lloyd
On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier
https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>
Post by Adam Lloyd
<https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>>
Post by Adam Lloyd
Post by Adam Lloyd
<https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>
Post by Adam Lloyd
<https://sourceforge.net/projects/scanbd/
<https://sourceforge.net/projects/scanbd/>>>
Post by Adam Lloyd
Post by Adam Lloyd
Post by Adam Lloyd
Hello,
I recently moved an old scanner to a raspberry pi to
see if I
Post by Adam Lloyd
Post by Adam Lloyd
could get
Post by Adam Lloyd
it to work on alternative platform. A google search
revealed
Post by Adam Lloyd
that SANE
Post by Adam Lloyd
Post by Adam Lloyd
has "good" support for my particular scanner. After a
few
Post by Adam Lloyd
Post by Adam Lloyd
attempts I
Post by Adam Lloyd
Post by Adam Lloyd
managed to get Xsane working on a raspberry pi 3
running with
Post by Adam Lloyd
Post by Adam Lloyd
stretch. I
Post by Adam Lloyd
was able to successfully scan a document! I would like
to
Post by Adam Lloyd
Post by Adam Lloyd
setup a dumb
Post by Adam Lloyd
Post by Adam Lloyd
terminal station, where the scanner sits in a corner
and is
Post by Adam Lloyd
idle.
Post by Adam Lloyd
Post by Adam Lloyd
Whenever some needs to scan a document they would hit
the
Post by Adam Lloyd
Post by Adam Lloyd
scan button
Post by Adam Lloyd
Post by Adam Lloyd
and the document would get moved to our home NAS. I
have
Post by Adam Lloyd
Post by Adam Lloyd
attempted to
Post by Adam Lloyd
Post by Adam Lloyd
get this setup working but without much luck.
Thanks,
Adam.
Continue reading on narkive:
Search results for '[sane-devel] SANE automation setup?' (Questions and Answers)
12
replies
Why do you believe profit is evil?
started 2013-03-21 09:08:34 UTC
politics
Loading...