<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/8/21 Wilhelm <span dir="ltr"><<a href="mailto:wilhelm.meier@fh-kl.de" target="_blank">wilhelm.meier@fh-kl.de</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<snip><br><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5">
<br></div></div>
    /usr/local/sbin/scanbd/dll.__<u></u>conf<br>
</blockquote>
<br>
<br>
what is the contents of this file?<br>
<br>
<br></div></blockquote><div>The directory /usr/local/sbin/scanbd does not exist. I think you mean /usr/local/etc/scanbd. These are the items in that directory:<br><br></div><div>abaton.conf         bh.conf         coolscan3.conf     dll.d         genesys.conf     hp.conf       ma1509.conf    mustek_usb.conf  plustek_pp.conf  scanbd.conf     st400.conf    test.script<br>
action.script         canon630u.conf  coolscan.conf     dmc.conf     geniusvp2.conf  hpsj5s.conf   magicolor.conf    nec.conf     qcam.conf      scanner.d     stv680.conf    u12.conf<br>agfafocus.conf         canon.conf      dc210.conf         epjitsu.conf     gphoto2.conf     hs2p.conf     matsushita.conf    net.conf     ricoh.conf      sceptre.conf     tamarack.conf    umax1220u.conf<br>
apple.conf         canon_dr.conf   dc240.conf         epson2.conf     gt68xx.conf     ibm.conf      microtek2.conf    p5.conf         rts8891.conf      sharp.conf     teco1.conf    umax.conf<br>artec.conf         canon_pp.conf   dc25.conf         epson.conf     hp3900.conf     kodak.conf    microtek.conf    pie.conf     s9036.conf      sm3840.conf     teco2.conf    umax_pp.conf<br>
artec_eplus48u.conf  cardscan.conf   dell1600n_net.conf  example.script  hp4200.conf     leo.conf      mustek.conf    pixma.conf     saned.conf      snapscan.conf  teco3.conf    v4l.conf<br>avision.conf         coolscan2.conf  dll.conf         fujitsu.conf     hp5400.conf     lexmark.conf  mustek_pp.conf    plustek.conf     scanadf.script   sp15c.conf     test.conf    xerox_mfp.conf<br>
<br></div><div>Which one do you need to see? I already showed you dll.conf.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
<br>
<br>
Ok, that seems to help. Maybe the readme file should be more clear that<br>
you need to copy the config files and not the directory "sane.d" in<br>
here. scanbd seems to work. However, sane does not recognize the scanner:<br>
<br>
scanimage: no SANE devices found<br>
<br>
Any idea what can be wrong?<br>
<br></div>
    /usr/local/etc/scanbd/scanbd._<u></u>_conf<div><div class="h5"><br></div></div></blockquote></div></blockquote><div><br></div><div>This file does not exist. I only have /usr/local/etc/scanbd/scanbd.conf as shown in my previous mail:<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div class="h5">
