• In the Power and Battery settings menu, you can prevent your PC from going to sleep on both power and battery.
  • You can also modify the Power Plan settings in the Control Panel to prevent your PC from going to sleep.
  • Alternatively, you can use the Microsoft Power Toys app to disable sleep mode on your PC.

Method 1: Using the Settings App

Whether it’s something as simple as changing your desktop background or more advanced tasks like turning off sleep mode, you can accomplish it all with the Windows Settings app.

Step 1: Press the Windows key to open the Start Menu.

Step 2: Type Settings in the search bar and press Enter. Alternatively, you can press the Windows + I key to launch the Settings app.

Settings in the Start menu to Disable Sleep Mode in Windows 11 - 1

Step 3: Choose System from the left sidebar and Power & battery from the right pane.

Power & battery option in Settings - 2

Step 4: Click the drop-down icon next to Screen and sleep .

Screen and sleep option in Settings - 3

Step 5: Click the drop-down icon next to On battery power, put my device to sleep after, and choose Never from the context menu.

Never option in Settings - 4

Step 6: Under Screen and sleep section, choose Never from the drop-down next to the When plugged in, put my device to sleep after option.

When plugged in, put my device to sleep after option in Settings - 5

Method 2: Using the Control Panel

Step 1: Press the Windows key to launch the Start Menu , type Control Panel in the search bar, and press Enter.

Control Panel in Start Menu - 6

Step 2: Choose System and Security .

System and Security option in Control Panel - 7

Step 3: Choose the Power Options .

Power options in Control Panel - 8

Step 4: Click the Change plan settings option.

 Change plan settings option in Control Panel - 9

Step 5: Set the ‘Put the computer to sleep’ option to Never for On battery.

On battery option in Control panel - 10

Step 6: Similarly, choose Never for Plugged In.

Plugged In option in Control Panel - 11

Step 7: Click the Save changes button.

Save changes option in Control Panel - 12

Method 3: Using the Microsoft PowerToys

Microsoft PowerToys is a collection of utilities, and one of its many features is to disable the sleep mode. Download and install the app using the link below.

Download Microsoft PowerToys

Step 1: After the installation is complete, launch Microsoft PowerToys .

Step 2: From the PowerToys Settings, click Awake from the left sidebar and turn on the Enable Awake toggle.

Awake option in Microsoft PowerToys - 13

Step 3: Click the drop-down icon next to Mode and choose Keep awake indefinitely .

Keep awake indefinitely option in Microsoft PowerToys - 14

Step 4: Enable the toggle next to the Keep screen on option.

Keep screen on option in Microsoft PowerToys - 15

Next, restart your computer to save the changes. After restart, your computer will not go to sleep automatically.

Method 4: Using the Local Group Policy Editor

The Local Group Policy Editor is another Windows utility you can use to stop Windows 11 PC from going to sleep automatically.

Note: Group Policy Editor is only available for Professional, Enterprise, and Education edition of Windows. If you’re using Windows Home, you can’t access the Local Group Policy Editor. When you try, you’ll encounter gpedit.msc missing error when trying to access the Local Group Policy Editor. Check our guide on fixing the gpedit.msc missing error in Windows .

Step 1: Press the Windows + R keyboard shortcut to open the Run tool.

Step 2: Type gpedit.msc in the search bar and press Enter.

gpedit command in Run tool - 16

Step 3: In the Local Group Policy Editor, navigate to the following location:

Computer Configuration \Administrative Templates\System\Power Management\Sleep Settings

Step 4: Double-click on the Allow standby states (S1-S3) when sleeping (plugged in) policy.

Allow standby states (S1-S3) when sleeping (plugged in) option in LGPE - 17

Step 5: Choose Enabled .

Enabled option in LGPE - 18

Step 6: Click Apply and then OK to save the changes.

Apply option in LGPE - 19

Step 7: Double-click on the Allow standby states (S1-S3) when sleeping (on battery) policy.

Allow standby states (S1-S3) when sleeping (on battery) in LGPE - 20

Step 8: Choose Enabled .

Step 9: Click Apply and OK buttons to save the changes.

On battery Enabled in LGPE - 21

Was this helpful?