Reply
Thread Tools
Posts: 11 | Thanked: 89 times | Joined on Dec 2015 @ Hungary
#1
Hello all,

I am trying to create a patch for this problem*:
https://together.jolla.com/question/...alendar-alarm/

Now I am facing with a very strange issue: the ngfd seems to caching the config from the events.d folder.

I have removed the sound.repeat = true line from the calendar.ini:

Code:
[root@Sailfish usr]# cat ./share/ngfd/events.d/calendar.ini
[calendar => play.mode=short]
sound.filename = fixme_file_missing.wav
ffmemless.effect = NGF_SHORT
sound.stream.event.id = event-in-call
sound.stream.module-stream-restore.id = x-meego-ringing-volume
sound.enabled.profile = calendar.alert.enabled => sound.enabled
haptic.type = alarm

[calendar => play.mode=*,context@call_state.mode=active]
sound.profile = sms_fg.alert.tone@general => sound.filename
sound.stream.event.id = event-in-call
sound.stream.module-stream-restore.id = sink-input-by-media-role:indicator-tone

[calendar]
sound.profile = calendar.alert.tone => sound.filename
sound.profile.fallback    = calendar.alert.tone@fallback => sound.filename
sound.enabled.profile = calendar.alert.enabled => sound.enabled
ffmemless.effect = NGF_SHORT
sound.stream.event.id = alarm-clock-elapsed
sound.stream.module-stream-restore.id = x-meego-ringing-volume
sound.stream.media.role = alarm
sound.stream.droid.device.additional-route = AUDIO_DEVICE_OUT_SPEAKER
haptic.type = alarm
But the calendar alarms are still continous.
The QML component calls the ngf's Play method with the correct argument:
Code:
method call time=1496954881.110910 sender=:1.145 -> destination=com.nokia.NonGraphicFeedback1.Backend serial=24 path=/com/nokia/NonGraphicFeedback1; interface=com.nokia.NonGraphicFeedback1; member=Play
   string "calendar"
   array [
   ]
So I assume it should generate a single event.

What I did already:
  • restarted my device
  • killed and restarted the ngfd
  • created a new calendar alarm

Any hints would be welcomed!

*The patch should install a settings page for the Calendar which would be accessible from the Settings -> Apps -> Calendar.
The user could globally change the calendar notification behaviour to continous notification. This setting would be stored in DCONF.
The patch would create a separate config called continouscalendar.ini.
The jolla-alarm-ui would be modified to call the ngf's Play method with "calendar" or "contonouscalendar" arguments depending on the DCONF settings value.

Last edited by martonmiklos; 2017-06-08 at 21:10. Reason: minor tweaks
 

The Following User Says Thank You to martonmiklos For This Useful Post:
Posts: 1,288 | Thanked: 4,316 times | Joined on Oct 2014
#2
What about trying to change

sound.repeat = true

to

sound.repeat = false

?
 

The Following User Says Thank You to nieldk For This Useful Post:
Posts: 11 | Thanked: 89 times | Joined on Dec 2015 @ Hungary
#3
Just tried it, but it ignores it too.

The default file which was shipped by Jolla did not have this line.

The another strange thing is that it ignores my new continouscalendar.ini too.
 

The Following User Says Thank You to martonmiklos For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:46.