Launcher Release 0.39

Ed Kapitein ed at
Tue Oct 20 19:12:02 CEST 2009

c_c wrote:
> ><SNIP><
>   Help needed 
> 1. sample code for a service using c + dbus / e-dbus
> 2. How do I set an alarm that can wake up the phone from suspend?
Hi c_c,

I wrote a script a while ago that does just that:
Wake my freerunner in the morning from suspend and play some music to
wake me up.
To wake the device at 21:00 on october 20 you could use something like this:

PLAN_DATE_SEC=`date --date="${DATE[$X]} ${TIME[$X]} +0000" +%s`
PLAN_DATE_SEC=$(( ${PLAN_DATE_SEC} - 10 )) # wake the device 10 sec
before the event

dbus-send --system --dest=org.freesmartphone.odeviced --print-reply

Feel free to leave out the array [X] part, i use it, because i have
multiple wakup times.

kind regards,

More information about the community mailing list