Your Mac will automatically go to sleep when you leave it alone long enough, but you can customize the sleep settings to your ...
You can keep the screen on when your MacBook or Windows laptop is closed by altering your laptop's power settings.