If your iPhone or iPad has a sleep button / activation broken (a top button or a side button depending on the device), can still lock the screen (or even restart) through an accessibility feature called AssistiveTouch. That's how.
AssistiveTouch allows you to simulate physical movements, Gestures and button presses with easy menu options on the touch screen of your iPhone or iPad. That includes locking your screen and restarting your device.. To enable it, first, open Settings on your iPhone or iPad.
In Settings, go to Accessibility> Touch.
On “Touch”, touches “AssistiveTouch”.
Next, turn on the switch next to “AssistiveTouch”.
A special AssistiveTouch button (which looks like a gray square with a white circle in the middle) will appear on the side of the screen.
As long as AssistiveTouch is enabled, this AssistiveTouch button will always remain on the screen, even though it can sometimes become transparent or temporarily disappear to get out of your way. You can reposition it by dragging it with your finger.
To put your iPhone or iPad to sleep without using the power button, tap the AssistiveTouch button once. In the menu that appears, touches “Device”.
In the device menu, touches “Lock screen”.
After touching, the screen will go dark. You just locked your device without using the top or side button!! Do you still feel like a hacker? AssistiveTouch is truly a very powerful tool.
Here may be something even better: you can also fully reboot your iPhone or iPad using AssistiveTouch. Simplemente toque el botón AssistiveTouch y posteriormente navegue hasta Dispositivo> Más y toque “Restart”. This is identical to turning off your device and then turning it on again..
RELATED: How to use an iPhone with a broken home button
How to wake up your iPhone or iPad without a power button
After locking the screen, you can wake up your iPhone or iPad again by pressing the Home button (if your device has one), tapping the screen on some devices (see Settings> General> Accessibility> Touch to wake up), or physically lifting the device (if enabled “Lift to wake up”). You can also try to use “Hey Siri” (if enabled) while your iPhone or iPad is locked.
If for some reason you cannot wake up the device again, charging it or receiving a notification will also turn on the screen, which will give you the ability to interact and unlock your iPhone or iPad.
At the same time, If you rely on your iPhone or iPad for critical tasks and can pay for a repair or replacement, consider contact Apple support or by visiting an Apple Store for repair alternatives. Good luck!
RELATED: How to set up and use Siri on an iPhone