This article explains how to prevent your Mac from going to sleep, including instructions to schedule an automatic sleep time ...
On your Mac, click the Apple logo > System Settings. Click Lock Screen. Use the drop-down menu beside Turn display off on ...
Fact checked by Nick Blackmer Blue light from phones may delay sleep by simulating daytime for your brain.  Experts suggest ...