Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove RTC WKALM programming, notify DSME of the next non-boot event #12

Merged
merged 3 commits into from Mar 4, 2013

Conversation

pgerdt
Copy link

@pgerdt pgerdt commented Mar 1, 2013

Remove RTC WKALM programming. DSME handles RTC programming, including WKALM. DSME listens to the timed signal next_bootup_event and programs RTC wakeup alarms accordingly.

Add timestamp of next non-boot event to DBUS signal next_bootup_event. The signal has two parameters, int next_boot_event, and int next_non_boot_event. Both are timestamps in the form of seconds since the Unix epoch. The former gives the trigger date of the next event with the boot flag enabled, and the latter the trigger date of the next event without the boot flag enabled.

While the device is up and running, DSME uses both parameters to program the RTC to make the device wake up from suspend to handle events.

At shutdown DSME programs the RTC to power up the device to trigger the next event with the boot flag set, whose trigger date is defined by the paramter next_boot_event.

Make signal next_bootup_event show up in DBUS introspection

DSME handles RTC programming, including WKALM. DSME
listens to the timed signal next_bootup_event
and programs RTC wakeup alarms accordingly.
@pgerdt
Copy link
Author

pgerdt commented Mar 1, 2013

DSME changes to handle the updated next_bootup_event signal (+other stuff) are reviewed here: nemomobile/dsme#3

For the specific DSME code that reads the updated signal, see spiiroin/dsme@a737371#L1R1099

@spiiroin
Copy link
Contributor

spiiroin commented Mar 1, 2013

Code changes look ok to me.

But since we changed the signal: does timed support introspection / is the signal content changed there too?

The time value description is bit leading in the commit message: while the device is up and running, both (1) and (2) are used for rtc alarm programming -> the device will resume from suspend to handle alarms. At shutdown (1) is programmed to rtc -> the device will power up to serve alarms with the boot flag set.

Petri M. Gerdt added 2 commits March 1, 2013 12:31
The signal has two parameters, int next_boot_event, and
int next_non_boot_event. Both are timestamps in the form of
seconds since the Unix epoch. The former gives the trigger
date of the next event with the boot flag enabled, and the
latter the trigger date of the next event without the boot
flag enabled.

While the device is up and running, DSME uses both parameters
to program the RTC to make the device wake up from suspend
to handle events.

At shutdown DSME programs the RTC to power up the device to
trigger the next event with the boot flag set, whose trigger
date is defined by the paramter next_boot_event.
@pgerdt
Copy link
Author

pgerdt commented Mar 1, 2013

Updated pull request, changes:

  • Updated commit message of cfe41a4 / "Add timestamp of next non-boot..." based on comments from spiiroin
  • Added commit that makes next_bootup_event show up in DBUS introspection. Note: this commit makes the signal to be present and emitted even when timed is compiled without HAVE_DSME defined.

@spiiroin
Copy link
Contributor

spiiroin commented Mar 4, 2013

ok by me

pgerdt pushed a commit that referenced this pull request Mar 4, 2013
Remove RTC WKALM programming, notify DSME of the next non-boot event
@pgerdt pgerdt merged commit d926159 into nemomobile:master Mar 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants