scanbd(8)
π scanbd β the scanner button daemon π
ok bestie, gather round, because this one is genuinely iconic. this is scanbd(8), aka the Scanner button monitoring daemon. she sits there, she watches your scanner, and the second you poke a button she runs a script. no cap. π
β¨ SYNOPSIS β¨
Polling mode, babes:
scanbd [-c configfile ] [-f] [-d[debuglevel] ]
Manager-mode, lowkey a whole different vibe:
The manager mode of scanbd that can be triggered by the-moption is not documented in this man-page but inscanbm(8). so like, go read that one if that's what you're here for π
π¦ DESCRIPTION π¦
okay so scanbd is a scanner button monitoring daemon that can trigger execution of scripts when a button on a scanner is pressed. like, you press the button, she notices, she runs your script. main character energy fr fr.
the catch? 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 libusb, etc). yeah. she's possessive. it's giving only-child. π
so 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. teamwork!! π«Ά
scanbd polls the scanner regularly (the interval can be set in scanbd.conf) 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. periodt. π
πΈ OPTIONS πΈ
-cconfigfile,--config=configfile β use configfile instead of the default/etc/scanbd/scanbd.confconfiguration file. your config, your rules, bestie β¨-d[debuglevel],--debug[=debuglevel] β turn debug mode on. if specified, set the debug level to debuglevel:1= error2= warn3= info4-7= debug
-f,--foregroundβ runscanbdin the foreground. no hiding in the background, she's standing right there π
β SIGNALS β
SIGUSR1β stop polling and relase the scanner (used byscanbm). yes, "relase". we don't talk about it. πSIGUSR1β resume polling (used byscanbm). and yeah, she's listed twice in the original, and honestly? iconic. both facts are staying. πSIGHUPβ rescan for available devices (useful when no automatic detection is available (HAL,UDEV)). a little refresh, a little glow-up β¨
π MAIN SCANBD CONFIGURATION π
scanbd and scanbm are configured trough scanbd.conf (/etc/scanbd/scanbd.conf). the distributed scanbd.conf contains a detailed explantion of the configuration options. (yes, "explantion". she's doing her best and we love her for it. π)
the -c option can be used to override the default configuration file. slay.
π SEE ALSO π
scanbm(8)sane(7)saned(8)sane-dll(5)sane-net(5)/etc/scanbd/scanbd.confhttp://scanbd.sourceforge.net
π AUTHOR π
Louis Lagendijk β the legend, the moment, the blueprint π
and that's the whole page, bestie!! this was scanbd version 1.92, dated 02 Jan 2013. go forth and press buttons, you absolute icon π¦β¨π
π¦ where this page comes from
- debian bookworm: scanbd 1.5.1-6+b1 Β· GPL-2.0-or-later
- debian trixie: scanbd 1.5.1-7+b1 Β· GPL-2.0-or-later
- nixos 26.05: scanbd 1.5.1
- nixpkgs unstable: scanbd 1.5.1
- ubuntu jammy: scanbd 1.5.1-6build1 Β· GPL-2.0-or-later
- ubuntu noble: scanbd 1.5.1-7 Β· GPL-2.0-or-later
- ubuntu questing: scanbd 1.5.1-7
- ubuntu resolute: scanbd 1.5.1-7build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms