I think there should be a daemon handling this tasks.<br>As the RTC-alarm can only be once (every day), the daemon would have to handle this to allow multiple alarms/wakeups.<br>The daemon would have to act like this: first set the RTC-alarm - after waking up check for the scheduled event and decide if it&#39;s the correct day and run the tasks. After that&nbsp;decide&nbsp;what&#39;s&nbsp;the&nbsp;next&nbsp;event&nbsp;and&nbsp;set&nbsp;the&nbsp;RTC-alarm-time&nbsp;to&nbsp;the&nbsp;new&nbsp;time&nbsp;(or&nbsp;leave&nbsp;it&nbsp;as&nbsp;it&nbsp;is&nbsp;in&nbsp;case&nbsp;it&nbsp;was&nbsp;the&nbsp;wrong&nbsp;day).<br>
 The daemon would/should have its own event database that can be filled via a dbus-interface.<br><br>As the&nbsp;RTC-alarm might be different from device to device it might be the clean way to let the odeviced handle the alarm-setting (communication between the two daemons via dbus) and just have a dbus-interface for that in the new daemon.<br>
<br>That is at least what I imagine.<br><br><div><span class="gmail_quote">On 5/7/08, <b class="gmail_sendername"><a href="mailto:joerg@openmoko.org">joerg@openmoko.org</a></b> &lt;<a href="mailto:joerg@openmoko.org">joerg@openmoko.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Am Mi&nbsp;&nbsp;7. Mai 2008 schrieb David Samblas Martinez:<br><br>&gt; And why not implement a &quot;execute command&quot; option in<br> &gt; the PIM Task Manager(Schedule)?<br> &gt; If the neo will be able to wake up to play a sound<br>
 &gt; and/or buzz, I suppose it can execute a shell command<br> &gt; and sleep again when finished.<br><br><br>The interesting bit of this is to distinguish between dates that just had wake<br> up the device, so we may go to sleep again immediately after &quot;execution&quot;, and<br>
 dates that happen to be &quot;executed&quot; while user intentionally switched on the<br> device already so we mustn&#39;t go to sleep afterwards.<br><br> /j<br><br><br><br><br> &gt; (maybe this was already implemented/planned, isn&#39;t<br>
 &gt; it?)<br> &gt; --- Ryan Prior &lt;<a href="mailto:ryanprior@gmail.com">ryanprior@gmail.com</a>&gt; escribió:<br> &gt;<br> &gt; &gt; Perhaps &quot;phone-cron&quot; needs to be written, to take<br> &gt; &gt; anacron to the level of<br>
 &gt; &gt; task flexibility required for modern cell phones.<br> &gt; &gt; Cron and anacron are<br> &gt; &gt; crusty old beasts - we need something fresh and<br> &gt; &gt; sharp.<br> &gt; &gt;<br> &gt; &gt; On Tue, May 6, 2008 at 6:42 PM, Bastian Muck<br>
 &gt; &gt; &lt;<a href="mailto:bastian.muck@gmx.de">bastian.muck@gmx.de</a>&gt; wrote:<br> &gt; &gt;<br> &gt; &gt; &gt; -----BEGIN PGP SIGNED MESSAGE-----<br> &gt; &gt; &gt; Hash: SHA1<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; Anachron can unfortunately run tasks once a day,<br>
 &gt; &gt; which you can read at the<br> &gt; &gt; &gt; Drawback. I guess that tasks, with a<br> &gt; &gt; &quot;remember-funktions&quot; canot really be<br> &gt; &gt; &gt; realized with anachron.<br> &gt; &gt; &gt; I don&#39;t know if there is a timer, which can send<br>
 &gt; &gt; an wakeup-interupt, but<br> &gt; &gt; &gt; when it exists the next upcoming task could be<br> &gt; &gt; searched an the time could be<br> &gt; &gt; &gt; passed to the timer. Does anybody knows of such<br> &gt; &gt; timer?<br>
 &gt; &gt; &gt; If not i think it should be integrated in gta03.<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; Greetings Bastian<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; Torfinn Ingolfsen schrieb:<br> &gt; &gt; &gt; | Hi,<br> &gt; &gt; &gt; |<br>
 &gt; &gt; &gt; | On Tue, May 6, 2008 at 9:26 AM, Mike Baroukh<br> &gt; &gt; &lt;<a href="mailto:mike@baroukh.com">mike@baroukh.com</a>&gt; wrote:<br> &gt; &gt; &gt; |&gt;&nbsp;&nbsp;About this, I was wondering if there was<br> &gt; &gt; possibility to have cron like<br>
 &gt; &gt; &gt; |&gt;&nbsp;&nbsp;tasks even if the phone is suspended ?<br> &gt; &gt; &gt; |<br> &gt; &gt; &gt; | You could always run something like anacron{1]<br> &gt; &gt; on the phone. As long<br> &gt; &gt; &gt; | as yoy don&#39;t keep you phone suspended for a day<br>
 &gt; &gt; or more that would<br> &gt; &gt; &gt; | work. :-)<br> &gt; &gt; &gt; |<br> &gt; &gt; &gt; | References:<br> &gt; &gt; &gt; | 1) <a href="http://en.wikipedia.org/wiki/Anacron">http://en.wikipedia.org/wiki/Anacron</a><br>
 &gt; &gt; &gt;<br> &gt; &gt; &gt; -----BEGIN PGP SIGNATURE-----<br> &gt; &gt; &gt; Version: GnuPG v1.4.7 (MingW32)<br> &gt; &gt; &gt; Comment: Using GnuPG with Mozilla -<br> &gt; &gt; <a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a><br>
 &gt; &gt; &gt;<br> &gt; &gt; &gt;<br> &gt; &gt;<br> &gt; iD8DBQFIIOz2lYiDScJJ+7QRAquEAKC5JcE/JSzJBMg3nv0B9eZymrjgUACgldfG<br> &gt; &gt; &gt; k9r7LB1DceHTxuqMFYgeAtI=<br> &gt; &gt; &gt; =JGQI<br> &gt; &gt; &gt; -----END PGP SIGNATURE-----<br>
 &gt; &gt; &gt;<br> &gt; &gt; &gt;<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; _______________________________________________<br> &gt; &gt; &gt; Openmoko community mailing list<br> &gt; &gt; &gt; <a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
 &gt; &gt; &gt;<br> &gt; &gt; <a href="http://lists.openmoko.org/mailman/listinfo/community">http://lists.openmoko.org/mailman/listinfo/community</a><br> &gt; &gt; &gt;<br> &gt; &gt; &gt; _______________________________________________<br>
 &gt; &gt; Openmoko community mailing list<br> &gt; &gt; <a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br> &gt; &gt; <a href="http://lists.openmoko.org/mailman/listinfo/community">http://lists.openmoko.org/mailman/listinfo/community</a><br>
 &gt; &gt;<br> &gt;<br> &gt;<br> &gt;<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ______________________________________________<br> &gt; Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.<br> &gt;<br> &gt;<br> &gt; _______________________________________________<br>
 &gt; Openmoko community mailing list<br> &gt; <a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br> &gt; <a href="http://lists.openmoko.org/mailman/listinfo/community">http://lists.openmoko.org/mailman/listinfo/community</a><br>
 &gt;<br><br><br><br> _______________________________________________<br> Openmoko community mailing list<br> <a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br> <a href="http://lists.openmoko.org/mailman/listinfo/community">http://lists.openmoko.org/mailman/listinfo/community</a><br>
</blockquote></div><br>