[sane-devel] scanbd with Fujitsu fi-7260 Scanner: need help
Dirk Meier
dirk.meier at gmx.de
Thu Jun 5 21:25:42 BST 2025
Hello,
I would finally like to use the buttons on my Fujitsu fi-7260 scanner. I have
found the program scanbd for this purpose.
The scanner has a selector switch for 10 positions, from 0 to 9. The positions
are transferred numerically. I checked this with scanimage -A:
~>sudo scanimage -A
[sudo] Passwort für root:
Output format is not set, using pnm as a default.
...
--function <int> [2] [hardware]
Function character on screen
...
With:
sudo scanbd -f -d7 the transfer to scanbd is also recognizable
(SCANBD_FUNCTION=2):
~> sudo scandb -f -d7 > tmp.txt
...
scanbd: trigger action for email for device fujitsu:fi-7280:1201263 with script
test.script
scanbd: get_sane_option_value
scanbd: Value of mode as string (len 7, hash -621353420): Lineart
scanbd: setting env: SCANBD_FUNCTION_MODE=Lineart
scanbd: get_sane_option_value
scanbd: setting env: SCANBD_FUNCTION=2
scanbd: setting env: PATH=/usr/sbin:/usr/bin:/sbin:/bin
scanbd: No PWD, setting env: PWD=/etc/scanbd
scanbd: setting env: USER=root
scanbd: setting env: HOME=/root
scanbd: setting env: SCANBD_DEVICE=fujitsu:fi-7280:1201263
scanbd: setting env: SCANBD_ACTION=email
scanbd: append string fujitsu:fi-7280:1201263 to signal scan_begin
scanbd: now sending signal scan_begin
scanbd: append string SCANBD_FUNCTION_MODE=Lineart to signal trigger
scanbd: append string SCANBD_FUNCTION=2 to signal trigger
scanbd: append string PATH=/usr/sbin:/usr/bin:/sbin:/bin to signal trigger
scanbd: append string PWD=/etc/scanbd to signal trigger
scanbd: append string USER=root to signal trigger
scanbd: append string HOME=/root to signal trigger
scanbd: append string SCANBD_DEVICE=fujitsu:fi-7280:1201263 to signal trigger
scanbd: append string SCANBD_ACTION=email to signal trigger
scanbd: now sending signal trigger
scanbd: now flushing the dbus
scanbd: unref the signal
scanbd: using relative script path: test.script, expanded to: /etc/scanbd/
test.script
scanbd: waiting for child: /etc/scanbd/test.script
scanbd: child /etc/scanbd/test.script exited with status: 0
scanbd: append string fujitsu:fi-7280:1201263 to signal scan_end
scanbd: now sending signal scan_end
scanbd: reopen device fujitsu:fi-7280:1201263
scanbd: get_sane_option_value
...
I have tried the following filters: “2”, “.*2.*”, “^2.*”, “.*2$” none of them
worked. Only when I use “.*” as a filter is the assigned script executed. But
continuously.
I don't know how the string to be filtered is actually structured, nor how I
can find out.
Scanbd version 1.5.1-lp155.3.1 is running on a Leap 15.5.
Can anyone help?
More information about the sane-devel
mailing list