Re: [sane-devel] scanbd occasionally ignores scanner button presses

2014-05-17 Thread Milan Knížek
Hallo Wilhelm,

Wilhelm píše v Pá 16. 05. 2014 v 14:08 +0200:
 Hi Milan,
 
 Am 16.05.2014 09:38, schrieb Milan Knížek:
  
  I have yet to confirm it by further testing, but it seems that I can
  trigger the stale status of the scanbd by repeatedly pressing the
  scanner button (e.g. the PDF merge button, which does not really scan
  anything) in a quick sequence.
  

Well, it seems I can reproduce it reliably by repeatedly pressing a
button on my CanoScan 9000F before the child (action) process exits. I
do not have access to another scanner to test if this is a common
behaviour or not.
  
  Is there any SIGNAL I could send to scanbd process to refresh itself
  without the need to restart scanbd.service?
 
 Try to send SIGUSR1 to stop all polling and then SIGUSR2 to restart all
 polling.

The signals were caught by the process and it responded as described,
however, it did not resolve the bug.

I will report this behaviour in the Discussion forum of
Sourceforge.net / scanbd so that it does not get lost.

regards,
Milan


-- 
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] scanbd occasionally ignores scanner button presses

2014-05-16 Thread Milan Knížek
Hello devs!

I have setup scanbd to poll CanoScan 9000F button presses (Arch Linux,
x86_64, sane-git from 2013-07-08, scanbd 1.3.1), scanbd.service and
scanbm.socket are run through systemd unit files.

It usually works just fine, but randomly scanbd completely ignores the
button presses - usually, it does not even help to switch the scanner
off/on. The only reliable solution so far is to restart the
scanbd.service.

I increased the debug level to 3 and watched syslog for messages when
scanbd operates normally and when it ignores the presses. I could not
find anything unusual in the messages. Scanbd continues to send lot of
repeated messages (like in normal state), but pressing a button does not
log any messages anymore.

I have yet to confirm it by further testing, but it seems that I can
trigger the stale status of the scanbd by repeatedly pressing the
scanner button (e.g. the PDF merge button, which does not really scan
anything) in a quick sequence.

Is this a known behaviour? How can I debug it further?

Is there any SIGNAL I could send to scanbd process to refresh itself
without the need to restart scanbd.service?

At the moment, I implemented a workaround by killing (SIGKILL) the
scanbd process every time the button is pressed and restarting
scanbd.service (at the end of the action script).

regards,
Milan

-- 
http://milan-knizek.net/
About linux and photography (Czech only)
O linuxu a fotografování




-- 
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