Wishlist/Alarm daemon

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(catspec)
m (Questions and Answers: Categoty:Unimplemented)
Line 26: Line 26:
  
 
[[Category:Software]]
 
[[Category:Software]]
 +
[[Categoty:Unimplemented]]

Revision as of 15:41, 20 July 2007

Contents

Overview

The alarm daemon provides an interface for applications to register times at which an application needs to do a specific task.

Usage Cases

  • An alarm should turn on the phone if needed
  • I want to specify relative and absolute times (i.e. in 5 hours, on May 1st 2007, 2:00pm)

Constraints

Architectural Details

The alarm daemon will probably be part of neod since it will need to set the RTC alarm for the next event. The interface for the applications is exposed via dbus.

Implementation Recommendations

Maemo is using alarmd (howto). We should see if we can modify their approach to fit our needs. We don't want to have to many different solutions to a similar problem, but rather cooperate.

At start neod will have to query the next event in eds (to determine when the next wakeup has to occur). If a new event is added eds will broadcast the change through dbus.

Applications will (de-)register for a specific time at which the alarm daemon (neod) will call the application with a special command line parameter to reflect that the application has been called for an alarm.

Unresolved Issues

  • If the device is powering down during the alarm we might miss the RTC alarm. Maybe we should just move the alarm time back a minute if we are powering down and the alarm is near?
  • What do we do if the application is already running?

Questions and Answers

(None)Categoty:Unimplemented

Personal tools

Overview

The alarm daemon provides an interface for applications to register times at which an application needs to do a specific task.

Usage Cases

  • An alarm should turn on the phone if needed
  • I want to specify relative and absolute times (i.e. in 5 hours, on May 1st 2007, 2:00pm)

Constraints

Architectural Details

The alarm daemon will probably be part of neod since it will need to set the RTC alarm for the next event. The interface for the applications is exposed via dbus.

Implementation Recommendations

Maemo is using alarmd (howto). We should see if we can modify their approach to fit our needs. We don't want to have to many different solutions to a similar problem, but rather cooperate.

At start neod will have to query the next event in eds (to determine when the next wakeup has to occur). If a new event is added eds will broadcast the change through dbus.

Applications will (de-)register for a specific time at which the alarm daemon (neod) will call the application with a special command line parameter to reflect that the application has been called for an alarm.

Unresolved Issues

  • If the device is powering down during the alarm we might miss the RTC alarm. Maybe we should just move the alarm time back a minute if we are powering down and the alarm is near?
  • What do we do if the application is already running?

Questions and Answers

(None)