[maemo-developers] [maemo-developers] Maemo Alarm/Notifier Interface
From: Nils Faerber nils.faerber at kernelconcepts.deDate: Wed Jan 11 18:53:00 EET 2006
- Previous message: [maemo-developers] Maemo Alarm/Notifier Interface
- Next message: [maemo-developers] Maemo Alarm/Notifier Interface
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andrew Flegg schrieb: > On 11/01/06, Kimmo Hämäläinen <kimmo.hamalainen at nokia.com> wrote: > >>I assume it will sleep most of the time and poll once in a minute >>(according to man page). > > Polling once a minute is much too often, though! The daemon (even if > it's crond) should get told, possibly over DBUS, when a scheduled > event is added. It then recalculates its sleep time, and goes back to > sleep until the next currently known event is due. > > Looking at the source to atd(8), this is what it seems to do. In the hh.org atd for iPaq and friends we even make use of the RTC of the StrongARM. This will be set to the next alarm and will cause an interrupt when the event occurs. This has two major advantages: 1. You do not have to poll and you do not have to trust that sleeping a certain amount of time is accurate enough with the real time. 2. The RTC interrupt will wake up the machine when it is suspended thus you get notified about events even if in suspend mode. I would suspect that the OMAP has a similar RTC which is capable of generating a wakeup interrupt. In this case I would vote for atd again because the hh.org atd already carries the necessary mods to make use of the RTC. > Cheers, > Andrew Cheers nils faerber - -- kernel concepts Tel: +49-271-771091-12 Dreisbachstr. 24 Fax: +49-271-771091-19 D-57250 Netphen Mob: +49-176-21024535 - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDxTfsJXeIURG1qHgRAm/9AKCnOvqzCuM9rGU06nRDZ3t49AaGNQCgi0cC xj9cZ+mZoJ0MsRPJlPl+lPQ= =/6HO -----END PGP SIGNATURE-----
- Previous message: [maemo-developers] Maemo Alarm/Notifier Interface
- Next message: [maemo-developers] Maemo Alarm/Notifier Interface
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]