As Apple iPhone and iPod Touch have a hardware switch to turn on/off your iOS device into silent mode, but what if the switch is broken or damaged? Well, here is a solution to turn on/off your device without using the switch via settings-sound. To work this trick on your Iphone and Ipod Touch, your device must be a jailbroken one.
SilentMode Switcher is a Cydia tweak, which allows you to toggle silent mode using activator events and disable the hardware switch and also you may set your own events rather than default events. Just double tap on the lockscreen clock and hold status bar and it can be changed in the Activator settings.
You can grab SilentMode Switcher Cydia app from Cydia Store, which is available at ModMyi repository.