We have moved to a new Sailfish OS Forum. Please start new discussions there.
47

[Request] Snooze behavior when you miss the alarm

asked 2014-05-15 12:11:43 +0300

Xurb gravatar image

updated 2015-04-27 11:46:11 +0300

eric gravatar image

Hey sailors,

I got a little request, My jolla is my main alarm to woke up as all my phone since I get a cell phone and before it was my watch, I never baught an true alarm clock ^^.

I got a very strong sleep and sometime in the morning I don't hear the phone ringing. The jolla behavior is, when you miss the alarm the alarm will not snooze and show a notification that you have missed the alarm it's a bit embarrassing. So If it could be possible to change the snooze behavior it would be great I mean when you miss the alarm it will snooze and not turning off.

thank you ^^

edit retag flag offensive close delete

Comments

4

I still keep my N900 running Evilalarm with the game-wakeup function beside my bed. That alarm has really helped my sleeping habits!

00prometheus ( 2014-05-16 01:19:21 +0300 )edit
1

Evilalarm is the best alarm clock app ever created I think, unfortunatly my n900 goes in warrenty and return as an Xperia too sad...

Xurb ( 2014-05-16 10:32:44 +0300 )edit
1

@Xurb: You really got screwed. My N900's gsm-reader broke but I still keep it around for stuff like alarms (and a Nokia 1600 as backup for tough nights).

WhyNotHugo ( 2014-05-25 00:26:12 +0300 )edit
1

I accepted Attahs answer as a solution; at least it is a work-around. Now all that is needed is someone integrating it as a module in Patchmanager so that it is easily installed by everyone.

00prometheus ( 2014-05-25 10:46:06 +0300 )edit

truly, I missed a flight because of lack of proper snooze ;-)

darvari ( 2014-05-27 17:20:15 +0300 )edit

3 Answers

Sort by » oldest newest most voted
12

answered 2014-05-24 22:13:02 +0300

attah gravatar image

updated 2014-05-25 13:17:14 +0300

Turns out i didn't see the whole picture, you just need to edit the alarms that was created before the update for them to timeout-snooze properly. Any new alarms will timeout-snooze. See comment by DataGhost below. Kudos!


My original (crude, but working) fix:

I got a little brave from my work on https://together.jolla.com/question/2132/new-calendar-entries-default-to-the-wrong-date/

So i tried fixing this too, and it was really easy. In /usr/share/jolla-alarm-ui/pages/ClockAlarmDialog.qml

Change onTimeout: closeDialog(AlarmDialogStatus.Closed)

to onTimeout: closeDialog(AlarmDialogStatus.Snoozed)

REMEMBER TO MAKE BACKUPS!

edit flag offensive delete publish link more

Comments

Now all that is needed is someone integrating it as a module in Patchmanager so that it is easily installed by everyone.

00prometheus ( 2014-05-25 11:51:19 +0300 )edit

Tested your solution, it works beautifully! I will update the answer and add that info.

attah ( 2014-05-25 13:13:53 +0300 )edit

I try your solution soon, and if it work for me as well i'll close the question ^^, thanks for your help...

Xurb ( 2014-05-27 10:50:54 +0300 )edit

Nice. Can you make it not snooze at all through a similar method?

Edit: Yes you can. Just remove the entire line. The audio will loop by default too.

Kagerou ( 2014-12-31 06:51:16 +0300 )edit
9

answered 2014-05-23 09:03:47 +0300

DataGhost gravatar image

I have the same problem and it took me until this morning to find out what exactly caused the sudden increase in me oversleeping and being late for work, and it's the second time the behaviour was changed without anything in the changelog.

Initially, when I got my Jolla, the alarm would auto-snooze indefinitely, which was great for me and a nice improvement over the "auto-snooze max 3 times" from my N9. Unfortunately, after getting used to this, this was suddenly changed with one of the firmware updates to the N9 behaviour. Not optimal but I could live with it, hoping there would be a configuration option soon. Now, with 1.0.5.x, it suddenly stopped auto-snoozing altogether, with nothing in the changelog. I usually snooze the first one or two times thinking that it'd go for three more times afterwards so it wouldn't be a big deal if I forgot to snooze once but I kept waking up about an hour late... a bit embarrassing. In the meantime, I've had to set multiple alarms which kind of defeats the purpose. Maybe even stranger is that the calendar does auto-snooze at least once...

So, basically: don't change alarm behaviour without clear notices in the changelog or even in the alarm application/backend. Not everyone reads the changelog carefully and this is critical stuff for a lot of us, which most wouldn't expect to change at all. You can't just change it without expecting problems for a group of people. Also, I would like to be able to configure this behaviour.

edit flag offensive delete publish link more

Comments

Same here... want autosnooze..

Schturman ( 2014-05-23 10:54:21 +0300 )edit

could you script something you've done good work on meego maybe you could do somthing for that too...

Xurb ( 2014-05-23 11:43:03 +0300 )edit

I don't know which files, how it work etc.. I'm not programmer ;)

Schturman ( 2014-05-23 12:16:55 +0300 )edit
6

answered 2014-05-25 12:44:40 +0300

DataGhost gravatar image

Never thought that'd be managed in QML files. I found an alternative solution and the reason why my alarms stopped auto-snoozing. A property, maximalTimeoutSnoozeCount, was added in 1.0.4.20 (not 1.0.5.x as I thought) and defaults to 2. On alarms which were set before this update, this property did not exist yet, so the alarm is dismissed immediately (/usr/share/jolla-alarm-ui/jolla-alarm-ui.qml:63). So, if you want to change the default value, open /usr/share/jolla-clock/pages/ClockEditDialog.qml and change

alarmObject.maximalTimeoutSnoozeCount = 2
to whatever you want but remember, 0 really means no auto-snooze at all. Then, edit and save all your alarms so they will use the new value. You cannot use this method and the attah's method at the same time, as the timeoutSnoozeCounter variable will not be increased on Status.Snoozed, only on Status.Closed.

edit flag offensive delete publish link more

Comments

1

Tested your method, work perfectly ! Thanks :)

Schturman ( 2014-05-25 18:04:17 +0300 )edit
1

I created small app for this: https://openrepos.net/content/schturman/more-auto-snoozes :)

Schturman ( 2014-06-07 02:14:11 +0300 )edit
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2014-05-15 12:11:43 +0300

Seen: 955 times

Last updated: May 25 '14