Re: [sane-devel] Raspbian Jessie - scanbd scripting issue

2015-03-31 Thread RainerF
Wilhelm,

I wasn't sure what you meant with
Wilhelm Meier-2 wrote
> So please change the bool-expression in this if() to trueand test, please.

So I commented the outer if statementand recompiled. That's working now for
all buttons.

Thanks a lot for your efforts!

Kind regards,
Rainer



--
View this message in context: 
http://sane.10972.n7.nabble.com/Raspbian-Jessie-scanbd-scripting-issue-tp19611p19625.html
Sent from the SANE - Dev mailing list archive at Nabble.com.-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Raspbian Jessie - scanbd scripting issue

2015-03-31 Thread RainerF
this line is printed in the logging data. The backend seems to work properly
as well. Its just a guess: either there is no value change for button 1 and
4 or the values are not numerical. (?)
I assume the hardware is ok as well, because I used the old scanbuttend with
Debian Wheezy so far, and there scripts were executed for all buttons.

Anyway - thank you for your support. I think there will be no other way to
understand what's going on unless I've debugged the application.



--
View this message in context: 
http://sane.10972.n7.nabble.com/Raspbian-Jessie-scanbd-scripting-issue-tp19611p19622.html
Sent from the SANE - Dev mailing list archive at Nabble.com.

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Raspbian Jessie - scanbd scripting issue

2015-03-31 Thread RainerF
Wilhelm,

thank you for taking the time to look into these issues. Following your
advise I had a look into the source code and tried to understand, what
happens in case, when e.g. button 3 is pressed and compared the logs with
the information by pressing e.g. button 4 (log file excerpt - see below).

The last common action for both button events is this logging
information:respectiveThe message has been generated in file
scanbuttond_wrapper.c in line 519 (source version 1.4.2).Next follows this
if statement:Within the if statement the next logging message is generated
and a new thread, where further action for script execution seems to be
taken. The logging information is only printed for button 3! Obviously the
if condition is false for button 4. I will try to debug this (I have no
experience with debugging multi-threaded code), hoping to get closer to the
problem, why no script is executed for button 1 and 4 - or do you already
have an idea, what might be wrong?

Kind regards,
Rainer.
syslog excerpt
button 4 pressed

button 3 pressed




--
View this message in context: 
http://sane.10972.n7.nabble.com/Raspbian-Jessie-scanbd-scripting-issue-tp19611p19620.html
Sent from the SANE - Dev mailing list archive at Nabble.com.-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] Raspbian Jessie - scanbd scripting issue

2015-03-30 Thread RainerF
I tried to configure scanbd for an EPSON Perfection 1670 on a Raspbian Jessie
system. First I installed scanbd form the Raspbian package repository, but
this version seems to be compiled for sane backends support only, which
don't recognise button pressed events on my scanner. Then I compiled scanbd
from  source
  
with the old scanbutton backends support. That's working, but there are two
issues:
1) only two buttons invoke script execution
The scanner has four buttons, but currently scripts are only executed for
button 2 (copy) and button 3(email). I would like to use at least the scan
button (= button 4) as well. Within the syslog I can seethat also for button
1 and button 4 there is a reaction, just no script will be executed. In
scanbd.confI noticed two kind of checks for button pressed event handling,
one, where a string change is evaluated, the other, where an integer value
changes.

Might this be misconfigured?
How can I check, which string has been send from the scanbuttond backend?

Remark: the button numbering seems to be in reverse order, for button 3 is
labeled with a printer icon, button 2 with a letter icon.   
2) scanimage reports 'no scan device'
When I executeI always get the information that no scan device was
found. I would have expected something likewhich was the output, when scanbd
was installed from the Raspbian package repository. I thought, scanimage
would request a scan via sane port 6566, observed by scanbm, which would
then forward the request to the 'real' saned.
Am I wrong with this assumption?

I attached my configuration and a part of the syslog file.

Thanks in advance for any kind of assistance,which might help to solve the
above mentined issues.

Cheers, Rainer.

---
configuration files
/usr/local/etc/scanbd/scanbd.conf (only changes from default):
sudo cp scanbd_dbus.conf /etc/dbus-1/system.d/
this file is copied "as is" from the integration folder
sudo nano /lib/systemd/system/scanbd.service (only changes from default):
syslog (excerpt):




--
View this message in context: 
http://sane.10972.n7.nabble.com/Raspbian-Jessie-scanbd-scripting-issue-tp19611.html
Sent from the SANE - Dev mailing list archive at Nabble.com.-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org