Sometimes screenlock gets activated during playing?

When playing games with the Gamepad sometiems screenlock activates (since there was no input)… which is pretty annoying is there any solution for this?