In this post will show you how to set computer never or sleep mode after a period of time not in using it, by default computer will put to sleep after a period of time not using it.
Open from control panel
Select Change when the computer sleeps
Put the Computer to Sleep
Open From Battery Icon