Active Topics

 


Reply
Thread Tools
Posts: 129 | Thanked: 32 times | Joined on Jun 2010
#21
Thanks 9000, for this beauty script. I wanted to know if you got it working to automatically exec on boot? I tried on the basis specified by Jussi in http://www.mynokiaworld.com/2010/02/...-on-your-n900/

But for some reason the process is not starting. could you please help me out. Thanks
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#22
Thanks, I'll show you how to make it starts on startup later on.

Regarding your issue, if you run it directly it should wait for a call indefinitely. Any strange message seen when it exits adnormally?
 
fcrochik's Avatar
Posts: 722 | Thanked: 1,223 times | Joined on Apr 2010 @ USA
#23
I am trying to implement this feature on my qt application but w/o much luck. Maybe we can compare notes:

1. I first tried to change the ring tone using dbus on the fly when receiving a call but it did not work. the phone just seems to go back to the default ring tone if you try to change it after the coming signal.

2. then I tried to just implement this solution but thought I could use no file extension for my symlink name first and then tried with mp3. It seems that the phone application either cache the file or resolves the symlink and store the absolute path when you first assign the ring tone to the profile.

did you try other methods before getting to this solution? is that why you created the sym link with a wav file extension?

p.s. it does not seem to work on mine regardless of the file extension... the first time I set the profile ring tone to the symlink it works... if I change the symlink target the phone keeps playing the original file.... am I missing something?

Thanks
__________________

My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases

Last edited by fcrochik; 2010-06-19 at 23:26.
 

The Following User Says Thank You to fcrochik For This Useful Post:
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#24
Hi frochik,

1. The reason to change symlink instead of changing the acually default is the speed. There might not be enough time between call coming and ringtone playing unless we can put the ringing on hold.

2. Changing the symlink serves as redirection of the pointer to the ringtone. I'd have changed the actually pointer directly if I knew where it is, so this method is in fact tricking the phone app to play different physical files by changing the symlink. It don't matter what default ringtone you choose, the script just make of the file name.

If it played the same ringtone over and over the symlink in question probably broken. You would like to rebuild manually. I think I'll modify the script to include this checking, thanks for your input.
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#25
I haven't tried this myself yet (gotta pick a day to settle down and do all the N900 stuff). Though how quick is it? Will it instantly play the new ringtone or is there a silent pause when someone calls?
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#26
Originally Posted by Laughing Man View Post
I haven't tried this myself yet (gotta pick a day to settle down and do all the N900 stuff). Though how quick is it? Will it instantly play the new ringtone or is there a silent pause when someone calls?
Oh I haven't notice the pause as the script is monitoring call rather then controlling it.

Actually I'd rather controlling it to prevent race condition. Anyone would show me how is much appreciated!
 
Posts: 129 | Thanked: 32 times | Joined on Jun 2010
#27
thanks for reply m8. i will wait for the startup and the complete package . with respect to process not starting, i meant the actual startup process defined in event.d and init.d. Script (directly executed) is running without problems. Thanks again m8, this a very very useful script, patching the disadvs of N900. As i said earlier, i would love to wait for this script to turn into a lovely feature (which is actually quite a necessity -- supported by almost all phones in this range!!) binded into the OS / contacts. Hopefully it happens by next OS update.
 
Posts: 29 | Thanked: 7 times | Joined on May 2010 @ Frankfurt, Germany
#28
Originally Posted by fcrochik View Post
1. I first tried to change the ring tone using dbus on the fly when receiving a call but it did not work. the phone just seems to go back to the default ring tone if you try to change it after the coming signal.

2. then I tried to just implement this solution but thought I could use no file extension for my symlink name first and then tried with mp3. It seems that the phone application either cache the file or resolves the symlink and store the absolute path when you first assign the ring tone to the profile.

p.s. it does not seem to work on mine regardless of the file extension... the first time I set the profile ring tone to the symlink it works... if I change the symlink target the phone keeps playing the original file.... am I missing something?
I am currently trying something similar and have more or less the same questions and problems regarding the caching behaviour for ringtones. I have started a new thread about this in the development forum, since I think this is a very specialised subtopic of this thread. If you'd like, you could join me there and maybe we'll be able to figure something out together.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#29
@getnani The script doesn't has much error handling so running it at startup would cause all the calls playing default Nokia ringtone when the script encountered any errors. I can post the startup script if you like anyway...

@Manul I've not encountered any caching problem, may it could be disabled somehow. I'll keep track of your post thanks.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#30
BTW, this script can be considered as a workaround solutions for caller-group ringtone as all it does is monitoring the calls. The race condition cannot be prevented in monitoring mode. Though I've not encountered the problem, but someone else did, and in fact it's possible.

I'd consider making a package out of it if I can figure out the to control the calling flow so as to prevent the race condition.

Please advise if you could find any hints. Thanks.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:32.