← Back to team overview

dx-packages team mailing list archive

[Bug 1283225] Re: Alarm should turn on the screen

 

I discussed this in #phablet with ChickenCutlass, ricmm, and rsalveti.

ricmm says that upower's public API requestDisplayState only works to
keep the screen to "stay on", not to wake up. For example, he was not
able to activate the screen with "powerd-cli display on".

The other place on phablet where we wake up the screen is upon incoming
calls. According to ChickenCutlass powerd doesn't do this through any
public API, but rather listens to ofono itself. He suggested that powerd
would need to listen to the RTC alarms and handle turning on the display
independently of indicator-datetime.

Because RTC alarms will overwrite each other, tvoss is adding a
gatekeeper API to platform-api s.t. apps (including indicator-datetime)
can set an RTC alarm without conflicting with other applications.
upowerd will monitor this and wake up the screen without intervention
from indicator-datetime:

16:49:40] <charles> the end goal is to get alarm handling in indicator-datetime to a state s.t. the phone will wake up when we reach the next user-created EDS alarm
[16:50:15] <ChickenCutlass> charles, ok, and we can't acheive that if we don't have something that wakes the phone up (i.e EDS alarm service)
[16:50:37] <charles> when we reach that user-created EDS alarm (eg, "wake up 8am M-F") then we need to wake the phone up from sleep, turn on the screen, pop up a snap decision, and play a sound
[16:50:54] <charles> the last two pieces are done; I'm asking how to do the first two items on that list
[16:51:02] <ChickenCutlass> right
[16:51:17] <ChickenCutlass> so the first one needs to happen in the alarms service via the kernel rtc api
[16:51:29] <charles> right
[16:51:33] <ChickenCutlass> and the second in powerd to turn the display on in that such event


** Also affects: powerd
   Importance: Undecided
       Status: New

** Changed in: indicator-datetime (Ubuntu)
       Status: Confirmed => Invalid

-- 
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/1283225

Title:
  Alarm should turn on the screen

Status in PowerD:
  New
Status in “indicator-datetime” package in Ubuntu:
  Invalid

Bug description:
  Mako build 200
  When an alarm goes off the screen currently stays off, so use must hit the power button before dismissing it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/powerd/+bug/1283225/+subscriptions


References