Go Back   webOS Nation Forums > webOS apps and software > webOS development

Reply
 
LinkBack Thread Tools Display Modes
Old 09/01/2009, 09:16 PM     Thread Author   #1 (permalink)
Member
 
Join Date: Aug 2009
Posts: 292
Likes: 0
Thanks: 2
Thanked 38 Times in 15 Posts

Default Disabling System Tones During a Call

This patch modifies (/usr/palm/applications/com.palm.app.phone):

[code]
FormattedCall.js
sources.json
[/code]

If you have either of these files modified with that application, you run the risk of the patch not applying. Here is my current patch list so you know it does apply:

[code]
root@castle:/# quilt applied
/opt/src/patches/phonenoalert.patch
/opt/src/patches/contact-multitone.patch
/opt/src/patches/message-forwarding.patch
/opt/src/patches/enable-browser-downloads.patch
/opt/src/patches/add-onscreen-keyboard.patch
/opt/src/patches/longer_standby_times.patch
/opt/src/patches/state.patch
/opt/src/patches/radiopower.patch
/opt/src/patches/messagelandscape.patch
/opt/src/patches/add-delete-pages-in-the-launcher.patch
/opt/src/patches/amazon_evdo.patch
/opt/src/patches/message-tone-sounds-and-alerts.patch
root@castle:/#
[/code]

The patch you will want to apply is /opt/src/modifications/phone/phonenoalert.patch

If you are unsure of how to do this, I would wait a few days before attempting to install this.

If you experience issues, please send me the following or paste here:

[code]
cat /var/log/messages | grep SVC
[/code]

Let me know if you experience any issues with this.

09/02/2009 - New version that uses a different function to mute the sounds. Should no longer have a dialpad issue.

*** Known Bugs ***
None

Dialpad tones will not return after a call. This appears to be something with the Palm audio service......New patch should correct this issue
__________________
Need different SMS tones for contacts? Well take a look here...
http://forums.precentral.net/web-os-...h-contact.html
Disable annoying notifications in calls....
http://forums.precentral.net/web-os-...ml#post1863116

Thanks are always appreciated or for a really big Thanks you can always:

Last edited by Ikyo; 09/03/2009 at 01:04 AM.
Ikyo is offline   Reply With Quote
Old 09/01/2009, 09:24 PM   #2 (permalink)
Member
 
elryon's Avatar
 
Join Date: Jul 2009
Location: Arizona
Posts: 716
Likes: 0
Thanks: 33
Thanked 373 Times in 163 Posts

Default

Is the disabling of the button tones only while in a call? Or does it go back to normal when the call is ended?
__________________
Avatar on Left Patch
Call Rejecter Patch
Make your messanger look like the iphone's
SMS tone per Contact
No Alert During call

Thanks are always appreciated or for a really big Thanks you can always:
(it can go a long way to convince my fiancee that this is worth my time)

Please feel free to PM for more direct assistance.
elryon is offline   Reply With Quote
Old 09/01/2009, 09:32 PM     Thread Author   #3 (permalink)
Member
 
Join Date: Aug 2009
Posts: 292
Likes: 0
Thanks: 2
Thanked 38 Times in 15 Posts

Default

It doesn't disable them as in you can't press them to get into voicemail and such. It disables the tone they make when you are out of a call.
__________________
Need different SMS tones for contacts? Well take a look here...
http://forums.precentral.net/web-os-...h-contact.html
Disable annoying notifications in calls....
http://forums.precentral.net/web-os-...ml#post1863116

Thanks are always appreciated or for a really big Thanks you can always:
Ikyo is offline   Reply With Quote
Old 09/01/2009, 09:56 PM   #4 (permalink)
Member
 
Join Date: Jun 2009
Posts: 67
Likes: 0
Thanks: 10
Thanked 10 Times in 6 Posts

Default

I applied this patch and no issues for me so far Works great for me and does just what I needed it to do. Thanks.

