Skip to content

fsotdld does not trigger alarm at right time after suspend #2

@jake42

Description

@jake42

fsotdld uses g_timeout_add_seconds() for fsotdld to wake up at the alarm
https://github.com/freesmartphone/cornucopia/blob/master/fsotdld/src/plugins/alarm/plugin.vala#L123

The interval given is in terms of monotonic time, not wall clock time. See g_get_monotonic_time().
https://developer.gnome.org/glib/2.36/glib-The-Main-Event-Loop.html#g-timeout-add-seconds

The monotonic time does not advance while in suspend. So if we set an alarm in 10min, suspend the device for 5min and keep it awake after that, the alarm will go off after 15 wall clock minutes.

This is with srv rev: 12843f0

Issue in SHR: http://shr-project.org/trac/ticket/1253

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions