[sane-devel] scanbd scanner button daemon

2011-11-11 Thread Wilhelm
Hi again,

Am 11.11.2011 17:46, schrieb Florian Litzinger:
 Hello,

 it's working like a charm now.

good to hear!

 Thank you for this great piece of software!

If you have any suggestions don't hesitate.


 Best Regards
 Florian


 Am 11.11.2011 11:25, schrieb Wilhelm:
 Am 11.11.2011 11:02, schrieb Florian Litzinger:
 Hello,

 I've attached the log file.

 ok, looks fine.

 The scanner is recognized an several options and buttons are found, e.g.
 these

 /usr/local/bin/scanbd: found active option[23] button-copy (type: 0) for
 device rts8891:libusb:/dev/usb:/dev/ugen4.2
 /usr/local/bin/scanbd: found active option[24] button-mail (type: 0) for
 device rts8891:libusb:/dev/usb:/dev/ugen4.2
 /usr/local/bin/scanbd: found active option[25] button-image-copy (type:
 0) for device rts8891:libusb:/dev/usb:/dev/ugen4.2
 /usr/local/bin/scanbd: found active option[26] button-www (type: 0) for
 device rts8891:libusb:/dev/usb:/dev/ugen4.2
 /usr/local/bin/scanbd: found active option[27] button-scan (type: 0) for
 device rts8891:libusb:/dev/usb:/dev/ugen4.2

 now you can define actions for these options, e.g.

 action copy {
 filter = ^button-copy$
 string-trigger {
 from-value = 
 to-value = ^copy.*
 }
 desc = Copy to printer
 # script must be an absolute pathname to the action script without
 arguments
 script = /usr/local/etc/scanbd/test.script
 }

 and then watch if you see any value changes when you press the scanner
 button. If that's ok you can define scripts to implement the actions.


 Thanks!

 Florian

 Am 11.11.2011 10:45, schrieb Wilhelm:
 Am 11.11.2011 10:16, schrieb Florian Litzinger:
 Hello,

 I'm trying to use the scanner button daemon on a FreeBSD 9 server. I
 configured the program according to the information provided in the
 INSTALL file, however, when trying to start the daemon using
 /usr/local/bin/scanbd -c /usr/local/etc/scanbd/scanbd.conf
 the following gets printed on stdout
 /usr/local/bin/scanbd: debug on: level: 7
 /usr/local/bin/scanbd: daemonize
 and then nothing more happens. ps also doesn't show any processes
 connected to scanbd (or saned, for that matter).

 Please start it in the foreground (-df) and post the output:

 /usr/local/bin/scanbd -df -c /usr/local/etc/scanbd/scanbd.conf

 The daemon is supposed to run under the saned user account, which
 apparently has sufficent rights to use the scanner device, as
 scanimage
 -L does list the scanner (it's a HP 4470c).
 Could you give me any hints on how to proceed and debug this issue? I
 also can't seem to find the log files mentioned in scanbd.conf - are
 these messages supposed to appear in the syslog?

 Thank you very much.

 Best Regards
 Florian






-- 
Wilhelm




[sane-devel] scanbd - scanner button daemon

2008-12-15 Thread Wilhelm Meier
Hello everybody,

some time ago I was looking for a universal scanner-button-daemon. I 
found some approaches (sanebuttonsd, KSannerButtons, scanmonitord), 
but none of them convinced me. 

So I sat down and wrote an own version.

The problems of the above mentioned old solutions were:

1) no hal support
2) no dbus support
3) no support to interact with saned

The new scanbd fulfills the above points (until now in a somewhat 
limited extent):

1) scanbd uses hal dbus-interface to detect new scanners or scanners 
that vanished (usb plugoff)

2) scanbd uses dbus to sendout signals if it performs an action (scans 
and emails an image e.g). This can be used by desktop-applications.

3) scanbd uses a dbus-interface to expose methods to perform actions 
(this too can be used by desktop applications)

4) scanbd interacts nicely with saned: it stops polling the scanner 
buttons if the scanner-device must be used by saned.

5) scanbd can poll arbitrary number of scanner

6) flexible configuration

This is a very early release of the piece of software - be warned. 

You can get it from:

http://scanbd.svn.sourceforge.net/viewvc/scanbd/

Comments very welcome!
-- 
Wilhelm