If a security lock is enabled, you can set the delay time after the screen darkens due to inactivity before the screen automatically locks and requires you to enter your unlock sequence.
From the Home screen, tap the Menu Key > Lock screen settings.
Tap Lock timer, then tap the setting you want to use.