Python Forum

Full Version: Preventing windows 10 laptop computer from going to sleep?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I'm trying to run a program overnight, but my laptop keeps going to sleep after about three hours even though I have it plugged in and set to not sleep (all four settings under Windows 10 sleep settings). Am I missing a setting, or is there any command I can use in my python script to keep the computer active so it won't sleep?
Thanks!
This is an OS issue, and has nothing to do with Python.
From Google:
Quote:Open Power Options by clicking the Start button, clicking Control Panel, clicking System and Security, and then clicking Power Options.
Under the plan that you want to change, click Change plan settings.
yes, setting via power options windows