← Back to team overview

dx-packages team mailing list archive

[Bug 1420169] Re: Alarms don't wake up the phone when it is powered off

 

The use of the API by powerd is correct

u_hardware_alarm_set_relative_to_with_behavior(
         hardware_alarm,
         U_HARDWARE_ALARM_TIME_REFERENCE_RTC,
         U_HARDWARE_ALARM_SLEEP_BEHAVIOR_WAKEUP_DEVICE,
         &sleep_interval);w

Which platform_api maps to

     else if (time_reference == U_HARDWARE_ALARM_TIME_REFERENCE_RTC)
            switch(behavior)
            {
                case U_HARDWARE_ALARM_SLEEP_BEHAVIOR_WAKEUP_DEVICE:
                    type = ANDROID_ALARM_RTC_WAKEUP;
                    break;
                case U_HARDWARE_ALARM_SLEEP_BEHAVIOR_KEEP_DEVICE_ASLEEP:
                    type = ANDROID_ALARM_RTC;
                    break;
            }

        int result = ::ioctl(fd, ANDROID_ALARM_SET(type), ts);

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-datetime in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1420169

Title:
  Alarms don't wake up the phone when it is powered off

Status in Canonical System Image:
  Confirmed
Status in indicator-datetime package in Ubuntu:
  Invalid
Status in platform-api package in Ubuntu:
  Confirmed
Status in ubuntu-ui-toolkit package in Ubuntu:
  Invalid

Bug description:
  The alarms API is not setting the device's RTC alarm to power on the
  phone when an alarm should ring and the device is powered off.

  This causes alarms to be lost.

  We are instead using Android's /dev/alarm interface which only works
  while the phone is on or suspended.

  See bug #1375855 which confirms this works on Android.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1420169/+subscriptions