On a side note, not to hijack your thread, but what does the radio power patch you also have applied do? Sometimes I wish there was a way to see a description of what a patch does maybe there is and I don't know about it.
hckyplayer024 is offline   Reply With Quote
Old 09/01/2009, 10:05 PM   #5 (permalink)
Member
 
alvin319's Avatar
 
Join Date: Jun 2009
Location: St Augustine, FL
Posts: 815
Likes: 0
Thanks: 38
Thanked 140 Times in 75 Posts

Default

No buttons sounds and no swoosh sound when you close a card. I also went in and changed to volume of the system sounds and still nothing.
__________________
If you feel that I have given you worthy advice please feel free to show your support. TY

alvin319 is offline   Reply With Quote
Old 09/01/2009, 10:09 PM   #6 (permalink)
Member
 
Join Date: Sep 2007
Location: Chattanooga, TN
Posts: 332
Likes: 4
Thanks: 26
Thanked 13 Times in 11 Posts

Default

How about it turns to vibrate mode while you are on a call.
casiouser is offline   Reply With Quote
Old 09/01/2009, 10:34 PM     Thread Author   #7 (permalink)
Member
 
Join Date: Aug 2009
Posts: 292
Likes: 0
Thanks: 2
Thanked 38 Times in 15 Posts

Default

It is going to be like this. If I do anything else, I will correct the button issue. The radio power patch allows me to shut just the phone off without having to go into airplane mode.
__________________
Need different SMS tones for contacts? Well take a look here...
http://forums.precentral.net/web-os-...h-contact.html
Disable annoying notifications in calls....
http://forums.precentral.net/web-os-...ml#post1863116

Thanks are always appreciated or for a really big Thanks you can always:
Ikyo is offline   Reply With Quote
Old 09/01/2009, 11:16 PM   #8 (permalink)
Member
 
Join Date: Oct 2007
Posts: 875
Likes: 0
Thanks: 75
Thanked 40 Times in 35 Posts

Default

Quote:
Originally Posted by Ikyo View Post
It is going to be like this. If I do anything else, I will correct the button issue. The radio power patch allows me to shut just the phone off without having to go into airplane mode.
great fix, let me thank you for your time and great work in this forum from all of us.
ericizzy1 is offline   Reply With Quote
Old 09/01/2009, 11:53 PM   #9 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes: 5
Thanks: 795
Thanked 1,165 Times in 801 Posts

Default

I applied the patch and I get no irritating tone but when I end the call I get no more audio message notification or email notifications it is all vibrations. I ran [code]cat /var/log/messages | grep SVC [/code]


[code]
root@castle:/var/home/root# cd /
root@castle:/# cat /var/log/messages | grep SVC
2009-09-02T03:44:37.092864Z [409] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC setting system volume to mute,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:44:37.811523Z [410] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC Initial Muted Value:false,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:46:23.152252Z [515] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC setting system volume to mute,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:46:24.179595Z [516] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC Initial Muted Value: true,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:47:57.190155Z [609] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC resetting system volume to true,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
root@castle:/#
root@castle:/#[/code]

Last edited by mamouton; 09/02/2009 at 12:12 AM.
mamouton is offline   Reply With Quote
Old 09/02/2009, 12:11 AM     Thread Author   #10 (permalink)
Member
 
Join Date: Aug 2009
Posts: 292
Likes: 0
Thanks: 2
Thanked 38 Times in 15 Posts

Default

That is strange. I see why it did it because it pulled the initial value as being true. Can you describe what happened with the calls? If this does happen, just go into your Sounds and lower and raise the volume. That should bring everything back. For some reason, it didn't call the reset on the mute. I was wondering if there might be some issues with the checks because Palm wasn't the nicest about how they set them.
__________________
Need different SMS tones for contacts? Well take a look here...
http://forums.precentral.net/web-os-...h-contact.html
Disable annoying notifications in calls....
http://forums.precentral.net/web-os-...ml#post1863116

Thanks are always appreciated or for a really big Thanks you can always:
Ikyo is offline   Reply With Quote
Old 09/02/2009, 12:21 AM   #11 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes: 5
Thanks: 795
Thanked 1,165 Times in 801 Posts

