Difference between revisions of "Patch Phone Disable Various Call Sounds"

From WebOS Internals
Jump to: navigation, search
('Disable Dropped/Missed Call Sounds' should be on the same page to avoid clutter.)
Line 55: Line 55:
 
== Notes for coders==
 
== Notes for coders==
 
Another way you can mod this is to change the popupalert style stage, which is the 3rd, optional param to createStageWithCallback().  This 3rd param can take a variety of options.  So far I've discovered: popupalert, dashboard, card, pin, emergency, activebanner, and banneralert.  You can also just leave it blank.  I tried them all. Some worked, some didn't.  Emergency is probably best left for the 911 functionality.  Banneralert, like popupalert will use a sound file by default.  Dashboard is the tiny little icon tray that appears at the bottom when you have mail or missed calls.  In my mind the best alternative to popupalert with sound off, would be to switch it to dashboard and then you just get a more subtle notification of a missed call.  If you use dashboard, you need not add the soundClass param above.
 
Another way you can mod this is to change the popupalert style stage, which is the 3rd, optional param to createStageWithCallback().  This 3rd param can take a variety of options.  So far I've discovered: popupalert, dashboard, card, pin, emergency, activebanner, and banneralert.  You can also just leave it blank.  I tried them all. Some worked, some didn't.  Emergency is probably best left for the 911 functionality.  Banneralert, like popupalert will use a sound file by default.  Dashboard is the tiny little icon tray that appears at the bottom when you have mail or missed calls.  In my mind the best alternative to popupalert with sound off, would be to switch it to dashboard and then you just get a more subtle notification of a missed call.  If you use dashboard, you need not add the soundClass param above.
 +
 +
 +
=Disable Dropped Call Sound=
 +
 +
The signal in my office isn't great and due to the Pre's poor tower handling abilities right now (soon to be updated via software, I hope, Palm?) I do get several dropped calls a week.  Which is annoying in and of itself but even worse it plays this ridiculous alert tone that taunts you into throwing the phone against the nearest wall, seconds after the call is dropped.  I needed this removed ASAP.
 +
 +
I used the link [http://www.webos-internals.org/wiki/Turn_Off_Missed_Call_Sound Turn Off Missed Call Sound] as a starting point.
 +
 +
==Procedure==
 +
 +
1. Gain access to linux, remount as writable and always backup:
 +
<pre><nowiki>
 +
mount -o remount rw, /
 +
cp /usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js /usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js.bak</nowiki></pre>
 +
 +
2. Look for this line QDLogger.log( "announceDisconnectAbnormal" (line 743 on WebOS 1.1 - it's not the first occurrence of this line.
 +
 +
3. A few lines below that it shows:
 +
 +
<pre><nowiki>
 +
this.appControl.createStageWithCallback({
 +
                                        lightweight: true,
 +
                                        applicationStylesheets: ["stylesheets/ph
 +
                                        name: stageName,
 +
                                        "height": height,
 +
                                        soundclass: "alerts"</nowiki></pre>
 +
 +
4. Change "alerts" to "none"
 +
<pre><nowiki>
 +
this.appControl.createStageWithCallback({
 +
                                        lightweight: true,
 +
                                        applicationStylesheets: ["stylesheets/ph
 +
                                        name: stageName,
 +
                                        "height": height,
 +
                                        soundclass: "none"</nowiki></pre>
 +
5. Save and quit vi<br>
 +
6. I always reboot after every mod
 +
<pre><nowiki>
 +
reboot</nowiki></pre>

Revision as of 10:07, 31 July 2009

Disable sound when you miss a call

If you're like me, you want to use the alarm clock and hear SMS alerts in case the NOC is on fire, but you don't want some random spam call to wake you up. Even though you turned the ringer volume down, the missed call alert will use the system volume setting and be as loud as your alarm/SMS. How annoying. Here is a very simple trick to make those missed call notifications silent.

First

  1. Gain access to linux.
mount -o remount rw, /
cd /usr/palm/applications/com.palm.app.phone/app/controllers/
cp announcer-assistant.js announcer-assistant.sav
vi announcer-assistant.js

Look for the following at line 243 (WebOS 1.1)

soundclass: 'notification'

change to

soundclass: 'none'

Now, add this same line after line 283 (webOS 1.1). So, change...

                                       lightweight: true,
                                        applicationStylesheets: ["stylesheets/ph
                                        name: stageName,
                                        "height": height,
                                },

to...

                                       lightweight: true,
                                       applicationStylesheets: ["stylesheets/ph
                                       name: stageName,
                                       "height": height,
                                       soundclass: 'none'  
                               },

Now restart the GUI. The luna rescan trick WILL NOT WORK with the phone app.

initctl stop LunaSysMgr && initctl start LunaSysMgr

Wait for the GUI to come back and then call your phone. Don't answer it, and then hang up...notice you'll still have your notification but no annoying loud ding.

Now remount read only

mount -o remount,ro /


Notes for coders

Another way you can mod this is to change the popupalert style stage, which is the 3rd, optional param to createStageWithCallback(). This 3rd param can take a variety of options. So far I've discovered: popupalert, dashboard, card, pin, emergency, activebanner, and banneralert. You can also just leave it blank. I tried them all. Some worked, some didn't. Emergency is probably best left for the 911 functionality. Banneralert, like popupalert will use a sound file by default. Dashboard is the tiny little icon tray that appears at the bottom when you have mail or missed calls. In my mind the best alternative to popupalert with sound off, would be to switch it to dashboard and then you just get a more subtle notification of a missed call. If you use dashboard, you need not add the soundClass param above.


Disable Dropped Call Sound

The signal in my office isn't great and due to the Pre's poor tower handling abilities right now (soon to be updated via software, I hope, Palm?) I do get several dropped calls a week. Which is annoying in and of itself but even worse it plays this ridiculous alert tone that taunts you into throwing the phone against the nearest wall, seconds after the call is dropped. I needed this removed ASAP.

I used the link Turn Off Missed Call Sound as a starting point.

Procedure

1. Gain access to linux, remount as writable and always backup:

mount -o remount rw, /
cp /usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js /usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js.bak

2. Look for this line QDLogger.log( "announceDisconnectAbnormal" (line 743 on WebOS 1.1 - it's not the first occurrence of this line.

3. A few lines below that it shows:

this.appControl.createStageWithCallback({
                                        lightweight: true,
                                        applicationStylesheets: ["stylesheets/ph
                                        name: stageName,
                                        "height": height,
                                        soundclass: "alerts"

4. Change "alerts" to "none"

this.appControl.createStageWithCallback({
                                        lightweight: true,
                                        applicationStylesheets: ["stylesheets/ph
                                        name: stageName,
                                        "height": height,
                                        soundclass: "none"

5. Save and quit vi
6. I always reboot after every mod

reboot