Alarms don't wake up the phone when it is powered off
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
Wishlist
|
Unassigned | ||
| | indicator-datetime (Ubuntu) |
Undecided
|
Unassigned | ||
| | platform-api (Ubuntu) |
Undecided
|
Unassigned | ||
| | ubuntu-ui-toolkit (Ubuntu) |
Undecided
|
Unassigned | ||
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.
| Michael Zanetti (mzanetti) wrote : | #1 |
| Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| status: | New → Confirmed |
| Charles Kerr (charlesk) wrote : | #3 |
I don't understand what this bug report is requesting that indicator-datetime isn't already doing -- it calls the powerd dbus API to request an RTC alarm wakeup when the alarm should ring. powerd uses platform-api's u_hardware_
Is the request here to power on the phone even if the user has manually powered it off?
| Changed in indicator-datetime (Ubuntu): | |
| status: | New → Incomplete |
| Michael Zanetti (mzanetti) wrote : Re: [Bug 1420169] Re: Alarms don't set RTC alarm to wake up the phone | #4 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03.03.2015 03:01, Charles Kerr wrote:
> Is the request here to power on the phone even if the user has
> manually powered it off?
Yes bug more importantly, if the phone has switched itself off because
of low battery.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlT
TloAn0SbaITh7XF
=13ls
-----END PGP SIGNATURE-----
| Changed in indicator-datetime (Ubuntu): | |
| status: | Incomplete → New |
From the data sheet (http://
"After that PWRKEYcan be released, pulling BBWAKEUP high will also turn on the handset. This is the case when the alarm in the RTC expires."
So it seems the hardware should support to turn the device on when an RTC alarm happens.
| Launchpad Janitor (janitor) wrote : | #6 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in indicator-datetime (Ubuntu): | |
| status: | New → Confirmed |
| MaTiZ (mdehollander) wrote : | #7 |
I can confirm this bug also occurs on a MX4.
Is this a hardware or a software issue?
| summary: |
- Alarms don't set RTC alarm to wake up the phone + Alarms don't wake up the phone when it is powered off |
| description: | updated |
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → Thomas Voß (thomas-voss) |
| importance: | Undecided → Wishlist |
| milestone: | none → backlog |
| status: | New → Confirmed |
| description: | updated |
| Changed in indicator-datetime (Ubuntu): | |
| status: | Confirmed → Invalid |
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| status: | Confirmed → Invalid |
| Launchpad Janitor (janitor) wrote : | #8 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in platform-api (Ubuntu): | |
| status: | New → Confirmed |
| Andrea Bernabei (faenil) wrote : | #9 |
Jolla phone can do it as well, fwiw.
I love that feature, and I think it is a real showstopper for people who are used to having a reliable alarm-phone.
I already missed the alarm twice because my Krillin switched off because of a bug (or because it had run out of battery) during the night. I've been using the Jolla as secondary alarm since then, and I know that even if it runs out of battery, it will still keep enough juice to fire the alarm when the time comes.
| Pat McGowan (pat-mcgowan) wrote : | #10 |
The use of the API by powerd is correct
u_hardware_
Which platform_api maps to
else if (time_reference == U_HARDWARE_
{
}
int result = ::ioctl(fd, ANDROID_
| Pat McGowan (pat-mcgowan) wrote : | #11 |
Can we look into whether we need to enable something in the kernel configs?
| Changed in canonical-devices-system-image: | |
| assignee: | Thomas Voß (thomas-voss) → John McAleely (john.mcaleely) |
| Pat McGowan (pat-mcgowan) wrote : | #12 |
The Android API RTC_WAKEUP indeed refers to waking from deep sleep, I see no reference to an API for powering on the device.
| Andrea Bernabei (faenil) wrote : | #13 |
Wasn't https:/
| Pat McGowan (pat-mcgowan) wrote : | #14 |
That is what we use for alarms but it doesn't work when the device is powered off.
| Changed in canonical-devices-system-image: | |
| assignee: | John McAleely (john.mcaleely) → nobody |


In order to have enough battery left to ring an alaarm, this bug would need to be fixed too: https:/ /bugs.launchpad .net/indicator- power/+ bug/1317860