Change your sleep settings in Windows

Your PC goes to sleep to save power when you are not using it. You can change how long it waits before sleeping, or turn sleep off entirely. The fastest way is through your power settings.

On Windows 10 or 11, right-click the battery icon in your system tray (bottom right corner) and select Power settings. Click Screen and sleep. Under "Sleep", change the dropdown next to When plugged in, put my device to sleep after to Never. If you are on battery power, you can set a different timer — for example, 30 minutes — so your PC still sleeps when unplugged but stays awake while charging.

If you do not see a battery icon, open the Settings app, go to System, then Power & battery, then Screen and sleep. The same options are there.

Key Takeaways

  • Windows sleep mode is controlled in Settings under Screen and sleep, where you can set it to Never or choose a specific number of minutes.
  • You can set different sleep timers for plugged-in and battery power — for example, never sleep when plugged in but sleep after 30 minutes on battery.
  • If your PC still sleeps after changing these settings, check your monitor's own power settings, which are separate from Windows sleep.
  • Some programs can prevent sleep automatically — for example, media players during playback — but you can also use the command line to block sleep while a task runs.
  • If sleep settings are grayed out or not working, a driver update or a wake timer in your BIOS may be overriding your choice.

Adjust your monitor's power settings separately

Your monitor has its own power-saving mode, separate from Windows sleep. Even if you set Windows to never sleep, your monitor may still turn off after a few minutes of inactivity.

Right-click on your desktop and look for Display settings or Graphics settings. In Display settings, scroll down and click Advanced display settings, then Power saving settings. Set the monitor timeout to Never or a higher number of minutes.

If that option does not appear, your monitor may have physical buttons on the front or back. Check the manual or the manufacturer's website for how to disable power saving on that specific model. Some monitors also have a menu you access by pressing a button labeled Menu or Settings on the monitor itself.

Stop programs from waking your PC

Even if you set sleep to Never, your PC may still wake up from sleep if a program or device is configured to do so. This is called a wake timer. Common culprits are scheduled tasks, USB devices like mice or keyboards, and network activity.

To see what is allowed to wake your PC, open Command Prompt as administrator (right-click the Start menu and select Terminal (Admin) or Command Prompt (Admin)). Type powercfg /lastwake and press Enter. This shows you what woke your PC the last time it slept.

To see all devices that can wake your PC, type powercfg /devicequery wake_armed. If you see a device you do not want waking your PC — for example, a network adapter or USB hub — you can disable it. Right-click the device in Device Manager, select Properties, go to the Power Management tab, and uncheck Allow this device to wake the computer.

Use the command line to prevent sleep while working

If you want your PC to stay awake only while a specific program is running — for example, while rendering video or downloading a large file — you can use the command line to block sleep temporarily.

Open Command Prompt as administrator and type powercfg /change monitor-timeout-ac 0 to set the monitor to never turn off while plugged in. When you are done, type powercfg /change monitor-timeout-ac 10 to set it back to 10 minutes (or whatever your preferred timeout is).

Alternatively, read a small utility like Caffeine (free, from Microsoft Store) or Don't Sleep (free, from the developer's website). These sit in your system tray and toggle sleep prevention on and off with one click. They are useful if you frequently switch between wanting sleep enabled and disabled.

Check your BIOS settings if nothing else works

If your PC still goes to sleep even after you have set Windows to Never and disabled wake timers, the problem may be in your BIOS — the firmware that runs before Windows loads.

Restart your PC and watch the startup screen. You will usually see a message like "Press Del to enter Setup" or "Press F2 to enter BIOS". Press that key repeatedly until the BIOS menu opens. Look for a setting called Power Management, ACPI, or Sleep State. Set it to Disabled or S5 Only (which means the PC can only turn off completely, not sleep).

BIOS menus vary widely by manufacturer. If you cannot find the setting, search for your motherboard model and "disable sleep BIOS" online, or check your motherboard manual. Save your changes and exit — usually by pressing F10 or selecting Save and Exit.

Troubleshoot if sleep settings are grayed out

Sometimes the sleep options in Settings appear grayed out or disabled. This usually means a driver is missing or outdated, or a group policy is blocking the change.

First, update your chipset and power management drivers. Go to your PC manufacturer's support website (Dell, HP, Lenovo, etc.), find your model, and read the latest chipset and power drivers. Install them and restart.

If you are on Windows Pro or Enterprise, a group policy set by your workplace or school may be preventing changes. Contact your IT department to ask if sleep settings are locked. On Windows Home, group policy is not available, so the issue is almost always a driver.

Frequently Asked Questions

Will leaving my PC awake all the time damage it?

No, but it will use more electricity and generate more heat. Modern PCs are designed to run continuously. If you are concerned about heat, make sure your case fans are clean and your PC has good airflow. Leaving it awake is safer than leaving it in sleep mode if you have a faulty power supply or motherboard.

Why does my PC go to sleep even though I set it to Never?

A wake timer, USB device, or network adapter may be waking it from sleep. Run powercfg /lastwake in Command Prompt to see what woke it. You can also check Device Manager to disable wake permissions on specific devices.

Can I set different sleep times for different users on the same PC?

Yes. Each user account has its own power settings. Log in as the user whose settings you want to change, open Settings, go to Power & battery, and adjust Screen and sleep. Other users will keep their own settings.

What is the difference between sleep and hibernation?

Sleep keeps your PC in low-power mode with RAM powered on, so it wakes when ready. Hibernation saves everything to disk and powers off completely, so it takes longer to wake but uses almost no power. You can enable hibernation in power settings if you want that option.

Do I need to disable sleep if I use remote access like Remote Desktop?

Yes. If your PC is asleep, remote access will not work until it wakes up. Set sleep to Never if you plan to access your PC remotely, or use a wake-on-LAN utility to wake it from another device first.