<br>
# global settings<br>
global {<br>
         # turn on debugging<br>
<br>
         # log to console<br>
         debug   = true<br>
<br>
         # debug logging<br>
         # 1=error, 2=warn, 3=info, 4-7=debug<br>
         debug-level = 7<br>
<br>
         # drop priviliges to this user<br>
         #=============================<br>
         # Linux:<br>
         # user    = saned # root<br>
         # *BSD<br>
         # user    = root<br>
         user    = saned<br>
<br>
         # Group to be used<br>
         #=================<br>
         # Linux (most distributions use the lp group to access scanners)<br>
         # group   = lp<br>
         # ArchLinux (ArchLinux uses the scanner group)<br>
         # group = scanner<br>
         #<br>
         # *BSD (no group lp here, use daemon instead)<br>
         # group   = daemon # root<br>
         #<br>
         group   = saned<br>
         # the saned executable for manager-mode<br>
         saned   = "/usr/sbin/saned"<br>
         saned_opt  = {} # string-list<br>
         saned_env  = { "SANE_CONFIG_DIR=/usr/local/<u></u>etc/scanbd" } # list<br>
of environment vars for saned<br>
<br>
         # Scriptdir specifies where scanbs normally looks for scripts.<br>
         # The scriptdir option can be defined as:<br>
         #   - a path relative to the configuations (<path>/etc/scanbd)<br>
directory<br>
         #   - an abosolute path<br>
         # Examples:<br>
         # scriptdir = scripts<br>
         # sets scriptdir to <path>/etc/scripts.<br>
         # scriptdir = /some/path<br>
         # sets scriptdir to the specified absolute path<br>
         # Default scriptdir is <path>/etc/scanbd, this is normally<br>
appropriate<br>
         # scriptdir =<br>
<br>
         # scanbuttond_backends_dir sets the path where scanbd looks for<br>
the scanbuttond backends<br>
         # It can be defined as relative path, starting from the scanbd<br>
config directory or<br>
         # as an absolute path<br>
         # Default is <libdir>/scanbd/scanbutond/<u></u>backends<br>
         # Example<br>
         # scanbuttond_backends_dir =<br>
"/usr/local/lib/scanbd/<u></u>scanbuttond/backends"<br>
<br>
         # poll timeout in [ms]<br>
         # (for polling the devices)<br>
         timeout = 500<br>
<br>
         pidfile = "/var/run/scanbd.pid"<br>
<br>
         # env-vars for the scripts<br>
         environment {<br>
                 # pass the device label as below in this env-var<br>
                 device = "SCANBD_DEVICE"<br>
                 # pass the action label as below in this env-var<br>
                 action = "SCANBD_ACTION"<br>
         }<br>
<br>
         # function definitions<br>
         # values of the options are simply passed via env-vars<br>
<br>
         function function_knob {<br>
                 filter = "^message.*"<br>
                 desc   = "The value of the function knob / wheel /<br>
selector"<br>
                 env    = "SCANBD_FUNCTION"<br>
         }<br>
         function function_mode {<br>
                 filter = "^mode.*"<br>
                 desc   = "Color mode"<br>
                 env    = "SCANBD_FUNCTION_MODE"<br>
         }<br>
<br>
         multiple_actions = true # allow multiple actions per option (up<br>
to the total amount of options)<br>
         # action definitions<br>
         # if the filter matches and the value changes<br>
         # from from-value to to-value,<br>
         # <script> is executed<br>
         # <script> is the full pathname (do not include any parameters)<br>
         # if parameters are needed, write a script<br>
<br>
         # since we can have only a most one action for each option, the<br>
action-script<br>
         # can use the function definition (see above) to distinguish<br>
different tasks<br>
         # (e.g. use the env-var SCANBD_FUNCTION defined above)<br>
<br>
         action scan {<br>
                 filter = "^scan.*"<br>
                 numerical-trigger {<br>
                         from-value = 1<br>
                         to-value   = 0<br>
                 }<br>
                 desc   = "Scan to file"<br>
                 # script must be an relative path starting from<br>
scriptdir (see above),<br>
                 # or an absolute pathname.<br>
                 # It must contain the path to the action script without<br>
arguments<br>
                 # Absolute path example: script = "/some/path/foo.script<br>
                 script = "test.script"<br>
         }<br>
         action email {<br>
                 filter = "^email$"<br>
                string-trigger {<br>
                         from-value  = ""<br>
                         to-value    = "^email.*"<br>
                 }<br>
                 desc   = "Scan to email"<br>
                 # script must be an relative path starting from<br>
scriptdir (see above),<br>
                 # or an absolute pathname.<br>
                 # It must contain the path to the action script without<br>
arguments<br>
                 # Absolute path example: script = "/some/path/foo.script<br>
                 script = "test.script"<br>
         }<br>
         action copy {<br>
                 filter = "^copy$"<br>
                 string-trigger {<br>
                         from-value  = ""<br>
                         to-value    = "^copy.*"<br>
                 }<br>
                 desc   = "Copy to printer"<br>
                 # script must be an relative path starting from<br>
scriptdir (see above),<br>
                 # or an absolute pathname.<br>
                 # It must contain the path to the action script without<br>
arguments<br>
                 # Absolute path example: script = "/some/path/foo.script<br>
                 script = "test.script"<br>
         }<br>
         action preview {<br>
                 filter = "^preview$"<br>
                 numerical-trigger {<br>
                         from-value = 1<br>
                         to-value   = 0<br>
                 }<br>
                 desc   = "Preview"<br>
                 # script must be an relative path starting from<br>
scriptdir (see above),<br>
                 # or an absolute pathname.<br>
                 # It must contain the path to the action script without<br>
arguments<br>
                 # Absolute path example: script = "/some/path/foo.script<br>
                 script = "test.script"<br>
         }<br>
         action globaltest {<br>
                 filter = "^message.*"<br>
                 desc   = "Test (print all env vars)"<br>
                 # script must be an relative path starting from<br>
scriptdir (see above),<br>
                 # or an absolute pathname.<br>
                 # It must contain the path to the action script without<br>
arguments<br>
                 # Absolute path example: script = "/some/path/foo.script<br>
                 script = "test.script"<br>
         }<br>
}<br>
<br>
# include<br>
# include another file at this point. This may only occur outside<br>
general and devices blocks<br>
# an include statement may be relative (to the direcory where<br>
scanbd.conf is located or aboslute<br>
# include("scanner.d/myscanner.<u></u>conf")<br>
# include("/my/long/path/<u></u>myscanner.conf")<br>
<br>
# devices<br>
# each device can have actions and functions, you can disable not<br>
relevant devices<br>
include(scanner.d/avision.<u></u>conf)<br>
include(scanner.d/fujitsu.<u></u>conf)<br>
include(scanner.d/hp.conf)<br>
include(scanner.d/pixma.conf)<br>
include(scanner.d/snapscan.<u></u>conf)<br>
include(scanner.d/canon.conf)<br>
<br>
    and show the env-vars for the user starting the scanbd (root).<br>
