Difference between revisions of "Patch Phone Disable Various Call Sounds"
Hopspitfire (talk | contribs) (root -> accessing linux) |
Shane112358 (talk | contribs) |
||
Line 5: | Line 5: | ||
'''First''' | '''First''' | ||
# Gain [[Portal:Accessing_Linux | access to linux]]. | # Gain [[Portal:Accessing_Linux | access to linux]]. | ||
− | |||
− | + | <pre>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</pre> | ||
− | Look for | + | Look for the following at line 243 (WebOS 1.1) |
+ | <pre> | ||
+ | soundclass: 'notification' | ||
+ | </pre> | ||
+ | change to | ||
+ | <pre> | ||
+ | soundclass: 'none' | ||
+ | </pre> | ||
− | + | Now, add this same line after line 283 (webOS 1.1). So, change... | |
− | |||
− | |||
− | |||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
− | + | lightweight: true, | |
− | + | applicationStylesheets: ["stylesheets/ph | |
− | |||
− | |||
− | |||
− | |||
− | applicationStylesheets: ["stylesheets/ | ||
name: stageName, | name: stageName, | ||
− | "height": height | + | "height": height, |
}, | }, | ||
− | </nowiki></pre> | + | </nowiki></pre> to...<pre> |
− | |||
− | |||
− | + | lightweight: true, | |
+ | applicationStylesheets: ["stylesheets/ph | ||
+ | name: stageName, | ||
"height": height, | "height": height, | ||
− | + | soundclass: 'none' | |
}, | }, | ||
− | + | </pre> | |
Now restart the GUI. The luna rescan trick WILL NOT WORK with the phone app. | Now restart the GUI. The luna rescan trick WILL NOT WORK with the phone app. | ||
Line 52: | Line 52: | ||
mount -o remount,ro / | mount -o remount,ro / | ||
</nowiki></pre> | </nowiki></pre> | ||
+ | |||
== 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. |
Revision as of 16:04, 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
- 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.