Just like a regular desktop computer or laptop, your iPad will automatically lock itself - depending on whether or not you have enabled password-protection on your iPad, you will get either a prompt to "Slide to Unlock", or be prompted to enter a passcode to unlock your iPad. By default, the iPad will lock itself after 5 minutes of inactivity. This means that you leave your iPad on the side, without video or audio playback, and no iPad game in progress but paused, and do not interact with any of its buttons - whether physical controls on the hardware, or on screen buttons, sliders, etc. You will always know when your iPad goes into sleep or energy saving mode, because the screen will start to dim (the auto lock feature activates itself later on). This tutorial explains how to change how fast the iPad automatically locks itself.
Follow these simple steps to customize when your iPad locks (if ever!)
First, click on the round "Home" button to see your Home screens, and navigate to the one where you see the "Settings" button that displays three gears as its icon.
And this is how you change the timer after which your iPad will automatically lock!