<br>
<br>
TERM=xterm<br>
SHELL=/bin/bash<br>
OLDPWD=/root<br>
SSH_TTY=/dev/pts/0<br>
USER=root<br>
MAIL=/var/mail/root<br>
PATH=/usr/local/sbin:/usr/<u></u>local/bin:/usr/sbin:/usr/bin:/<u></u>sbin:/bin<br>
PWD=/usr/local/etc/scanbd<br>
LANG=en_US.UTF-8<br>
SHLVL=1<br>
HOME=/root<br>
LOGNAME=root<br>
SANE_CONFIG_DIR=/usr/local/<u></u>etc/scanbd<br>
_=/usr/bin/env<br>
<br>
<br>
<br>
<br>
        Thanks for helping me out!<br>
<br>
        /usr/local/sbin/scanbd: foreground<br>
        /usr/local/sbin/scanbd: config-file:<br></div></div>
        /usr/local/etc/scanbd/scanbd._<u></u>_conf<br>
        /usr/local/sbin/scanbd: reading config file<br>
        /usr/local/etc/scanbd/scanbd._<u></u>_conf<div class="im"><br>
        /usr/local/sbin/scanbd: debug on: level: 7<br>
        /usr/local/sbin/scanbd: dropping privs to uid saned<br>
        /usr/local/sbin/scanbd: dropping privs to gid saned<br>
        /usr/local/sbin/scanbd: drop privileges to gid: 109<br>
        /usr/local/sbin/scanbd: Running as effective gid 109<br>
        /usr/local/sbin/scanbd: drop privileges to uid: 104<br>
        /usr/local/sbin/scanbd: Running as effective uid 104<br>
        /usr/local/sbin/scanbd: dbus_init<br>
        /usr/local/sbin/scanbd: dbus match<br></div>
        type='signal',interface='org._<u></u>_freedesktop.Hal.Manager'<div class="im"><br>
        /usr/local/sbin/scanbd: sane version 1.0<br>
        /usr/local/sbin/scanbd: Scanning for local-only devices<br>
        /usr/local/sbin/scanbd: start_sane_threads<br>
        /usr/local/sbin/scanbd: start dbus thread<br>
        /usr/local/sbin/scanbd: timeout: 500 ms<br>
        /usr/local/sbin/scanbd: Iteration on dbus call<br>
        /usr/local/sbin/scanbd: udev init<br>
        /usr/local/sbin/scanbd: get udev monitor<br>
        libudev: udev_monitor_enable_receiving: bind failed: Operation<br>
        not permitted<br>
        /usr/local/sbin/scanbd: Can't enable udev receiving<br>
        /usr/local/sbin/scanbd: Can't init udev<br>
        /usr/local/sbin/scanbd: Iteration on dbus call<br>
        /usr/local/sbin/scanbd: Iteration on dbus call<br>
        /usr/local/sbin/scanbd: Iteration on dbus call<br>
<br>
        --<br>
        Kind Regards,<br>
        Sander Devrieze<br>
<br>
<br>
<br>
<br>
    --<br>
    Wilhelm<br></div>
    <a href="mailto:w.meier@unix.net" target="_blank">w.meier@unix.net</a> <mailto:<a href="mailto:w.meier@unix.net" target="_blank">w.meier@unix.net</a>><br>
<br>
<br><span class=""><font color="#888888">
</font></span></blockquote><span class=""><font color="#888888">
<br>
<br>
-- <br>
Wilhelm<br>
<a href="mailto:w.meier@unix.net" target="_blank">w.meier@unix.net</a><br>
</font></span></div></blockquote></div><br></div></div>