answered
2016-08-15 17:45:08 +0200
Another workaround is to store a beep sound file somewhere in your filesystem (e.g. /home/nemo/Music/Ringtones/Beep.mp3 ) and use dbus calls like these:
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"voip.alert.tone" string:"/home/nemo/Music/Ringtones/Beep.mp3"
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"ringing.alert.tone" string:"/home/nemo/Music/Ringtones/Beep.mp3"
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"sms.alert.tone" string:"/home/nemo/Music/Ringtones/Beep.mp3"
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"im.alert.tone" string:"/home/nemo/Music/Ringtones/Beep.mp3"
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"email.alert.tone" string:"/home/nemo/Music/Ringtones/Beep.mp3"
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"calendar.alert.tone" string:"/home/nemo/Music/Ringtones/Beep.mp3"
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"clock.alert.tone" string:"/home/nemo/Music/Ringtones/Beep.mp3"
This unfortunately does not solve the problem that the beep ringtone will sound repeatedly instead of beeping only once. This is not implemented in Sailfish as I can see. I tried this:
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"ringing.alert.type" string:"Beep"
But this has no effect. Someone more professional could investigate this problem.
If you want to revert to the original ringtone you can use the same method substituting the appropriate filename in /usr/share/sounds/jolla-ringtones/stereo/
, like this:
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"ringing.alert.tone" string:"/usr/share/sounds/jolla-ringtones/stereo/jolla-ringtone.ogg"
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"sms.alert.tone" string:"/usr/share/sounds/jolla-ringtones/stereo/jolla-messagetone.ogg"
etc...
Of course you can write a small shell script to change these values for you.
This could be emulated by using an ambiance with all tones set to a suitable beeping-audio-file.
evk ( 2014-01-01 23:36:04 +0200 )edit@evk Well, it is one possibility as a workaround. Though it seems that same image/photo can't be used in two different ambiances at the same time, would probably require creating a copy under different name first.
JiiHoo ( 2014-01-06 15:54:47 +0200 )editUsing this workaround the phone would beep several times when ringing, not only once as wanted.
Seppo ( 2014-03-13 09:47:15 +0200 )editIf the beep sound file has a long trailing silence it would take a while to loop.
vattuvarg ( 2016-08-15 18:01:37 +0200 )editSo technically speaking the question should be read as 'how to play ringtone only once'.
lakutalo ( 2016-08-16 11:15:10 +0200 )editngfd
might be another place to start finding one's luck. See this thread: https://together.jolla.com/question/83453/gui-for-configuring-non-graphical-feedback/