How to Keep My PC from Going to Sleep: Simple Methods That Work
Windows and macOS both have aggressive sleep defaults designed to save power, but those defaults get in the way during long downloads, video calls, or remote access sessions. Knowing how to keep my pc from going to sleep is a matter of finding the right setting in just a few clicks. For laptops, the same problem surfaces on battery and plugged-in profiles separately, which means one change may not be enough. Stop laptop from sleeping requires adjusting both modes on most systems.
The methods below cover built-in OS settings, third-party tools, and command-line options so that any Windows or Mac user can find an approach that fits their setup. How to keep laptop from going to sleep permanently is a different question from doing it temporarily for one session, and this guide addresses both. Whether the goal is to stop computer from going to sleep during a long render or to keep computer from going to sleep every night, there is a setting or tool for it.
Settings and Tools to Stop Your Computer from Sleeping
On Windows 10 and 11, open Settings, navigate to System, then Power and Sleep. The sleep dropdown under “When plugged in” and “On battery power” both default to short windows, typically 10 to 30 minutes. Setting both to “Never” stops the computer from sleeping in normal use. For laptops, the plugged-in setting is the one to keep my pc from going to sleep during desk use. The battery setting is separate and affects mobile use.
The Control Panel approach works on older Windows versions: search for “Power Options,” open the active plan, click “Change plan settings,” and set sleep to Never for both battery and plugged-in. The Group Policy method serves IT administrators who need to stop computer from going to sleep across multiple machines simultaneously. The command for this in PowerShell is powercfg /change standby-timeout-ac 0 for plugged-in and powercfg /change standby-timeout-dc 0 for battery, where 0 means never.
On macOS, go to System Settings (or System Preferences on older versions), click Battery or Energy Saver, and drag the “Turn display off after” slider to Never. On laptops, the Power Adapter and Battery tabs each have their own settings. Enabling “Prevent your Mac from automatically sleeping when the display is off” in the same pane keeps the system running even when the monitor goes dark.
Third-party tools offer session-based control without changing permanent system settings. Caffeine (Windows and Mac) sits in the system tray and simulates a keypress every 59 seconds, keeping the PC awake until deactivated. Mouse Jiggler moves the cursor in a small circle at a set interval, which prevents idle detection without altering power settings. These tools are useful when keeping computer from going to sleep is only needed during specific tasks, such as a file transfer or a live stream.
For remote desktop users, a common problem is that the host machine sleeps and cuts the connection. The fix is to set the plugged-in sleep timer to Never and ensure Wake-on-LAN is enabled in the BIOS as a backup. Wake-on-LAN lets the machine wake from sleep on a network packet, but preventing sleep entirely is more reliable for consistent remote access.
Next steps: Pick the method that matches the need. For permanent changes, adjust power settings directly in the OS. For temporary control during specific tasks, use a tool like Caffeine or a PowerShell command. Check both the battery and plugged-in profiles on any laptop to confirm both are set correctly. Test by walking away for 20 minutes to verify the screen stays on and the machine stays active before relying on these settings for a long session.