[sane-devel] scanbd with old udev version

Wilhelm wilhelm.meier at fh-kl.de
Thu Aug 22 05:33:10 UTC 2013

Am 21.08.2013 23:27, schrieb Sander Devrieze:
> 2013/8/21 Wilhelm <wilhelm.meier at fh-kl.de <mailto:wilhelm.meier at fh-kl.de>>
>     Am 21.08.2013 16:04, schrieb Sander Devrieze:
>         2013/8/21 Wilhelm <wilhelm.meier at fh-kl.de
>         <mailto:wilhelm.meier at fh-kl.de> <mailto:wilhelm.meier at fh-kl.de
>         <mailto:wilhelm.meier at fh-kl.de>>
> <snip>
>     Mmh, looks good.
>     So, if scanimage finds the scanner (started with the uid/gid as in
>     scanbd.conf), scanbd should find it too, if started as root and the
>     env-var SANE_CONFIG_DIR set.
> Scanimage does not find the scanner right now. It did only find the
> scanner when not using the net backend os sane.

That's ok. For a desktop machine using scanbd and local scanning apps 
(like scanimage), scanbd / scanbm must be running. Please read 0.1) 
solution from the README.txt: scanbm acts as a proxy for saned.

> In that case, the
> genesys backend was immediately chosen. What else can I try?

The below log shows, that scanbd recognizes the scanner and his options. 
So now you have to figure out which buttons correlate to which option 
value changes: just press a button and watch the log. Then you can tweak 
the scripts for the button actions.

> Line in /etc/passwd
> saned:x:104:109::/home/saned:/bin/false
> This uid and gid do match with scandb:
> /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: found device: genesys:libusb:001:005 Canon LiDE
> 110 flatbed scanner
> /usr/local/sbin/scanbd: start_sane_threads
> /usr/local/sbin/scanbd: Starting poll thread for genesys:libusb:001:005
> /usr/local/sbin/scanbd: sane_poll
> /usr/local/sbin/scanbd: Thread started for device genesys:libusb:001:005
> /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: found 41 options for device genesys:libusb:001:005
> /usr/local/sbin/scanbd: sane_find_matching_options
> /usr/local/sbin/scanbd: found 5 actions in section (null)

w.meier at unix.net

More information about the sane-devel mailing list