Default alarm behavior can cause unnecessary battery drain
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
indicator-datetime (Ubuntu) |
Fix Released
|
Medium
|
Charles Kerr |
Bug Description
As discussed in private bug #1430666, the default alarm ring duration of 30 minutes is really long compared to other phones. This got called out because it will cause unnecessary screen-on battery drain.
IMO 30 minutes should not be the default option -- if a user doesn't dismiss after 10 minutes, adding another 20 feels like overkill.
In addition, datetime (rightly) turns the screen on when an alarm triggers. It's kept on for the duration of the alarm, even if it rings for a half hour. That's a pretty long screen-on time to pay when the user's inactive.
1. <http://
2. Datetime should release its "screen on" hold after the first few minutes, so that even long-ringing alarms don't drain more battery than necessary.
Related branches
- PS Jenkins bot (community): Approve (continuous-integration)
- Ted Gould (community): Approve
-
Diff: 167 lines (+51/-18)3 files modifieddata/com.canonical.indicator.datetime.gschema.xml.in (+1/-1)
src/awake.cpp (+49/-16)
tests/test-exporter.cpp (+1/-1)
summary: |
- Default alarm duration of 30 minutes is too long + Default alarm behavior can cause unnecessary battery drain |
Changed in indicator-datetime (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
Giorgio is no longer with us, and the clock spec is currently unmaintained. In the meantime:
1. I think you're on safe ground changing the alarm from 30 minutes to 10 minutes. I've requested access to the spec to update it accordingly.
2. I don't see any mention of a "'screen on' hold". What I do see is: "When phone is locked, the display will wake up for the default time it usually does when pressing the power button." So:
* 0 s: alarm goes off, screen wakes up, shows special version of lock screen
* 30 s(?): screen dims, just like it would if you'd woken it up yourself
* 60 s(?): screen goes back to sleep, just like it would if you'd woken it up yourself
* 600 s: alarm stops playing