Where or how do I set it not to go to sleep?

It's making me log in again and again this time (not quite as often as last night, though).