scanbd- Scanner button monitoring daemon
scanbd [-c configfile ] [-f]
The manager mode of scanbd
that can be triggered by the -m
is not documented in this man-page but in scanbm
is a scanner button monitoring daemon that can trigger execution
of scripts when a button on a scanner is pressed. scanbd (the scanner button
daemon) opens and polls the scanner and therefore locks the device. So no
other application can access the device directly (open the /dev/..., or via
To enable scanning from applications, we use scanbm as a "proxy" for
saned to access the scanner from an application. scanbm listens for requests
on the saned network port for scanning requests. If a scan request arrives,
scanbm requests the scanbd daemon to release the scanner. Then it starts the
real saned which scans and sends the data back to the requesting application.
When the scanning is done and saned exits, the scanbm daemon tells scanbd to
resume polling the scanner.
scanbd polls the scanner regularly (the interval can be set in
) and monitors for any scanner button to be pressed. If it
detects a button press it triggers execution of the appropriate script as
defined in scanbd.conf
- -c configfile
- Use configfile instead of the default
/etc/scanbd/scanbd.conf configuration file.
- turn debug mode on. If specified, set the debug level to
1 = error
2 = warn
3 = info
4 - 7 = debug)
- -f --foreground
- Run scanbd in the foreground
- Stop polling and relase the scanner (used by scanbm
- Resume polling (used by scanbm )
- Rescan for available devices (useful when no automatic
detection is available (HAL, UDEV) )
scanbd and scanbm are configured trough scanbd.conf (/etc/scanbd/scanbd.conf).
The distributed scanbd.conf contains a detailed explantion of the
option can be used to override the default configuration file.