Default

It was just a regular from call from my cell phone and the mod worked no message tone or email tone came through while on the phone.

I did the slider trick at first it just vibrated then my message sound came up. I am sending a text message now to see what happens

Strange it wont get new messages now I am rebooting.

Edit: Even after doing the slider trick my messages still come in with a vibration. I have to completely reboot to get sounds for my messages, email, and calendar, but as soon as I get a call the tones are back to vibrate. Having applied the pager nagger mod helps me know I have a message because it is loud and it vibrates.

Last edited by mamouton; 09/02/2009 at 12:35 AM.
mamouton is offline   Reply With Quote
Old 09/02/2009, 12:29 AM   #12 (permalink)
Member
 
elryon's Avatar
 
Join Date: Jul 2009
Location: Arizona
Posts: 716
Likes: 0
Thanks: 33
Thanked 373 Times in 163 Posts

Default

is it changing the system volume to mute before doing anything else?
by the way.... great job, thanks
__________________
Avatar on Left Patch
Call Rejecter Patch
Make your messanger look like the iphone's
SMS tone per Contact
No Alert During call

Thanks are always appreciated or for a really big Thanks you can always:
(it can go a long way to convince my fiancee that this is worth my time)

Please feel free to PM for more direct assistance.
elryon is offline   Reply With Quote
Old 09/02/2009, 12:32 AM     Thread Author   #13 (permalink)
Member
 
Join Date: Aug 2009
Posts: 292
Likes: 0
Thanks: 2
Thanked 38 Times in 15 Posts

Default

Here is what I am seeing from the code:

First Call:
[code]
2009-09-02T03:44:37.092864Z [409] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC setting system volume to mute,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:44:37.811523Z [410] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC Initial Muted Value:false,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
[/code]
I am not showing an ending on this call. How did it end?

Call 2
[code]
2009-09-02T03:46:23.152252Z [515] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC setting system volume to mute,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:46:24.179595Z [516] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC Initial Muted Value: true,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:47:57.190155Z [609] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC resetting system volume to true,
[/code]

Since the first call did not end. At least not how the phone thought it should, it set the second call to stay muted. What did you do differently between the two calls?
__________________
Need different SMS tones for contacts? Well take a look here...
http://forums.precentral.net/web-os-...h-contact.html
Disable annoying notifications in calls....
http://forums.precentral.net/web-os-...ml#post1863116

Thanks are always appreciated or for a really big Thanks you can always:
Ikyo is offline   Reply With Quote
Old 09/02/2009, 12:34 AM     Thread Author   #14 (permalink)
Member
 
Join Date: Aug 2009
Posts: 292
Likes: 0
Thanks: 2
Thanked 38 Times in 15 Posts

Default

Quote:
Originally Posted by elryon View Post
is it changing the system volume to mute before doing anything else?
by the way.... great job, thanks
No, it is getting the current setting for mute/non-mute then storing that. It then mutes the sound. Once it detects the call ending, it resets the mute/non-mute.

[code]
if (this.lineNumber == 0 && this.state == "") {
Mojo.Log.error("SVC setting system volume to mute");
this.getSSStatus();
}
if (this.state == "Ended") {
Mojo.Log.error("SVC resetting system volume to %j",SSmute);
AudioService.muteSystemSound(SSmute);
}

[/code]
__________________
Need different SMS tones for contacts? Well take a look here...
http://forums.precentral.net/web-os-...h-contact.html
Disable annoying notifications in calls....
http://forums.precentral.net/web-os-...ml#post1863116

Thanks are always appreciated or for a really big Thanks you can always:
Ikyo is offline   Reply With Quote
Old 09/02/2009, 12:36 AM   #15 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes: 5
Thanks: 795
Thanked 1,165 Times in 801 Posts

Default

Quote:
Originally Posted by Ikyo View Post
Here is what I am seeing from the code:

First Call:
[code]
2009-09-02T03:44:37.092864Z [409] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC setting system volume to mute,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:44:37.811523Z [410] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC Initial Muted Value:false,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
[/code]
I am not showing an ending on this call. How did it end?

Call 2
[code]
2009-09-02T03:46:23.152252Z [515] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC setting system volume to mute,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:46:24.179595Z [516] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC Initial Muted Value: true,
file:///usr/palm/applications/com.palm.app.phone/index.html:0
2009-09-02T03:47:57.190155Z [609] castle user.err LunaSysMgr: {LunaSysMgrJS}
com.palm.app.phone: Error: SVC resetting system volume to true,
[/code]

Since the first call did not end. At least not how the phone thought it should, it set the second call to stay muted. What did you do differently between the two calls?
I just hit the end call button. My ringtone works fine the only issues it seems is getting audio notifications for email, messaging and calendar after the phone call ends.
mamouton is offline   Reply With Quote
Old 09/02/2009, 12:43 AM     Thread Author   #16 (permalink)
Member
 
Join Date: Aug 2009
Posts: 292
Likes: 0
Thanks: 2
Thanked 38 Times in 15 Posts

Default

Something different had to happen in that first call. It never received an ended message. I will change the patch to do a check for Ending or Ended. It will just reset the value twice, but that doesn't hurt anything.
__________________
Need different SMS tones for contacts? Well take a look here...
http://forums.precentral.net/web-os-...h-contact.html
Disable annoying notifications in calls....
http://forums.precentral.net/web-os-...ml#post1863116

Thanks are always appreciated or for a really big Thanks you can always:
Ikyo is offline   Reply With Quote
Old 09/02/2009, 12:44 AM   #17 (permalink)
Member
 
elryon's Avatar
 
Join Date: Jul 2009
Location: Arizona
Posts: 716
Likes: 0
Thanks: 33
Thanked 373 Times in 163 Posts

Default

for some reason it never found the state as ended after the first call... could be why it never resets the volume value...
__________________
Avatar on Left Patch
Call Rejecter Patch
Make your messanger look like the iphone's
SMS tone per Contact
No Alert During call

Thanks are always appreciated or for a really big Thanks you can always:
(it can go a long way to convince my fiancee that this is worth my time)

Please feel free to PM for more direct assistance.
elryon is offline   Reply With Quote
Old 09/02/2009, 12:46 AM   #18 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes: 5
Thanks: 795
Thanked 1,165 Times in 801 Posts

Default

Ok just let me know when you update the patch and I will try again.

Edit:
Ahh but to be rid of that blaring sound while you are on the phone almost makes it worthwhile.
mamouton is offline   Reply With Quote
Old 09/02/2009, 12:51 AM     Thread Author   #19 (permalink)
Member
 
Join Date: Aug 2009
Posts: 292
Likes: 0
Thanks: 2
Thanked 38 Times in 15 Posts

Default

Okay, I sent up the new patch. It is strange in your example. One of the calls did see an end and the other didn't. You keep saying 1 call. According to the logs, it says you made 2.
__________________
Need different SMS tones for contacts? Well take a look here...
http://forums.precentral.net/web-os-...h-contact.html
Disable annoying notifications in calls....
http://forums.precentral.net/web-os-...ml#post1863116

Thanks are always appreciated or for a really big Thanks you can always:
Ikyo is offline   Reply With Quote
Old 09/02/2009, 01:02 AM   #20 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes: 5
Thanks: 795
Thanked 1,165 Times in 801 Posts

Default

Ok I just applied the patch, rebooting to get the tones in the proper state. I have one question I notice on the formattedCall.js you say to make a change in thisdisplayLabel. but the new line is the exact same as the old line. [code] - this.displayLabel = (callMsg[lineNumber].contact.labelFormatted ? callMsg[lineNumber].contact.labelFormatted : "");
+ this.displayLabel = (callMsg[lineNumber].contact.labelFormatted ? callMsg[lineNumber].contact.labelFormatted : "");[/code]
mamouton is offline   Reply With Quote

 

Content Relevant URLs by vBSEO 3.6.0