SoundFix in iPhone4
Hi Ben
Thanks for giving this superb fix but unfortunatelly it is not working on my iPhone 4 with iOS 4.3.3 for permanently
Can you please help me to fix it?
When i am executing it shell script "ResetAudio.sh" in ssh comand window it is working fine but after some time when unlocking the phone from the stand alone mode, again the same issue arise. No Sound at all.
Help me dude !!!
So I also message zodttd and his response hinted at a fix. I'm guessing that was is happening is that there is in fact an hardware issue, and there for the phone thinks something is connected and hence locking the serial port.
I ssh'd into my phone and did a simple "touch" on the serial block device. Nothing happened and in fact the command was being blocked. So I killed the process and voila, my sound was back.
Next I had to get this to happen every time the phone was unlocked. I'd explain it but its easier to jsut tell you how to do it.
I created a file called "com.SoundFix.plist" with these contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.SoundFix</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/Library/Scripts/ResetAudio.sh</string>
</array>
<key>StandardErrorPath</key>
<string>/dev/null</string>
<key>StandardOutPath</key>
<string>/dev/null</string>
<key>UserName</key>
<string>root</string>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>1</integer>
</dict>
</dict>
</plist>
I placed that file in /Library/LaunchDaemon
After that I had to create this script: /Library/Scripts/ResetAudio.sh
looks like this.
#!/bin/sh
touch /dev/tty.iap&
sleep 1
killall touch
And make sure that the permissions are set to be executable.
Restart your phone and you are done.
*** The script isn't perfect, so you might get the pop up once after unlocking, but you will have sound immediately after that. I'm working the kinks out.
Spread the word,
Ben
Hi Ben
Thanks for giving this superb fix but unfortunatelly it is not working on my iPhone 4 with iOS 4.3.3 for permanently
Can you please help me to fix it?
When i am executing it shell script "ResetAudio.sh" in ssh comand window it is working fine but after some time when unlocking the phone from the stand alone mode, again the same issue arise. No Sound at all.
Help me dude !!!