Don’t despair, folks! There is an easy workaround to this problem that doesn’t require going back to Apple for anything. This workaround allows you to completely stop using the iPhone 5 power button – as if it is not even there. It costs nothing, and is easy to use.
Here is the workaround, as first posted in part by Roukas and Thycos last year. I’ve combined their info plus more. The idea is to use the “Assistive Touch” feature as a substitute for turning the screen off or turning power off. How to turn either back on is also covered.
The workaround to enable not using the power button at all is as follows…
Go to Settings -> General -> Accessibility -> Assistive Touch -> On
Then activate by pressing the Home button, which puts you back to your main screen of icons.
This will give you a white circular icon (like a snowball) on the upper left screen and thru this circle you will be able to do all the functions of the physical buttons.
You can drag this icon to a more convenient place on your screen, if you wish. Now, here’s how to use the snowball icon in place of the power switch…
1. To turn off the screen, tap the snowball, then on the options shown, select Device then Lock Screen…
Snowball -> Device -> Lock Screen
2. To reactivate the sleeping screen, just press the Home button.
3. To turn power off, do the same as in #1, but hold down on the Lock Screen option until “Slide to power off” appears, then push the slider to the right to power off.
4. To power back on, just plug your iPhone into its wall charger, and it will power on.
Works like a charm, and saves paying for an unnecessary $280 repair!