<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello Wilhelm,<br>
    <br>
    it's me again. The output of syslog led me to the config files again
    and I found that I left "lp" as goup in scanbd.conf.<br>
    <br>
    When I changed "goup = lp" to "group = scanner" I can now run:<br>
    <br>
    # scanbd -fd -c /usr/local/etc/scanbd/scanbd.conf<br>
    <br>
    and I see 28 (output says 29) options for my scanner in the output
    ((see output below)).<br>
    <br>
    As far as I understand the next step would be to look which (if any)
    of the options changes when I push the button.<br>
    Is there a way to let scanbd log every option change as I cannot see
    anything happen, when I press the button while scanbd is polling for
    option changes (see output below)?<br>
    <br>
    Also running in monitor mode like:<br>
    <br>
    # scanbd -m -fd -c /usr/local/etc/scanbd/scanbd.conf<br>
    <br>
    or <br>
    <br>
    # scanbd -m -c /usr/local/etc/scanbd/scanbd.conf<br>
    <br>
    do still give me the same output as in my first mail (saned exited
    with 0). But I did not investigate any further in this direction
    (yet) and assume that there are still some rights problems that I
    can hopefully solve on my own.<br>
    <br>
    I know you are busy, but any further help/hints with the options
    thing would be great as I also do not fully understand what is
    filtered when in scanbd.conf actions in the global section and in
    actions of the hp section and how it all fits together (e.g. I
    connot see any option containg "message" so what does "^message.*"
    filter do?). I read INSTALL but could not find any further doku on
    that.<br>
    <br>
    Thanks again for the support and regards,<br>
    Thomas<br>
    <br>
    root@server:/# scanbd -fd -c /usr/local/etc/scanbd/scanbd.conf<br>
    scanbd: debug on: level: 7<br>
    scanbd: dropping privs to uid saned<br>
    scanbd: dropping privs to gid scanner<br>
    scanbd: group scanner has member:<br>
    scanbd: saned<br>
    scanbd: me<br>
    scanbd: drop privileges to gid: 112<br>
    scanbd: Running as effective gid 112<br>
    scanbd: drop privileges to uid: 103<br>
    scanbd: Running as effective uid 103<br>
    scanbd: dbus_init<br>
    scanbd: dbus match
    type='signal',interface='org.freedesktop.Hal.Manager'<br>
    scanbd: sane version 1.0<br>
    scanbd: Scanning for local-only devices<br>
    <b>scanbd: found device: hp:libusb:001:013 Hewlett-Packard ScanJet
      62x0C flatbed scanner</b><br>
    scanbd: start_sane_threads<br>
    scanbd: Starting poll thread for hp:libusb:001:013<br>
    scanbd: Thread started for device hp:libusb:001:013<br>
    scanbd: start dbus thread<br>
    scanbd: udev init<br>
    scanbd: timeout: 500 ms<br>
    scanbd: sane_poll<br>
    scanbd: Iteration on dbus call<br>
    <b>scanbd: found 29 options for device hp:libusb:001:013</b><br>
    scanbd: sane_find_matching_options<br>
    scanbd: found 5 actions in section (null)<br>
    scanbd: checking action scan with filter: ^scan.*<br>
    scanbd: option[1]  for device hp:libusb:001:013 not of type
    BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
    scanbd: found active option[2] preview (type: 0) for device
    hp:libusb:001:013<br>
    scanbd: found active option[3] mode (type: 3) for device
    hp:libusb:001:013<br>
    scanbd: found active option[4] resolution (type: 1) for device
    hp:libusb:001:013<br>
    scanbd: option[5]  for device hp:libusb:001:013 not of type
    BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
    scanbd: found active option[6] brightness (type: 1) for device
    hp:libusb:001:013<br>
    scanbd: found active option[7] contrast (type: 1) for device
    hp:libusb:001:013<br>
    scanbd: found active option[8] auto-threshold (type: 0) for device
    hp:libusb:001:013<br>
    scanbd: option[9]  for device hp:libusb:001:013 not of type
    BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
    scanbd: found active option[10] custom-gamma (type: 0) for device
    hp:libusb:001:013<br>
    scanbd: found active option[12] matrix-type (type: 3) for device
    hp:libusb:001:013<br>
    scanbd: found active option[15] speed (type: 3) for device
    hp:libusb:001:013<br>
    scanbd: found active option[18] source (type: 3) for device
    hp:libusb:001:013<br>
    scanbd: found active option[19] button-wait (type: 0) for device
    hp:libusb:001:013<br>
    scanbd: found active option[20] lamp-off (type: 4) for device
    hp:libusb:001:013<br>
    scanbd: found active option[21] change-document (type: 4) for device
    hp:libusb:001:013<br>
    scanbd: option[22]  for device hp:libusb:001:013 not of type
    BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
    scanbd: found active option[23] tl-x (type: 2) for device
    hp:libusb:001:013<br>
    scanbd: found active option[24] tl-y (type: 2) for device
    hp:libusb:001:013<br>
    scanbd: found active option[25] br-x (type: 2) for device
    hp:libusb:001:013<br>
    scanbd: found active option[26] br-y (type: 2) for device
    hp:libusb:001:013<br>
    scanbd: found active option[27] mirror-horizontal (type: 3) for
    device hp:libusb:001:013<br>
    scanbd: found active option[28] mirror-vertical (type: 3) for device
    hp:libusb:001:013<br>
    scanbd: checking action email with filter: ^email$<br>
    scanbd: option[1]  for device hp:libusb:001:013 not of type
    BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
    scanbd: found active option[2] preview (type: 0) for device
    hp:libusb:001:013<br>
    scanbd: found active option[3] mode (type: 3) for device
    hp:libusb:001:013<br>
    ...<br>
    scanbd: found active option[25] br-x (type: 2) for device
    hp:libusb:001:013<br>
    scanbd: found active option[26] br-y (type: 2) for device
    hp:libusb:001:013<br>
    scanbd: found active option[27] mirror-horizontal (type: 3) for
    device hp:libusb:001:013<br>
    scanbd: found active option[28] mirror-vertical (type: 3) for device
    hp:libusb:001:013<br>
    scanbd: sane_find_matching_functions<br>
    scanbd: no matching functions in section hp<br>
    scanbd: timeout: 500 ms<br>
    scanbd: Start the polling for device hp:libusb:001:013<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    scanbd: Iteration on dbus call<br>
    scanbd: polling thread for hp:libusb:001:013 cancellation point<br>
    scanbd: polling device hp:libusb:001:013<br>
    scanbd: get_sane_option_value<br>
    scanbd: checking option preview number 2 (0) for device
    hp:libusb:001:013: value: 0<br>
    ^Cscanbd: sig_term/int_handler called with signal 2<br>
    scanbd: stop_sane_threads<br>
    scanbd: stopping poll thread for device hp:libusb:001:013<br>
    scanbd: waiting for poll thread for device hp:libusb:001:013<br>
    scanbd: sane_thread_cleanup_mutex<br>
    scanbd: closing device hp:libusb:001:013<br>
    scanbd: freeing opt ressources for device hp:libusb:001:013 thread<br>
    scanbd: freeing funtion ressources for device hp:libusb:001:013
    thread<br>
    scanbd: stop dbus thread<br>
    scanbd: join dbus thread<br>
    scanbd: stop udev thread<br>
    scanbd: cleanup device handler<br>
    scanbd: join udev thread<br>
    scanbd: close udev monitor<br>
    scanbd: close udev<br>
    scanbd: exiting scanbd<br>
    <br>
  </body>
</html>