[sane-devel] scanbd with old udev version

Wilhelm wilhelm.meier at fh-kl.de
Wed Aug 21 04:12:24 UTC 2013

Hi Sander,

Am 21.08.2013 00:40, schrieb Sander Devrieze:
> Hello,
> I am trying to convert a WD MyBook into a scanner server. Sane detects
> the scanner and I was able to scan, but I cannot get scanbd to work.

Which options did you use for configure?

> May this be related to the fact that I am using a *very* old udev
> version (0.125-7+lenny3) which cannot be upgraded?

On Lenny you should try usind hal instead of udev. But this is only 
resonsible for detecting removable devices. As a fallback scanbd can be 
signaled (using some udev-rule, e.g.), please check the docu.

> Check the debug
> output below. How can I get scanbd running on my system?

First of all scanbd doesn't detect any scanner. There may be various 
reasons. But most likely scanbd uses a wrong dll.conf.

Did you
export SANE_CONFIG_DIR=/usr/local/etc/scanbd ?

please show your configs:


and show the env-vars for the user starting the scanbd (root).

> Thanks for helping me out!
> /usr/local/sbin/scanbd: foreground
> /usr/local/sbin/scanbd: config-file: /usr/local/etc/scanbd/scanbd.conf
> /usr/local/sbin/scanbd: reading config file
> /usr/local/etc/scanbd/scanbd.conf
> /usr/local/sbin/scanbd: debug on: level: 7
> /usr/local/sbin/scanbd: dropping privs to uid saned
> /usr/local/sbin/scanbd: dropping privs to gid saned
> /usr/local/sbin/scanbd: drop privileges to gid: 109
> /usr/local/sbin/scanbd: Running as effective gid 109
> /usr/local/sbin/scanbd: drop privileges to uid: 104
> /usr/local/sbin/scanbd: Running as effective uid 104
> /usr/local/sbin/scanbd: dbus_init
> /usr/local/sbin/scanbd: dbus match
> type='signal',interface='org.freedesktop.Hal.Manager'
> /usr/local/sbin/scanbd: sane version 1.0
> /usr/local/sbin/scanbd: Scanning for local-only devices
> /usr/local/sbin/scanbd: start_sane_threads
> /usr/local/sbin/scanbd: start dbus thread
> /usr/local/sbin/scanbd: timeout: 500 ms
> /usr/local/sbin/scanbd: Iteration on dbus call
> /usr/local/sbin/scanbd: udev init
> /usr/local/sbin/scanbd: get udev monitor
> libudev: udev_monitor_enable_receiving: bind failed: Operation not permitted
> /usr/local/sbin/scanbd: Can't enable udev receiving
> /usr/local/sbin/scanbd: Can't init udev
> /usr/local/sbin/scanbd: Iteration on dbus call
> /usr/local/sbin/scanbd: Iteration on dbus call
> /usr/local/sbin/scanbd: Iteration on dbus call
> --
> Kind Regards,
> Sander Devrieze

w.meier at unix.net

More information about the sane-devel mailing list