Hi,

i have a few problems getting siglaunchd doing what i want. :)
I first tried the default rule which was supplied to get me a bit
familiar with siglaunchd. But there the problems start.

The default rule looks like:
"DISPLAY=:0.0
/usr/share/siglaunchd/scripts/profile-changer"=org.freesmartphone.Device.Input;org.freesmartphone.oeventsd;/org/freesmartphone/Device/Input;Event;arg[0]=AUX,
arg[1]=released, arg[2]>0

This works fine. But when i try to set the duration for which the AUX
key should be pressed to >2s with "arg[2]>2" in this line it seems to be
ignored. After restart of siglaunchd the profile-changer starts even
when i press and release the AUX key only for a fraction of a second.
What do work is the second parameter. When i change it to
"arg[1]=pressed" than the profile-changer starts as soon as i press the
AUX key before releasing it.
So could it be that the syntax of the third parameter, which should be
the duration of seconds i press the key, has changed?

The second problem is that i tried the incoming caller matching rule
example from the wiki [1].

This rule looks like this:
"DISPLAY=:0.0 echo
message"=org.freesmartphone.GSM.Call;org.freesmartphone.ogsmd;/org/freesmartphone/GSM/Device;CallStatus;arg[1]=incoming,
arg[2][peer]~555111333

But this rule is not working at all because siglaunchd says "Unknown
comparison type '['" when i try to run it. So i think that the syntax
for this rule also has changed.
But what is the correct syntax then?

Next thing is that on the wiki it says that SIGHUP is supported to
reload the config without restarting the daemon. But when i try a "kill
-HUP pid" where pid is the PID of the siglaunchd process than siglaunchd
terminates without any info.
And the start parameter "-c" seems to have no effect. If i start it with
or without it siglaunchd always starts and not just checks the config as
said in the wiki.

Maybe i'm doing something totaly wrong. I hope someone can help me a bit
with my problems because i think this app is really usefull. :)

Ciao,
     Rainer

[1] http://wiki.openmoko.org/wiki/Siglaunchd
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to