but once the user presses the power button slightly, the CPU might still be working but your app is paused, thus you can't use any timer event you set. e.g: vibrate the phone every "so much" seconds, even when the user locked the screen by the power button.