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

The iphb module uses rtc alarms to wakeup from suspend #3

Merged
merged 5 commits into from Mar 8, 2013
Merged

The iphb module uses rtc alarms to wakeup from suspend #3

merged 5 commits into from Mar 8, 2013

Conversation

spiiroin
Copy link
Contributor

Note: dsme.spec needs:

BuildRequires: pkgconfig(mce) >= 1.12.3

The rtc alarm is set to closest maximum time of client wakeup
requests. This allows us to wake up from suspend to serve aligned
timers.

The next (clock/calendar/etc) alarm time is tracked (via listening
to "next_bootup_event" signals from timed) and considered when
setting the rtc alarm time.

When dsme wakes up due to rtc alarm, it takes a wakelock, wakes
up clients with elapsed timers and signals cpu-keepalive wakeup
to mce via asynchronous D-Bus method call. The wakelock will
be released by mce once it has handled the method call.

Since dsme now has /dev/rtc open all the time, it effectively
blocks other processes from updating the rtc time. To overcome
this, iphb module synchronizes rtc time to system time when
a) dsme starts up b) while processing heatbeat wakeups c) when
"settings_changed" signal is received from timed.

Also fixes issues on module startup failure and unload paths.
Since systemd captures stderr too, this just leads to duplicate
entries in journal.
Warning message will be emitted if message content differs from
what caller expected.

Removed message_iter_next() since it left the iterator pointing
to the last element instead of moving past it - i.e. you could
read the last element N times without errors.

Also fixed a type mismatch found due to type checking.
spiiroin added a commit that referenced this pull request Mar 8, 2013
The iphb module uses rtc alarms to wakeup from suspend
@spiiroin spiiroin merged commit c6910cf into nemomobile:master Mar 8, 2013
@spiiroin spiiroin deleted the iphb_uses_rtc branch March 8, 2013 06:15
plundstr pushed a commit that referenced this pull request Oct 8, 2013
Merge pull request #24 from plundstr/master
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

1 participant