"/usr/sbin/scanbd: stop_sane_threads" - delays the start of scan for ~30s, after button was pressed
Hello,
I'm running Archlinux and try to get the scanbd package working.
So far everything works, I can use the tools like simple-scan or scanimage without problems, e.g.:
SANE_DEBUG_DLL=255 scanimage --format=tiff --mode=Lineart --resolution=300 > $(date +%s)_scan.tiff
SANE_DEBUG_DLL=255 scanimage --format=tiff --mode=Lineart --resolution=300 > $(date +%s)_scan.tiff[10:27:08.260776] [sanei_debug] Setting debug level of dll to 255.
[10:27:08.260944] [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.3.1
[10:27:08.261025] [dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[10:27:08.261090] [dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d'
[10:27:08.261160] [dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d'
[10:27:08.261237] [dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/hpaio
[10:27:08.261327] [dll] sane_init/read_config: reading dll.d/hpaio
[10:27:08.261431] [dll] sane_init/read_dlld: done.
[10:27:08.261628] [dll] sane_init/read_config: reading dll.conf
[10:27:08.261815] [dll] add_backend: adding backend `net'
[10:27:08.261994] [dll] sane_get_devices
[10:27:08.262044] [dll] load: searching backend `net' in `/usr/lib/sane'
[10:27:08.262103] [dll] load: trying to load `/usr/lib/sane/libsane-net.so.1'
[10:27:08.262179] [dll] load: dlopen()ing `/usr/lib/sane/libsane-net.so.1'
[10:27:08.265227] [dll] init: initializing backend `net'
[10:27:08.296117] [dll] init: backend `net' is version 1.3.1
[10:27:08.954721] [dll] sane_get_devices: found 1 devices
[10:27:08.954742] [dll] sane_open: trying to open `net:localhost:fujitsu:fi-6130dj:138709'
[10:27:09.000911] [dll] sane_open: open successful
[10:27:09.000938] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=0)
[10:27:09.000949] [dll] sane_control_option(handle=0x5804aa6605c0,option=0,action=0,value=0x7fff2cdae024,info=(nil))
[10:27:09.001016] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=0)
[10:27:09.001029] [dll] sane_control_option(handle=0x5804aa6605c0,option=0,action=0,value=0x7fff2cdadf30,info=(nil))
[10:27:09.001081] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=1)
[10:27:09.001093] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=2)
[10:27:09.001101] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=3)
[10:27:09.001108] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=4)
[10:27:09.001116] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=5)
[10:27:09.001123] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=6)
[10:27:09.001130] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=7)
[10:27:09.001138] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=8)
[10:27:09.001145] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=9)
[10:27:09.001152] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=10)
[10:27:09.001159] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=11)
[10:27:09.001167] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=12)
[10:27:09.001174] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=13)
[10:27:09.001181] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=14)
[10:27:09.001189] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=15)
[10:27:09.001196] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=16)
[10:27:09.001203] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=17)
[10:27:09.001210] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=18)
[10:27:09.001218] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=19)
[10:27:09.001225] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=20)
[10:27:09.001232] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=21)
[10:27:09.001239] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=22)
[10:27:09.001247] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=23)
[10:27:09.001254] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=24)
[10:27:09.001261] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=25)
[10:27:09.001268] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=26)
[10:27:09.001276] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=27)
[10:27:09.001283] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=28)
[10:27:09.001290] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=29)
[10:27:09.001297] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=30)
[10:27:09.001305] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=31)
[10:27:09.001312] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=32)
[10:27:09.001319] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=33)
[10:27:09.001326] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=34)
[10:27:09.001333] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=35)
[10:27:09.001340] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=36)
[10:27:09.001348] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=37)
[10:27:09.001355] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=38)
[10:27:09.001362] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=39)
[10:27:09.001369] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=40)
[10:27:09.001377] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=41)
[10:27:09.001384] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=42)
[10:27:09.001391] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=43)
[10:27:09.001398] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=44)
[10:27:09.001405] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=45)
[10:27:09.001413] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=46)
[10:27:09.001420] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=47)
[10:27:09.001427] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=48)
[10:27:09.001434] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=49)
[10:27:09.001441] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=50)
[10:27:09.001449] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=51)
[10:27:09.001456] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=52)
[10:27:09.001463] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=53)
[10:27:09.001470] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=54)
[10:27:09.001477] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=55)
[10:27:09.001495] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=56)
[10:27:09.001505] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=57)
[10:27:09.001513] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=58)
[10:27:09.001520] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=59)
[10:27:09.001527] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=60)
[10:27:09.001535] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=61)
[10:27:09.001542] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=62)
[10:27:09.001549] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=63)
[10:27:09.001556] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=64)
[10:27:09.001563] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=65)
[10:27:09.001571] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=66)
[10:27:09.001578] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=67)
[10:27:09.001585] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=68)
[10:27:09.001592] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=69)
[10:27:09.001599] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=70)
[10:27:09.001611] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=71)
[10:27:09.001626] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=72)
[10:27:09.001634] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=73)
[10:27:09.001642] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=74)
[10:27:09.001649] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=75)
[10:27:09.001656] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=76)
[10:27:09.001663] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=77)
[10:27:09.001671] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=78)
[10:27:09.001678] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=79)
[10:27:09.001685] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=80)
[10:27:09.001692] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=81)
[10:27:09.001700] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=82)
[10:27:09.001707] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=83)
[10:27:09.001714] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=84)
[10:27:09.001721] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=85)
[10:27:09.001728] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=86)
[10:27:09.001736] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=87)
[10:27:09.001743] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=88)
[10:27:09.001750] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=89)
[10:27:09.001757] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=90)
[10:27:09.001764] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=91)
[10:27:09.001772] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=92)
[10:27:09.001779] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=93)
[10:27:09.001786] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=94)
[10:27:09.001793] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=95)
[10:27:09.001800] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=96)
[10:27:09.001807] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=97)
[10:27:09.001815] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=98)
[10:27:09.001822] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=99)
[10:27:09.001829] [dll] sane_control_option(handle=0x5804aa6605c0,option=10,action=0,value=0x5804950ef380,info=(nil))
[10:27:09.001881] [dll] sane_control_option(handle=0x5804aa6605c0,option=8,action=0,value=0x7fff2cdadf34,info=(nil))
[10:27:09.001934] [dll] sane_control_option(handle=0x5804aa6605c0,option=11,action=0,value=0x5804950ef384,info=(nil))
[10:27:09.001987] [dll] sane_control_option(handle=0x5804aa6605c0,option=9,action=0,value=0x7fff2cdadf34,info=(nil))
[10:27:09.002045] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=3)
[10:27:09.002058] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=3)
[10:27:09.002066] [dll] sane_control_option(handle=0x5804aa6605c0,option=3,action=1,value=0x5804aa6605e0,info=0x7fff2cdaded4)
[10:27:09.002122] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=4)
[10:27:09.002135] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=4)
[10:27:09.002143] [dll] sane_control_option(handle=0x5804aa6605c0,option=4,action=1,value=0x5804aa6605e0,info=0x7fff2cdaded4)
[10:27:09.002191] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=0)
[10:27:09.047939] [dll] sane_control_option(handle=0x5804aa6605c0,option=0,action=0,value=0x7fff2cdade80,info=(nil))
[10:27:09.048298] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=1)
[10:27:09.048353] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=2)
[10:27:09.048385] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=3)
[10:27:09.048419] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=4)
[10:27:09.048452] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=5)
[10:27:09.048483] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=6)
[10:27:09.048515] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=7)
[10:27:09.048546] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=8)
[10:27:09.048577] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=9)
[10:27:09.048608] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=10)
[10:27:09.048639] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=11)
[10:27:09.048671] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=12)
[10:27:09.048702] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=13)
[10:27:09.048733] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=14)
[10:27:09.048766] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=15)
[10:27:09.048797] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=16)
[10:27:09.048829] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=17)
[10:27:09.048861] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=18)
[10:27:09.048892] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=19)
[10:27:09.048923] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=20)
[10:27:09.048953] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=21)
[10:27:09.048983] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=22)
[10:27:09.049012] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=23)
[10:27:09.049045] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=24)
[10:27:09.049077] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=25)
[10:27:09.049109] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=26)
[10:27:09.049140] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=27)
[10:27:09.049171] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=28)
[10:27:09.049201] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=29)
[10:27:09.049230] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=30)
[10:27:09.049259] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=31)
[10:27:09.049292] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=32)
[10:27:09.049325] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=33)
[10:27:09.049364] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=34)
[10:27:09.049404] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=35)
[10:27:09.049440] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=36)
[10:27:09.049475] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=37)
[10:27:09.049511] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=38)
[10:27:09.049546] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=39)
[10:27:09.049581] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=40)
[10:27:09.049615] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=41)
[10:27:09.049651] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=42)
[10:27:09.049686] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=43)
[10:27:09.049722] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=44)
[10:27:09.049757] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=45)
[10:27:09.049792] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=46)
[10:27:09.049826] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=47)
[10:27:09.049861] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=48)
[10:27:09.049896] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=49)
[10:27:09.049929] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=50)
[10:27:09.049961] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=51)
[10:27:09.049994] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=52)
[10:27:09.050029] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=53)
[10:27:09.050063] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=54)
[10:27:09.050098] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=55)
[10:27:09.050134] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=56)
[10:27:09.050169] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=57)
[10:27:09.050203] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=58)
[10:27:09.050239] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=59)
[10:27:09.050273] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=60)
[10:27:09.050308] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=61)
[10:27:09.050343] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=62)
[10:27:09.050377] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=63)
[10:27:09.050412] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=64)
[10:27:09.050447] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=65)
[10:27:09.050481] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=66)
[10:27:09.050516] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=67)
[10:27:09.050552] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=68)
[10:27:09.050587] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=69)
[10:27:09.050623] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=70)
[10:27:09.050699] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=71)
[10:27:09.050737] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=72)
[10:27:09.050772] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=73)
[10:27:09.050808] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=74)
[10:27:09.050843] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=75)
[10:27:09.050878] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=76)
[10:27:09.050912] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=77)
[10:27:09.050946] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=78)
[10:27:09.050982] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=79)
[10:27:09.051116] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=80)
[10:27:09.051219] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=81)
[10:27:09.051252] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=82)
[10:27:09.051283] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=83)
[10:27:09.051314] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=84)
[10:27:09.051345] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=85)
[10:27:09.051383] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=86)
[10:27:09.051418] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=87)
[10:27:09.051453] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=88)
[10:27:09.051489] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=89)
[10:27:09.051518] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=90)
[10:27:09.051553] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=91)
[10:27:09.051588] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=92)
[10:27:09.051623] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=93)
[10:27:09.051658] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=94)
[10:27:09.051693] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=95)
[10:27:09.051728] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=96)
[10:27:09.051760] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=97)
[10:27:09.051796] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=98)
[10:27:09.051827] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=99)
[10:27:09.051859] [dll] sane_control_option(handle=0x5804aa6605c0,option=10,action=0,value=0x5804950ef380,info=(nil))
[10:27:09.052053] [dll] sane_control_option(handle=0x5804aa6605c0,option=8,action=0,value=0x7fff2cdade84,info=(nil))
[10:27:09.052211] [dll] sane_control_option(handle=0x5804aa6605c0,option=11,action=0,value=0x5804950ef384,info=(nil))
[10:27:09.052404] [dll] sane_control_option(handle=0x5804aa6605c0,option=9,action=0,value=0x7fff2cdade84,info=(nil))
[10:27:09.052597] [dll] sane_control_option(handle=0x5804aa6605c0,option=8,action=0,value=0x7fff2cdae080,info=(nil))
[10:27:09.052737] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=10)
[10:27:09.052779] [dll] sane_control_option(handle=0x5804aa6605c0,option=10,action=1,value=0x7fff2cdae060,info=0x7fff2cdadf34)
[10:27:09.052900] [dll] sane_control_option(handle=0x5804aa6605c0,option=9,action=0,value=0x7fff2cdae080,info=(nil))
[10:27:09.053031] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=11)
[10:27:09.053077] [dll] sane_control_option(handle=0x5804aa6605c0,option=11,action=1,value=0x7fff2cdae060,info=0x7fff2cdadf34)
[10:27:09.053202] [dll] sane_get_option_descriptor(handle=0x5804aa6605c0,option=4)
[10:27:09.053243] [dll] sane_control_option(handle=0x5804aa6605c0,option=4,action=0,value=0x7fff2cdadf40,info=(nil))
[10:27:09.053446] [dll] sane_start(handle=0x5804aa6605c0)
[10:27:10.384161] [dll] sane_get_parameters(handle=0x5804aa6605c0,params=0x7fff2cdae060)
[10:27:11.389291] [dll] sane_read(handle=0x5804aa6605c0,data=0x7224861db010,maxlen=1048576,lenp=0x7fff2cdae02c)
[10:27:11.390056] [dll] sane_read(handle=0x5804aa6605c0,data=0x7224861db010,maxlen=1048576,lenp=0x7fff2cdae02c)
[10:27:11.390392] [dll] sane_read(handle=0x5804aa6605c0,data=0x7224861db010,maxlen=1048576,lenp=0x7fff2cdae02c)
[10:27:11.714249] [dll] sane_read(handle=0x5804aa6605c0,data=0x7224861db010,maxlen=1048576,lenp=0x7fff2cdae02c)
[10:27:12.038880] [dll] sane_read(handle=0x5804aa6605c0,data=0x7224861db010,maxlen=1048576,lenp=0x7fff2cdae02c)
[10:27:12.350934] [dll] sane_read(handle=0x5804aa6605c0,data=0x7224861db010,maxlen=1048576,lenp=0x7fff2cdae02c)
[10:27:12.359097] [dll] sane_read(handle=0x5804aa6605c0,data=0x7224861db010,maxlen=1048576,lenp=0x7fff2cdae02c)
[10:27:12.359186] [dll] sane_read(handle=0x5804aa6605c0,data=0x7224861db010,maxlen=1048576,lenp=0x7fff2cdae02c)
[10:27:12.359403] [dll] sane_cancel(handle=0x5804aa6605c0)
[10:27:12.360508] [dll] sane_close(handle=0x5804aa6605c0)
[10:27:12.363313] [dll] sane_exit: exiting
[10:27:12.363380] [dll] sane_exit: calling backend `net's exit function
[10:27:12.365094] [dll] sane_exit: finished
Also the button press is recognized by scanbd, BUT there is a delay of approximately 30 seconds between the actual start of the scan and the detection of the button press.
In the logs one can see, that it stucks at: /usr/sbin/scanbd: stop_sane_threads: an action is active, waiting ... for approx. 30s:
Jan 15 09:50:40 L380arch scanbd[15117]: /usr/sbin/scanbd: stop_sane_threads: an action is active, waiting ...
Jan 15 09:51:08 L380arch scanbd[15172]: /etc/scanbd/scripts/fujitsu-fi6130.script: <A3D>Ended scan, with function: 1, for device fujitsu:fi-6130dj:138709
More detailed Log
Jan 15 09:50:39 L380arch scanbd[15141]: /etc/scanbd/scripts/fujitsu-fi6130.script: <A3D>Environment variables saved to /tmp/250115-095039.scanbd.script.env.Hwi
Jan 15 09:50:39 L380arch scanbd[15142]: /etc/scanbd/scripts/fujitsu-fi6130.script: <A3D>Starting scan, with function: 1, for device fujitsu:fi-6130dj:138709
Jan 15 09:50:39 L380arch scanbd[15143]: /etc/scanbd/scripts/fujitsu-fi6130.script: <A3D>Function 1 will be executed!
Jan 15 09:50:39 L380arch scanbd[15117]: /usr/sbin/scanbd: Iteration on dbus call
Jan 15 09:50:40 L380arch scanbd[15117]: /usr/sbin/scanbd: message_func
Jan 15 09:50:40 L380arch scanbd[15117]: /usr/sbin/scanbd: dbus_method_acquire
Jan 15 09:50:40 L380arch scanbd[15117]: /usr/sbin/scanbd: stop_sane_threads
Jan 15 09:50:40 L380arch scanbd[15117]: /usr/sbin/scanbd: stop_sane_threads: an action is active, waiting ...
Jan 15 09:51:08 L380arch scanbd[15172]: /etc/scanbd/scripts/fujitsu-fi6130.script: <A3D>Ended scan, with function: 1, for device fujitsu:fi-6130dj:138709
Jan 15 09:51:08 L380arch scanbd[15117]: /usr/sbin/scanbd: child /etc/scanbd/scripts/fujitsu-fi6130.script exited with status: 0
Jan 15 09:51:08 L380arch scanbd[15117]: /usr/sbin/scanbd: stopping poll thread for device fujitsu:fi-6130dj:138709
Jan 15 09:51:08 L380arch scanbd[15117]: /usr/sbin/scanbd: polling thread for fujitsu:fi-6130dj:138709, before cancellation point
Jan 15 09:51:08 L380arch scanbd[15117]: /usr/sbin/scanbd: polling thread for fujitsu:fi-6130dj:138709, after cancellation point
Is there any way, to get rid of this delay?
My Setup
sane 1.3.1-1
Name : sane
Version : 1.3.1-1
Description : Scanner Access Now Easy
Architecture : x86_64
URL : https://gitlab.com/sane-project/backends
Licenses : GPL-2.0-or-later LicenseRef-GPL-2.0-or-later-with-linking-exception
Groups : None
Provides : libsane.so=1-64
Depends On : bash cairo gcc-libs glibc libpng libieee1284 net-snmp v4l-utils avahi libavahi-client.so=3-64 libavahi-common.so=3-64 curl libcurl.so=4-64 glib2 libgobject-2.0.so=0-64 libgphoto2 libgphoto2.so=6-64 libgphoto2_port.so=12-64 libjpeg-turbo libjpeg.so=8-64 libtiff libtiff.so=6-64 libusb libusb-1.0.so=0-64 libxml2 libxml2.so=2-64 poppler-glib libpoppler-glib.so=8-64 systemd-libs libsystemd.so=0-64
Optional Deps : sane-airscan: for scanners working in driverless mode
Required By : colord-sane hplip-plugin scanbd-git simple-scan xsane
Optional For : hplip libreoffice-fresh
Conflicts With : None
Replaces : None
Installed Size : 18,50 MiB
Packager : David Runge <dvzrv@archlinux.org>
Build Date : Do 23 Mai 2024 23:21:28 CEST
Install Date : So 26 Mai 2024 12:58:10 CEST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
scanbd-git r224.f909458c-2 from AUR
Name : scanbd-git
Version : r224.f909458-2
Description : Scanner button daemon looking for scanner button pressed
Architecture : x86_64
URL : https://gitlab.com/sane-project/frontend/scanbd
Licenses : GPL2
Groups : None
Provides : None
Depends On : sane confuse libusb-compat
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 124,29 KiB
Packager : Unknown Packager
Build Date : Mo 13 Jan 2025 15:07:00 CET
Install Date : Mo 13 Jan 2025 15:07:26 CET
Install Reason : Explicitly installed
Install Script : No
Validated By : None
Sane config
❯ grep -v "#" /etc/sane.d/dll.conf
net
❯ grep -v "#" /etc/sane.d/net.conf
connect_timeout = 3
localhost
Scanbd config
❯ grep -v "#" /etc/scanbd/sane.d/dll.conf
fujitsu
hp
❯ cat /etc/scanbd/sane.d/net.conf
# This is the net backend config file.
## net backend options
# Timeout for the initial connection to saned. This will prevent the backend
# from blocking for several minutes trying to connect to an unresponsive
# saned host (network outage, host down, ...). Value in seconds.
# connect_timeout = 60
## saned hosts
# Each line names a host to attach to.
# If you list "localhost" then your backends can be accessed either
# directly or through the net backend. Going through the net backend
# may be necessary to access devices that need special privileges.
# localhost
❯ grep -v "#" /etc/scanbd/scanbd.conf
global {
debug = true
debug-level = 7
user = daemon
group = scanner
saned = "/usr/sbin/saned"
scriptdir = /etc/scanbd/scripts
timeout = 500
pidfile = "/run/scanbd.pid"
environment {
device = "SCANBD_DEVICE"
action = "SCANBD_ACTION"
}
function function_knob {
filter = "^message.*"
desc = "The value of the function knob / wheel / selector"
env = "SCANBD_FUNCTION"
}
function function_mode {
filter = "^mode.*"
desc = "Color mode"
env = "SCANBD_FUNCTION_MODE"
}
}
include("/etc/scanbd/scanner.d/fujitsu.conf")
❯ grep -v "#" /etc/scanbd/scanner.d/fujitsu.conf
device fujitsu {
desc = "Fujitsu scanner"
function function_knob {
filter = "^function.*"
desc = "The value of the function knob / wheel / selector"
env = "SCANBD_FUNCTION"
}
action scan {
filter = "^scan.*"
desc = "Scan to file"
script = "/etc/scanbd/scripts/fujitsu-fi6130.script"
}
}
❯ grep -v "#" /etc/scanbd/scripts/fujitsu-fi6130.script
timestamp=$(date +"%y%m%d-%H%M%S")
tmpfile=$(mktemp -t "${timestamp}.scanbd.script.env.XXX")
debugfile=$(mktemp -t "${timestamp}.scanbd.debug.XXX")
DEBUG=1
trap 'rm -f "$tmpfile"' EXIT
if /usr/bin/printenv > "$tmpfile"; then
logger -t "scanbd: $0" "<A3D>Environment variables saved to $tmpfile"
else
logger -t "scanbd: $0" "<A3D>Failed to write environment variables to $tmpfile"
exit 1
fi
FN_NR="${SCANBD_FUNCTION:-0}"
if ! [[ "$FN_NR" =~ ^[0-9]+$ ]] || [[ $FN_NR -lt 1 || $FN_NR -gt 10 ]]; then
logger -t "scanbd: $0" "<A3D>Invalid SCANBD_FUNCTION: $FN_NR"
exit 1
else
logger -t "scanbd: $0" "<A3D>Starting $SCANBD_ACTION, with function: $FN_NR, for device $SCANBD_DEVICE"
case "$FN_NR" in
1)
logger -t "scanbd: $0" "<A3D>Function 1 will be executed!"
[ "$DEBUG" -eq 1 ] && echo ""$(date +"%H:%M:%S") - Start scanning."" >> "$debugfile"
scanimage --format=tiff --mode=Lineart --resolution=300 > "/tmp/${timestamp}_scanned.tiff"
[ "$DEBUG" -eq 1 ] && echo ""$(date +"%H:%M:%S") - Stop scanning."" >> "$debugfile"
;;
2)
logger -t "scanbd: $0" "<A3D>Function 2 will be executed!"
;;
3|4|5|6|7|8|9|10)
logger -t "scanbd: $0" "<A3D>Function $FN_NR not implemented yet."
;;
*)
logger -t "scanbd: $0" "<A3D>Unknown scan function: $FN_NR"
;;
esac
logger -t "scanbd: $0" "<A3D>Ended $SCANBD_ACTION, with function: $FN_NR, for device $SCANBD_DEVICE"
exit 0
fi