View Single Post
  #49 (permalink)  
Old 08-11-2008, 05:24 PM
jkusnetz jkusnetz is offline
What's Jailbreak?
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Does anyone know if there is a way to detect if the silent switch is activated through the command line? I added "play alert.caf" to my smsnotify script, but it will play the alert even if the phone is on vibrate only. I'd like to put an if statement around that play line and only play it if it's supposed to be making sounds.

I wonder if this could be done through Erica's deviceinfo -a program. In the help it says you can do deviceinfo -a backlight-level and others from the "io registry" I wonder if the silent switch is in the io registry? How do I find what values are there to look at?

Last edited by jkusnetz; 08-11-2008 at 05:24 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote