Categories
Design

How to see which app is blocking your pc from going into sleep mode

When you just want your computer to go to sleep and stay asleep, this is how you can make sure that happens.

A computer’s sleep process is helpful in a couple of ways. First, it reduces the power consumption of the computer, saving you a few pretty pennies in the long run. Second, it can prevent pieces of your desktop from getting forever burned into your monitor.

Related stories

  • Stop applications from updating automatically in Windows
  • How to undelete files on Windows with Undela
  • How to set up timed Web site blocking in Windows

When your computer does not enter sleep mode like it’s supposed to, it can become rather annoying. Really, who likes a glaring (literally) distraction while watching a movie or having a bright light on in the room when you’re trying to sleep. Oh right, nobody. If your computer won’t acknowledge its bedtime and you don’t know why it’s being disobedient, the following steps may help you out.

Screenshot by Nicole Cozma/CNET

Open the Start menu and then enter cmd into the search box. Hit enter and the command prompt window should open for you. If not, click it in the search result list.

Note: it is possible that you will need administrative privileges to complete the next part successfully. If you are having trouble, you can attempt to run cmd as Administrator. To do this, search for cmd again, and then right-click it and select Run as administrator.

Now that you have the command prompt window open, enter the following at the command prompt:

If any process or device is preventing your system from going into sleep mode, information about it will be displayed here. The program will attempt to give you precise information on the disturbance, but it’s not always successful.

In the above example, a Skype call is preventing the computer’s sleep process, but the program was less than successful (read: it failed) at diagnosing this. Still, if you know what your computer has been doing over the past day, even a basic hint like “An audio stream is currently in use” can help point you in the right direction toward fixing the problem.

Have you ever intended your computer to go back to sleep mode only to find that it is still turned on? In this article, we will guide you through the whole procedure to see which application prevents your PC in Windows 10 from going to sleep.

See which application prevents your PC in Windows 10 from going to sleep

To see which application prevents your PC in Windows 10 from going to sleep, follow this procedure step by step.

Click the Search button on the taskbar. Type Command Prompt in the search box and then right click on the Command Prompt option. Then click the Run as administrator option as the following image is showing.

How to see which app is blocking your pc from going into sleep mode

As you click the Run as administrator option, the following editor will appear on your screen.

How to see which app is blocking your pc from going into sleep mode

Type the following command into the Command Prompt editor.

Then the following output will appear on your editor screen.

How to see which app is blocking your pc from going into sleep mode

It is showing which application is stopping the PC from going to sleep.

Conclusion

By following this procedure, you will be able to see which application prevents your PC in Windows 10 from going to sleep.

Need to quickly turn on your PC from another room in your house? With Wake-on-LAN, you can. Here’s how to set it up and why you would want to use it.

Ever wish you could wake your computer out of sleep mode without trudging over to it and pressing the power button? Wake-on-LAN allows you to turn your computer on using its network connection, so you can start it up from anywhere in the house with the tap of a button.

For example, I often use Chrome Remote Desktop to access my workstation upstairs. But if my workstation is sleeping, I don’t need to go upstairs and turn it on. Wake-on-LAN allows me to wake that computer up with a “magic packet” sent from my phone or laptop, so I can remote in without hassle.

Does Your Computer Support Wake-on-LAN?

Wake-on-LAN has a few caveats when it comes to support. First, the network card of the computer being woken up needs to support the feature. Pretty much any modern Ethernet adapter will support Wake-on-LAN, but wireless adapters rarely do.

This means the device sending the magic packet can be on Wi-Fi, but the one receiving it will likely need to be plugged in via Ethernet for this to work. You’ll have to check your computer’s documentation or BIOS to see if it supports Wake-on-Wireless-LAN (or Wake-on-WLAN).

Second, Wake-on-LAN is designed to wake up another computer on your network, so it won’t be able to wake up computers on another network—say, if you’re at Starbucks and want to wake up your desktop back home. There are ways to make this work, but it’s a bit outside the scope of this guide, so we’ll point you in the right direction as best we can.

Enable Wake-on-LAN in the BIOS

You will first need to enable Wake-on-LAN at the hardware level in your computer’s BIOS. To do so, reboot your computer and press a key at the boot screen—usually Delete, F2, or some other function key (it’ll usually say on screen). Once you enter the BIOS menu, you’ll need to poke around for the Wake-on-LAN option.

On some machines, it will be very clearly labeled in the sleep and wake settings. In other cases, like on my MSI motherboard, it is part of the Resume By PCI-E Device setting. You can see in the screenshot above that this setting’s description mentions “integrated LAN controllers,” which is exactly what we’re looking for. Toggle that setting to Enabled.

That’s all I needed to do on my machine, but there may be other sleep or hibernate settings you have to tweak here. It varies from PC to PC, so you’ll just have to do a little trial and error if you run into problems.

Enable Wake-on-LAN in Windows

Once rebooted into Windows, click the Start menu and search for “Device Manager.” Launch the Device Manager, find the Network Adapters section, and expand it to reveal your network interfaces. Right-click on your Ethernet adapter—mine is called “Intel(R) l211 Gigabit Network Connection”—and select Properties.

In the Advanced tab, scroll down to Wake On Magic Packet and ensure it is enabled using the drop-down box on the right. (This option wasn’t available on all of my test machines, but Wake-on-LAN still worked on each of them, so don’t worry if you don’t see it.)

Next, click the Power Management tab in that same window and check two boxes: Allow This Device to Wake the Computer, and Only Allow a Magic Packet to Wake the Computer. Click OK and exit the Device Manager.

Some computers may only support Wake-on-LAN from sleep, while others may allow you to wake up from a powered off state, so you may need to tweak settings in your BIOS or in Windows’ Control Panel under Hardware and Sound > Power Options > System Settings.

Some people find that they need to disable Fast Startup from this page, though it worked fine for me. Again, you may need to play around with settings if you find Wake-on-LAN doesn’t work properly.

Wake Your Computer With the Right App

Finally, to wake up your computer over the network, you’ll need a Wake-on-LAN app on another device, such as your phone or laptop. Some programs already come with Wake-on-LAN built-in, including ones you already own. In other cases, you may need a separate program to wake up your PC.

In TeamViewer, click the Wake Up button to wake up any sleeping PC connected to your TeamViewer account. You’ll need to check the documentation for your own remote access tool to see if it supports Wake-on-LAN, and what settings you need to enable for it to work.

If you’re trying to wake a PC from another Windows machine, I recommend NirSoft’s WakeMeOnLan. It will scan your network and provide a list of devices, so you don’t have to remember the correct IP address every time. Just click the machine you want and hit the Wake Up button.

Depicus is another good tool, but is a bit more advanced. You haver to enter the IP address, MAC address, subnet mask, and port number for the remote PC.

If you don’t have a PC handy, you can use a mobile app like Wake On Lan (Android) or Mocha WOL (iOS). They work the same way as the desktop apps above: you can either scan your network for devices, or enter the IP and MAC address of the computer you want to wake up.

If all goes well, your computer should wake right up when you hit the Wake Up button. If not, check its BIOS settings, Windows settings, and the configuration of your Wake-on-LAN app to make sure everything is set properly for your specific hardware.

If you want to wake up your computer quickly without scanning each time, it’s probably a good idea to set a static IP address for your computer on your router, so it doesn’t change.

Wake-on-WAN

If you’re just trying to wake up your computer from the other side of the house, you can stop here—you’re done! But there are times where you might want to wake your computer up when you’re away from home, like when you’re on vacation or working at a coffee shop. This is known as Wake-on-WAN, and it’s much more complex.

  • ‘)” data-event=”social share” data-info=”Pinterest” aria-label=”Share on Pinterest”>
  • ‘)” data-event=”social share” data-info=”Reddit” aria-label=”Share on Reddit”>
  • ‘)” data-event=”social share” data-info=”Flipboard” aria-label=”Share on Flipboard”>

How to see which app is blocking your pc from going into sleep mode

Related

  • How to Put a Computer in Pairing Mode
  • How to Reset an iPod Shuffle That Won’t Add Songs
  • How to Disable Auto-Detect on a Dell Monitor
  • How to Remove Scanners & Cameras From My Computer
  • How to Activate a Hannspree Webcam

Microsoft Windows provides Power Options that enable you to adjust the sleep mode and screen display to suit your workflow. If your computer fails to wake up quickly from sleep mode, or the display turns off, changing the Power Options will avoid these interruptions. Windows includes a list of time settings, ranging from five minutes to Never, to activate the sleep mode. Selecting “Never” will turn off your computer’s sleep mode and keep your current work visible on the screen and ready for your next task.

Press the “Windows” key, type “Control Panel” to bring up the Apps page and then click “Control Panel” to open the window.

Click “Power Options” to open the window and then select “Change When the Computer Sleeps” in the sidebar to open the Edit Plan Settings window.

Click the “Turn off the Display” drop-down list and then select “Never.”

Click the “Put the Computer to Sleep” drop-down list and then select “Never.” Click “Save Changes” to close this window.

Click “Close” to close the Power Options window. Now your computer and screen display will not go into sleep mode.

I develop an application in c++ with Qt and visual studio 2015.

I want to know how to prevent the application form going to sleep when my application is running. My application should be always running in background and responding to the user commanding it by voice.

Is there any to prevent windows from going to sleep when my application is running?

2 Answers 2

SetThreadExecutionState function

Enables an application to inform the system that it is in use, thereby preventing the system from entering sleep or turning off the display while the application is running.

Read more about the API here: SetThreadExecutionState

How to see which app is blocking your pc from going into sleep mode

function again), until the application exits.

The document of API SetThreadExecutionState recommended by Martin Bonner and ddacot explained it pretty clear.

According to your description, you should put the following function in main().

According to the document,

ES_CONTINUOUS informs the system that the state being set should remain in effect until the next call that uses ES_CONTINUOUS and one of the other state flags is cleared.

ES_SYSTEM_REQUIRED forces the system to be in the working state by resetting the system idle timer.

ES_AWAYMODE_REQUIRED forces media applications to run in the background, so that you can call your application by voice.

Tuesday, February 9, 2021

If you leave Windows 10 system idle for a while, whether you are on the desktop or your screen is locked, then it will eventually go to Sleep mode. This is a system preset where you don’t have to set anything up though you can customize the idle timeout or schedule when the system sleeps. For Windows 10 system to go to sleep, inactivity timeout is important but user activity is not the only thing that can stop that. Background apps and processes may prevent the system from going to sleep. Unfortunately, there is no simple GUI-based method for viewing sleep-blocking apps on Windows 10. That said, you can use a simple command line command to get the job done.

How to see which app is blocking your pc from going into sleep mode

View apps preventing sleep on Windows 10

To see which applications are preventing the system from going to sleep, you need administrator rights. This is because the command checks the instructions sent to the operating system’s source management policy.

1. Open Command Prompt with administrator privileges.

2. Run the following command

powercfg /request

3. The command will return a list of processes and apps that are preventing Windows 10 from going to sleep.

How to see which app is blocking your pc from going into sleep mode

Results are not presented in the most user-friendly format; That is the nature of the information you will get from command line tools. That said, here is a simple breakdown of the information you can see.

  • Display: This will show the processes that have taken over the screen, for example an app in full screen mode. This could be a media player like the Movies & TV app, or it could be a presentation software like PowerPoint. It could also be a screen recording tool like OBS.
  • System: This will show system processes even though system processes may be invoked by other running applications. For example, if a sound stream is playing, the audio driver will be in use and it appears to prevent the system from going to sleep. Usually, you will be able to know which apps are using the audio device on your system, so getting rid of this app is not too difficult.
  • Awaymode: This option shows apps separately. It is the command that applications send to Windows 10 asking it to keep the system active. Programmable applications do this.

Some apps need to prevent sleep mode to work. Sleep mode won’t prevent the system from locking but as long as the system is awake, whatever the app needs to do, for example file processing, the app can still do it. You can leave the system knowing that whatever you have set up will be done by the time you get back to work.

While using Windows PC, you must have noticed that when the PC is not at use for several minutes, it goes to sleep. This sleep transitions help in saving battery drainage and is therefore useful for your computer. However, if you do not want your computer to go to sleep, then you can turn a feature that will give ability to applications to prevent the sleep transitions. if you turn on this ability, then applications won’t allow your computer to go into any of Hybrid sleep, Stand By or Hibernate mode. It can be accomplished by changing some policy setting in the Local group policy Editor. This policy setting allows you to turn on the ability for applications and services to prevent the system from sleeping. If you enable this policy setting, an application or service may prevent the system from sleeping (Hybrid Sleep, Stand By, or Hibernate). If you disable or do not configure this policy setting, users control this setting.

1. Press Win+R to open Run window.

2. Type gpedit.msc and hit Enter to open the Local Group policy Editor.

How to see which app is blocking your pc from going into sleep mode

3. Now go to the following location Computer Configuration > Administrative Templates > Windows Components> System > Power management > Sleep Settings.

How to see which app is blocking your pc from going into sleep mode

4. In the right panel, you will find the policy setting Turn on the ability for applications to prevent sleep transitions. Double tap on it to edit the policy.

How to see which app is blocking your pc from going into sleep mode

5. If you want to allow apps to prevent your computer to sleep, then tap Enable. Go to Step 7.

How to see which app is blocking your pc from going into sleep mode

6. If you want to disable the option, click on Disable.
7. Click OK and then Apply.
8. Close Local Group Policy Editor.

About Debaleena

Happiness is that best therapy. Use it to heal yourself and then others!

How to see which app is blocking your pc from going into sleep mode
. Download (176 KB)
. Extra Info
. FAQ

Don’t Sleep is a small Freeware Windows program to prevent system shutdown, Standby, Hibernate, Turn Off and Restart.

Especially when old Programs run on Windows 10, 8.1, . . Here’s more aggressive power-saving features with new rules.

But not only that, it also prevents login off the computer, and the deactivation of the monitor or activation of the screen saver.

Of course you can also manually disable all the options and then activate again, but with Don’t Sleep one can save now many hand moves and also save time! And it’s easier than ever.

Apart from the fact Don’t Sleep has a timer that allows time control unblock, or shutdown the computer for a specified time.

A tool that helps you get a better grip on Windows energy options on all MS Windows operating systems!

Key Features in Don’t Sleep:

For what! Prevent system shutdown, Standby, Hibernate, Turn Off and Restart?

The reason for the development of the program is that some programs with a longer runtime have not considered this new power-saving features on the windows OS.

You can also manually customize the window power saving features or disable all the options and then reactivate them again, but you can save the time when use Don’t Sleep. Don’t Sleep can also serve as a general protection if you have started a background service or application and want to prevent turn off of the computer by itself, or other persons ergo accounts.

Don’t Sleep has a timer that allows you to disable blocking with a timed manner, or to shut down the computer at a certain time. This is a practical function that prevents the PC to running unnecessarily, since not every PC is equipped with a quality power supply that consumes 1Watt in standby mode.

How does the program work?

Depending on the setting, Don’t Sleep reports to the operating system that it has very important tasks to do if the screen saver is to be activated or the monitor is to be deactivated. Likewise, it notifies the system that it has the highest shutdown priority to prevent other programs from receiving the shutdown command before “Don’t Sleep” and thus possibly closing before “Don’t Sleep” can intercept it.

Supporten OS and Usage

However, you can use this no sllep solution without hesitation also on older versions of Microsoft’s Windows operating systems whether it’s a Windows desktop, tablet, Surface Pro / Go, or even a server operating system.
It is a simple yet effective tool, use it and get in touch with the benefits in commercial, business and private usage. The prevent system shutdown, standby, hibernate is suitable for: Windows 11, Windows 10, Windows 10 Pro, Windows 10 Enterprise, Windows 10 Home, Windows 8.1, Windows 8.1 Enterprise and Pro, Windows 8, Windows 8 Enterprise and Pro, Windows 7, Windows 7 Enterprise, Windows 7 Home Basic, Windows 7 Home Premium + Professional, Windows 7 Starter + Ultimate, , X64, x86 and x32 all Windows, MS Windows Server 2019, 2016,2012, .

Installation

Don’t Sleep does not have to be installed and can be executed easily from the desktop, and can be carried on a small USB-Stick or other memory device.

To prevent Windows from going into standby / sleep after certain period of inactivity you can use free utility developed by David Anson called Insomnia. You can download from here or from author’s MSDN blog.

How to see which app is blocking your pc from going into sleep mode

There is no need to install anything, simply unzip the file and run either 32 or 64 bit version depending on your Operating System. While utility is running computer will not go into sleep mode because of inactivity.

This, however, doesn’t prevent computer from going to sleep if user presses sleep button in the start menu or on the keyboard.

To disable sleep mode completely you can use Local Group Policy:

  • Launch Local Group Policy Editor (gpedit.msc)
  • Navigate to Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings
  • Open Policy called Allow Standby States (S1-S3) When Sleeping (Plugged In) and set value do Disabled
  • If necessary also do the same for Allow Standby States (S1-S3) When Sleeping (On Battery)

How to see which app is blocking your pc from going into sleep mode

Since I needed to enable / disable sleep mode via Group Policy quite often, I created quick and dirty AutoIt script that opens Local Group Policy Editor and navigates to the correct GP:

This policy will disable all sleep modes completely.

Put programs into sleep mode in Windows 10!

If you have been using Windows 10 for a while, you might know that the operating system allows users to temporarily disable/enable certain apps & processes via the task manager. Few apps were meant to run in the background, even if you are not using them. For example, the antivirus program runs in the background all the time to protect your computer even if it’s idle.

Like that, some useless apps & processes also run in the background. These apps run in the background and consume RAM and CPU usage. Sometimes, they even affect the performance of your device. Windows 10 offers you a feature that allows you to choose which apps and programs can run in the background to deal with such things.

It’s not an automatic setting; you need to manually enable/disable background apps. So, if you are interested in knowing how to put programs to Sleep in Windows 10, continue reading the article.

Steps to Put Programs to Sleep Mode in Windows 10

In this article, we will share a step-by-step guide on how to put programs to sleep mode on Windows 10 computer. The process will be straightforward; follow some of the simple steps below.

1. Disable Background Apps

In this method, we will utilize the Windows 10 Settings app to put programs into sleep mode. Follow the steps given below.

Step 1. First of all, click on the Start button and select ‘Settings’

How to see which app is blocking your pc from going into sleep mode

Step 2. On the Settings page, click on the ‘Privacy’ option.

How to see which app is blocking your pc from going into sleep mode

Step 3. On the left pane, click on the ‘Background Apps’ option.

How to see which app is blocking your pc from going into sleep mode

Step 4. On the right pane, you will find two options –

Background Apps: If you disable this feature, no apps will run in the background. They will go to sleep mode once they are closed.

How to see which app is blocking your pc from going into sleep mode

Choose Which apps can run in the background: If you have enabled the background apps, you need to select which apps will run in the background.

How to see which app is blocking your pc from going into sleep mode

Step 5. Select the option that suits you best.

That’s it! You are done. This is how you can put apps to sleep mode in Windows 10.

2. Disable Programs from Startup Manager

The above method works only with universal apps. Some programs run at the startup and they won’t show up in the app panel. So, in this method, we need to disable apps that run during the startup forcefully. Let’s check out

Step 1. First of all, right-click on the Taskbar, and select ‘Task Manager’

How to see which app is blocking your pc from going into sleep mode

Step 2. On the Task Manager, click on the ‘Startup‘ tab.

How to see which app is blocking your pc from going into sleep mode

Step 3. Now select the apps that you don’t want to run in the background and click on the ‘Disable‘ option.

How to see which app is blocking your pc from going into sleep mode

That’s it! You are done. This is how you can disable programs from running at Windows 10 Startup.

So, this guide is all about how to put programs into sleep mode on Windows 10 computer. I hope this article helped you! Please share it with your friends also. If you have any doubts about this, let us know in the comment box below.

Your Mac computer is set to go to sleep after a certain amount of time in order to help conserve power or your laptop’s batteries. However, it can be annoying if your computer is going to sleep when you don’t want it to. Here’s how to turn off sleep mode on a Mac using System Preferences and keep it awake with third-party apps.

How to Turn Off Sleep Mode on a Mac Using System Preferences

To turn off sleep mode on a Mac, go to System Preferences > Energy Saver. Then tick the box next to Prevent computer from sleeping automatically when the display is off and drag the Turn display off after slider to Never.

  1. Open the Apple menu. You can do this by clicking the Apple icon in the top-left corner of your screen.
  2. Then select System Preferences.How to see which app is blocking your pc from going into sleep mode
  3. Next, select Energy Saver. This is the icon that looks like a light bulb. How to see which app is blocking your pc from going into sleep mode
  4. Tick the box next to Prevent computer from sleeping automatically when the display is off.
  5. Then untick the box next to Put hard disks to sleep when possible.
  6. Finally, drag the Turn display off after slider to Never.

How to see which app is blocking your pc from going into sleep mode

Note: If you are using a laptop, you will only see this option if you click the Power Adapter tab at the top of the window. You can also change these settings in the Battery tab as well.

How to see which app is blocking your pc from going into sleep mode

How to Turn off Sleep Mode on a Mac Using Apps

While it is easy for most people to prevent their Macs from going into sleep mode following the steps above, there are apps available that let you tweak your sleep settings even more.

Amphetamine

How to see which app is blocking your pc from going into sleep mode

Amphetamine is an app designed to keep your Mac wide awake by using triggers. You can easily set up the triggers to keep your Mac awake when an external display is plugged in, a specific app is running, and more. Then you can also toggle the on/off switch in the main interface to stop the triggers. You also have full control of how your computer behaves when you’re away, whether it goes to sleep, activates the screen saver, and many other actions.

How to see which app is blocking your pc from going into sleep mode

If you want to control your Mac’s sleeping preferences with a simple interface, then the Owly app is your best bet. This app features a small icon that lives in the Menu Bar at the top of your screen. Clicking it will open up a menu that lets you prevent your Mac from sleeping for a set amount of time.

Now that you know how to turn off sleep mode on your Mac, check out our guide on how to turn off sleep mode on a Windows 10 PC.

Windows 10 comes with a feature that allows apps to run in the background even when they are not started. This article will discuss how to put programs to sleep mode on your Windows 10 PC or laptop . Let’s get into this article!!

  • Open Settings and select Privacy
  • Go to the Background apps from the left side pane.
  • Toggle on/off the apps that you want to put sleep
  • Open Task Manager and select the Startup tab
  • Select the programs and click on Disable button.
  • Open Run command and execute the code MSConfig to open Microsoft Configuration Manager
  • Go to the General tab and click on Selective startup
  • Uncheck the Load startup items, then click on OK
  • For detailed information, follow the below-given instructions.

Why put the programs to sleep?

On Windows 10, many apps you download from the Microsoft Store. It will continue to run in the background, and it has additional features, such as the ability to download data, update Live Tiles, and show notifications.

Sometimes your computer feels slower than usual, and then the reason could be too many apps running in the background . So if you want your computer to be faster or consume less power but don’t want to uninstall any programs, you can put certain background apps to sleep .

Put programs to sleep from Windows settings:

To disable apps from running in the background wasting system resources, use these steps:

  • Launch Settings by pressing Windows Key + I.
  • Select the Privacy option.

How to see which app is blocking your pc from going into sleep mode

Privacy

  • On the left-hand side, scroll down until you find “ Background Apps .”
  • Here, you can get two options:
    1. Let apps run in the background – If you want to disable the background apps feature entirely, you can toggle on/off this option.
    2. Choose which apps can run in the background – If you choose this option by selecting the specific app, only that app will sleep.

How to see which app is blocking your pc from going into sleep mode

Select options

  • Please select any one of the options, and that’s it. Now it will put the disabled programs to sleep.

Disable programs from running from Task Manager/ Configuration Manager:

You can use the above method only for Windows universal apps , also known as Metro apps . If you want to prevent traditional Windows programs and executables from running in the background, you may use the Task Manager to disable it. Follow the below steps:

  • Open the Task Manager by pressing the Ctrl + Shift + Esc .
  • Select the Startup tab.

How to see which app is blocking your pc from going into sleep mode

Startup tab

  • Here you can select the programs that you don’t want to run in the background, and click on the Disable button.

How to see which app is blocking your pc from going into sleep mode

Disable apps

  • Once done, you have to do the below steps.
  • Open the Microsoft Configuration Manager from the Run command Run –> msconfig

How to see which app is blocking your pc from going into sleep mode

Run Command

  • You need to select the “ Selective startup ” and uncheck “ Load startup items “on the General tab.
  • Finally, click on the OK button. This step will make your system faster .

Now the apps and programs won’t consume any system resources until you start them. This step will increase the startup time of each application but will also improve system performance .

Wrap-Up:

You can use these methods covered in this chapter to put programs to sleep mode on Windows 10 . I hope you found this is helpful. Please comment below if you have any issues regarding this article or any unresolved queries . We will assist you. Thank You!!

Smartphones, Laptops & Tablets, Wearables and More

About Huawei, Press&Event, and More

Products, Solutions and Services for Enterprise

Products, Solutions and Services for Carrier

  • Africa
  • Asia Pacific
  • Europe
  • Latin America
  • Middle East
  • North America
  • Global

Go to ” Settings ” screen, click Display > Sleep in the pop-up list, select the Seep time of your preference.

How to see which app is blocking your pc from going into sleep mode How to see which app is blocking your pc from going into sleep mode How to see which app is blocking your pc from going into sleep mode

Note: If the sleep option is greyed out disable the “Power saving mode” going to Settings > Battery > Power saving mode.

Whenever you leave your computer unattended, you should either turn it off or manually activate the screen lock that requires you to enter your password to resume working. You should manually lock your screen even if your device is configured for an automatic screenlock after a set number of minutes. Locking your display screen will protect the information stored on or accessible from your device.

When you manually lock your screen, the computer is continuing to run in the background, so you don’t need to close out of documents or apps. You are just putting the display to sleep. You’ll be able to quickly unlock the screen when you return, without restarting your computer.

To manually lock your computer’s screen, complete the following steps.

Note: Your computer must be password protected before locking the screen.

To Lock:

There are three different ways to manually lock your screen on a Windows 7 computer:

Method 1:

On your keyboard, hold down the Windows Logo Icon key and the L key on the keyboard at the same time.How to see which app is blocking your pc from going into sleep mode

Method 2:

Using the Start Menu on the computer screen:

  1. Open the Start Menu by clicking on the Windows Logo icon, usually located in the lower left of the screen.
  2. Then click on the arrow next to the List of shutdown options.
  3. Then choose Lock in the popup list.

Method 3

Using the Keyboard:

  1. Press Ctrl, Alt and Delat the same time.
  2. Then, select Lock this computer from the options that appear on the screen.How to see which app is blocking your pc from going into sleep mode

To Unlock:

Press any button to wake the display up, Press Ctrl, Alt and Del at the same time. You will be asked to authenticate with your username and password.

To Lock:

There are three different ways to manually lock your screen on a Windows 10 computer:

Method 1

On your keyboard, hold down the Windows Logo Icon key and the L key on the keyboard at the same time.
How to see which app is blocking your pc from going into sleep mode

Method 2

Using the Start Menu on the computer screen:

  1. Open the Start Menu by clicking the Windows Logo icon (usually in the lower left of the screen).
  2. Next, click the Most Used icon on the upper left.
  3. Then, click the User Icon and choose Lock in the dropdown list
    . How to see which app is blocking your pc from going into sleep mode

Method 3

Using the Keyboard:

  1. Press Ctrl, Alt and Delat the same time.
  2. Then, select Lock from the options that appear on the screen.How to see which app is blocking your pc from going into sleep mode

To Unlock:

Press any button to wake the display up, Press Ctrl, Alt and Del at the same time. You will be asked to authenticate with your username and password.

To Lock:

There are two ways to manually lock your screen for these Mac computers:

Method 1

Using the Menu Bar on the upper right of the display screen.

  1. Click on the open lock.

Method 2

Using the Keyboard.

  1. If your Mac has an internal Optical Drive and an Eject key: Use the keyboard shortcut of holding down the Control+Shift+Power keys at the same time.How to see which app is blocking your pc from going into sleep mode
  2. If your Mac does NOT have an internal Optical Drive or an Eject key: Use the keyboard shortcut of holding down the Control+Shift+Power keys at the same time.How to see which app is blocking your pc from going into sleep mode

To Unlock:

Press any button to wake the display up and you will be asked to authenticate with your username and password.

How to see which app is blocking your pc from going into sleep mode

All Windows 10 devices ship with a feature called ‘sleep mode’ where the system simply goes into a low power state and remains that way.

After the rollout of September 2020 optional update, users are reporting that their computer keeps waking up from sleep mode. If it happens to you, there may be a few settings you can tweak to fix the problem.

The first step in figuring out problems with Windows 10’s sleep mode is determining what’s doing the waking. In this case, users discovered that “MoUSO Core Worker Process (MoUsoCoreWorker.exe)” resulted in sleep interruption of their devices.

USO Core Worker Process is a process that’s related to Windows Update and it could cause unwanted wakeups after you apply Windows 10 version 2004 and optional update is pending for installation.

“When I close the lid, press the power button, or select Sleep in the power menu or the win-x menu, instead of sleeping, the screen simply turns off, and my laptop does not go to sleep even after leaving it alone all night,” one user noted on Feedback Hub, and there are similar complaints on Microsoft’s forum.

The problem with sleep mode was first reported after the release of Windows 10’s May 2020 Update and it was fixed with Windows 10 KB4568831.

Now, less than a month later, the same problem with Windows 10 has reappeared, though it may not be affecting everyone.

As we mentioned at the outset, it appears that Windows Update is a fickle beast here and you may be able to solve this problem easily by diagnosing Windows Update.

How to fix sleep mode issues on Windows 10 after version 2004

One way to fix the problem is by using Windows Update’s Settings to schedule those updates and reboots and prevent the update service from running at odd hours. Once done, you would need to reboot your computer and try the sleep mode again.

If you’re unable to fix the sleep mode issues by tweaking your update schedule, you can also try these advance steps:

  1. Open Windows Search.
  2. Search for ‘Services.msc’.
  3. In the Services window, look for ‘Windows Update’ service.
    How to see which app is blocking your pc from going into sleep mode
  4. Click on Windows Update and select ‘Stop’.
  5. Click on the same entry again and select ‘Start’ and then select ‘Restart’.
  6. Go to Windows Update and click on Check for updates. Install the pending updates and reboot your device.

It’s worth noting that this is a temporary solution and a proper workaround is not yet available.

ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime.

In some desktop applications, a need arises due to which we need to keep the system active for longer durations. For example, during a file download or streaming audio/video. In such cases, we need to prevent the system from entering low-power mode. Else the application might be suspended from further execution. Electron provides us with a built-in powerSaveBlocker module for this very purpose. Using this module, we can control the system behavior and block the system from entering sleep mode. We can also restore the system to its original settings by disabling this power blocker. This tutorial will demonstrate the powerSaveBlocker module in Electron.

We assume that you are familiar with the prerequisites as covered in the above-mentioned link. For Electron to work, node and npm need to be pre-installed in the system.

powerSaveBlocker: The powerSaveBlocker Module is part of the Main Process. To import and use this Module in the Renderer Process, we will be using Electron remote module. For more details on the remote module, Refer this link.

  • Project Structure:
    How to see which app is blocking your pc from going into sleep mode

Example: We will start by building the Electron Application for the powerSaveBlocker module implementation by following the given steps.

dhlytle

Couriant

It does sound like you are having issues returning from sleep mode? If sleep mode is not needed but maybe a screen saver/locked screen that I would suggest turning off the sleep mode for the computer and then add the screensaver.

You may also need to update your drivers and/or BIOS.

DaveA

Are you sure that it went into the sleep mode?

Did you have a lot of data files and programs running before it went to this mode?
If so, it may take a while to copy back to RAM from the hard drive all of the open data and programs.

dhlytle

Are you sure that it went into the sleep mode?

Did you have a lot of data files and programs running before it went to this mode?
If so, it may take a while to copy back to RAM from the hard drive all of the open data and programs.

dhlytle

dhlytle

It does sound like you are having issues returning from sleep mode? If sleep mode is not needed but maybe a screen saver/locked screen that I would suggest turning off the sleep mode for the computer and then add the screensaver.

You may also need to update your drivers and/or BIOS.

Thanks for the suggestions.

Once I get into the computer, I will definitely move away for sleep mode. Seems like many people have had trouble with it. Don”t know why it took a year to bite me however.

First the question; How do I figure out what is preventing my Windows 7 computer from going into sleep mode?

Second; some background.

I’ve been struggling with this for a few days and am utterly perplexed. I setup sleep mode on my Windows 7 PC a few weeks ago, and all was well. The PC would sleep as expected and I was snuggly in knowing that my computer was saving power and some wear and tear on the components (we’ll leave the ‘is it better to sleep’ debate for another thread/day, please don’t start it).

Well, I noticed the other night that my system stopped ever going to sleep. I set the sleep time down to 1 minute and wandered fully away from the PC (ensuring that no errant mouse or keyboard movements would occur) and the PC never went to sleep. I’ve also observed this over longer intervals as well, such as overnight.

  • I have sleep mode enabled, of course
  • “multimedia settings – When Sharing Media” is set to allow the computer to sleep.
  • “powercfg -lastwake” show nothing of interest, since it never goes to sleep and can’t wake up.
  • “powercfg /requests” shows 3 entries – all “[DRIVER] ?”. I assume that 2 of these are my mouse and keyboard – as I’ve recently used them to run the powercfg command. I’m at a loss for the third though.
    • I’ve unhooked all USB peripherals save for my keyboard and mouse.
  • Wake on LAN is disabled in my BIOS.
  • I know that you can disable all apps from waking/preventing sleep – but I want the ability to remain for those apps that do legitimately need to keep the system awake.

So; does anyone know of a way to figure out what the 3rd phantom “[DRIVER] ?” is in powercfg /requests?

So your computer is set to go to sleep after a half hour of inactivity, but the darn thing never actually goes to sleep. Want to figure out what’s keeping it awake? Here’s a quick command for Windows and OS X that’ll let you know.

A lot of things can keep your computer from going to sleep, like downloading a file, opening a file on the network, or even a disconnected printer with an open job. Luckily, both Windows and OS X have an easy method for finding out what the problem is.

For Windows: Go to Start > Programs > Accessories, right-click on Command Prompt, and open it as an administrator. Then type:

It’ll let you know if anything is keeping the computer awake. In the screenshot above, for example, it told me that I had a file open in PotPlayer that was preventing my computer from sleeping (since the file resided on the network).

For Mac: go to /Applications/Utilities, open up the Terminal, and type:

It’ll tell you if a device is preventing sleep, and what process that is. Unfortunately, this one seems a little more finicky— some people are having problems where it only tells you that your computer’s being kept awake, but it doesn’t say by what. If you get stuck in that situation, check out Apple’s Help page on the subject . It lists a lot of common possibilities. Hit the link below to read more about each method.

Bosch 12V Brushless Drill/Driver Combo Kit

Lightweight, fast-charging, and powerful
The powerful impact driver hammer and anvil system provide up to 975 inch-pounds of torque. The drill and driver give you 300 inch-pounds of torque with a max speed of 1,750 RPMs.

In this article, we take you through how to disable suspend and hibernation modes on a Linux system. But before we do that, let’s briefly have an overview of these two modes.

When you suspend your Linux system, you basically activate or put it into sleep mode. The screen goes off, even though the computer remains very much powered on. Also, all of your documents and applications remain open.

Suspending your system helps save power when you are not using your system. Getting back to using your system requires a simple mouse-click or a tap on any keyboard button. Sometimes, you may be required to press the power button.

There are 3 suspend modes in Linux:

  • Suspend to RAM (Normal Suspend): This is the mode that most laptops automatically enter incase of inactivity over a certain duration or upon closing the lid when the PC is running on the battery. In this mode, power is reserved for the RAM and is cut from most components.
  • Suspend to Disk (Hibernate): In this mode, the machine state is saved into swap space & the system is completely powered off. However, upon turning it on, everything is restored and you pick up from where you left.
  • Suspend to both (Hybrid suspend): Here, the machine state is saved into swap, but the system does not go off. Instead, the PC is suspended to RAM. The battery is not used and you can safely resume the system from the disk and get ahead with your work. This method is much slower than suspending to RAM.

Disable Suspend and Hibernation in Linux

To prevent your Linux system from suspending or going into hibernation, you need to disable the following systemd targets:

You get the output shown below:

Disable Suspend and Hibernation in Ubuntu

Then reboot the system and log in again.

Verify if the changes have been effected using the command:

Verify Suspend and Hibernation in Ubuntu

From the output, we can see that all four states have been disabled.

Enable Suspend and Hibernation in Linux

To re-enable the suspend and hibernation modes, run the command:

Here’s the output that you will get.

Enable Suspend and Hibernation in Ubuntu

To verify this, run the command;

Verify Suspend and Hibernation in Ubuntu

To prevent the system from going into suspend state upon closing the lid, edit the /etc/systemd/logind.conf file.

Append the following lines to the file.

Save and exit the file. Be sure to reboot in order for the changes to take effect.

This wraps our article on how to disable Suspend and hibernation modes on your Linux system. It’s our hope that you found this guide beneficial. Your feedback is most welcome.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

We are thankful for your never ending support.

How to see which app is blocking your pc from going into sleep mode

Chronicle column mug of Helpline computer columnist Jay Lee photographed in the Chronicle studio Friday, April 20, 2007, in Houston. ( Photogapher / Chronicle ) Photogapher/Staff

Q: In the past I would have two or three Google Chrome windows opened with three or four tabs each, and my PC went to sleep as it should, as per my power settings. Now, all of a sudden, with all the same windows and tabs opened, it will not go to sleep. Basically I have to close down Chrome altogether if I want it to go to sleep. Is there a way to override whatever is keeping Windows awake when Chrome is open?

A: This appears to be a known issue with Google Chrome. If you have pages or tabs open with active content like music, videos or animation, this can cause the computer to believe that you are still actively using it and prevent the power mode settings from putting the computer to sleep and even prevent you from manually activating sleep mode.

There are two ways to prevent this from happening.

The first is to manually override the Chrome settings. To do this, click on Start and then type CMD. When you see the CMD icon, right-click it and select Run As Administrator.

In the command window that opens up, type in powercfg -requestsoverride PROCESS chrome.exe awaymode display system, and then hit Enter. This will allow the computer to go into sleep mode with Chrome open and running.

To disable the override, do the same thing and type powercfg -requestsoverride PROCESS chrome.exe and hit Enter.

The second option is to disable this in Group Policy.

Open the Group Policy Editor by clicking Start and typing in gpedit.msc, and then hit Enter.

Open Computer Configuration, Administrative Templates, System, Power Management and then Sleep Settings.

Download and try Outbyte PC Repair right now to see what it can do for your Windows.

Developed for Windows 10 (8, 7, Vista, XP)

The lock screen feature is a great addition to Windows as it allows you to lock your PC when it’s not in use to prevent unauthorized access. To use this feature, simply press the Windows + L keys, and voila! Your screen is locked. To access your desktop again, you need to enter your username and password.

While it’s obviously a handy feature, some Windows users have reportedly encountered problems with it. According to them, their computer automatically locks and goes to sleep mode.

If you are among the unlucky few who have been in such a situation, then you have come to the right place. We’ll discuss everything you need to know to stop your Windows 10 computer from automatically locking.

How to Stop Your Computer from Automatically Locking

If you are constantly being locked out of Windows 10, know that you are not alone. Again, many Windows 10 users around the world are complaining about the same error. Experts suggest that the most common culprit behind this issue is some problematic settings on your PC is. However, there are instances when malware entities are also to blame.

Pro Tip: Run a dedicated PC optimization tool to get rid of incorrect settings, junk files, harmful apps, and security threats that can cause system issues or slow performance.

So, to stop your computer from automatically locking Windows 10, we created this handy guide for you. Take note that while some of the solutions we have listed seem a bit obvious, sometimes the smallest changes are those that make a significant impact.

Solution #1: Disable the Lock Screen Feature

The first thing you have to do is to try to disable the lock screen feature. You can easily it on Windows 10. Simply follow these steps:

  1. Launch the Run utility by pressing the Windows + R keys.
  2. Into the text field, input gpedit.msc and hit OK.
  3. In the Local Group Policy Editor window that opens, go to Computer Configuration.
  4. Navigate to Administrative Templates > Control Panel > Personalization.
  5. Double-click on the Do not display the Lock Screen section.
  6. Tick the radio button next to the option that says Enabled.
  7. Hit Apply.

By now, your screen will not automatically lock. If it still does, then proceed to the next solution.

Solution #2: Change your lock screen timeout settings

The second solution we recommend is to disable or change your lock screen timeout settings. To make this as easy as possible, you can use a third-party app. In just a few clicks, you can already change your timeout settings.

Here’s a more detailed guide on what to do:

  1. Open the app of your choice.
  2. Go to Customization and navigate to Modern UI.
  3. Select Lock Screen.
  4. Here, you can alter the timeout settings to your preference.

If you do not wish to disable your lock screen, you may check your sleep timeout and screensaver settings. Sometimes, these features may cause your screen to lock automatically.

Solution #3: Disable the Dynamic Lock feature

Aside from the use of passwords and pins, your Windows 10 PC has this Dynamic Lock feature that allows you to secure your desktop when you’re away. It’s quite handy for those who always forget to lock their PCs.

This feature uses Bluetooth technology for it to work. Whenever your registered Bluetooth device is out of range, your PC is automatically locked.

If you have enabled this feature, make sure that your Bluetooth device is nearby to keep your screen from locking. Better yet, untick the “Allow Windows to lock your device when you’re away automatically” option.

Solution #4: Try to disable blank screensaver

Are you using a screensaver? If that is the case, make sure it is not set as blank. This could cause confusion in the long run because you can’t tell that a screensaver is active.

To check whether or not you are using a blank screensaver, follow the instructions below:

  1. Into the search bar, input screensaver.
  2. Select Change Screensaver.
  3. In the dropdown menu, check if you have set it to blank. If yes, then modify it. Select None.
  4. Hit Apply and exit the window.

Solution #5: Change your system’s unattended sleep timeout settings

The unattended sleep timeout settings is the idle timeout before your system goes to a low power sleep state. Located under Power Settings, this is usually set to 2 minutes by default, regardless of whether your PC is running on batteries or plugged into a power source.

To keep your Windows 10 screen from locking automatically, change the timeout settings to a higher value. But if this setting is not available on your device, add it manually using the PowerShell or Registry method.

The PowerShell Method

  1. Press the Windows + X keys.
  2. Select PowerShell (admin).
  3. Into the command line, input the following command: powercfg -attributes SUB_SLEEP 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 -ATTRIB_HIDE.
  4. Hit Enter.
  5. Close the PowerShell prompt.
  6. Check the Power Settings again and make the necessary changes.

The Registry Method

  1. Open the Registry Editor.
  2. Go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0.
  3. Here, change the current value of the Attributes key from 1 to 2. Doing this will show the System unattended sleep timeout setting in the Power Options menu.
  4. Now, you may try to check the Power Settings again.

Solution #6: Run a malware scan

If you have tried all the solutions above but to no avail, it is possible that the issue is triggered by a malware entity hiding in your system. The malware may have infected your important files and settings, causing your system to trigger your Windows 10 device to automatically lock the screen.

To get rid of any malicious threats hiding on your Windows 10 device, run a quick or complete malware scan. Open your preferred anti-malware program and let it do its job. Once done, it will show a list of potential threats and suggest fixes for each.

For better results, you may also run a PC repair scan to fix any issues caused by the malware entity.

Wrapping Up

We hope the information we have presented above was useful enough in dealing with the Windows 10 PC keeps getting locked automatically issue. If the problem persists, do not hesitate to seek help from Microsoft’s support team.

Do you know other possible reasons why the issue occurs on Windows 10 devices? We’d love to know. Share your ideas in the comment section.

[German]Users of Windows 10 version 2004 have been suffering for some time now from the fact that the sleep or standby mode may be blocked. The problem has been going on for some time and is likely to occur with the cumulative update KB4571744 from September 2020.

Problem with USO Worker since June 2020

With the Windows 10 May 2020 Update (Version 2004) some users have problems with the energy saving mode right from the beginning. I found the Microsoft Answers forum thread Windows 10 2004 Update – Sleep Mode Issue and Workaround from June 14, 2020. Someone there complains that it takes infinitely long to shut down to sleep mode. On September 5, 2020 a user in this Thead reported that his desktop system does not automatically go into sleep mode anymore:

My desktop PC has similar issues, won’t go to sleep at times even with nothing running I noticed hours after I stopped using it the monitor was asleep but desktop still had fans running and had not gone into sleep mode.

Also in July 2020, users noticed that the preview update KB4568831 prevents Windows 10 2004 from switching to sleep mode. The update was released on July 31, 2020 (see Windows 10 2004: Cumulative Update KB4568831). Responsible is the process MoUsoCoreWorker.exe (USO Worker), which prevents the system from entering the sleep mode and wakes up the system. I found this Microsoft Answers forum thread from June 2, 2020, which already clearly describes this problem and has now been expanded to many pages. The problem should have been fixed with the update KB4568831 from the end of July 2020.

Issues with .NET Framework Update KB4570721

At German site deskmodder.de I already came across this post from the colleagues these days, which describes the problem of the no longer working stand by mode (sleep mode). There the not installed optional .NET Framework Update KB4570721 is mentioned as the cause if Windows 10 does not want to go into energy saving or sleep mode. Actually the update should be installed, but Windows Update does not manage to do this and prevents a standby. Whether this is true can be found out with a test. Give the following command in an administrative command prompt:

a report is created. This report lists the power status queries for applications and drivers that prevent the computer from entering sleep or hibernation mode. Colleagues indicate in the article how to identify the devices that prevent the computer from entering standby (power-saving) mode. Shows up in the report under Execution:

Windows Update prevents the corresponding energy saving mode (standby). Then the Windows Update service should be stopped and restarted afterwards. Then check via Windows Update whether an optional update is now available. You should have this installed. With a bit of luck the problem will be solved.

Update KB4571744 blocks sleep mode

The cumulative Update KB4571744 s already tested since August 2020 as a preview and should fix numerous bugs in Windows 10 May 2020 Update. But the update is also responsible for other subsequent errors. Some users report the problem of a no longer working ‘sleep mode’. Windows Latest now reports here that the cumulative update KB4571744 is responsible for the problem of a malfunctioning sleep mode for some users. The article refers to the Microsoft Answers forum post of June 2, 2020 and the last post of September 2020 mentioned above.

So it seems that the problem is back or has never been solved. As a workaround it is suggested to stop the Windows Update service and restart it afterwards. Then check via Windows Update whether an update is now available. You should have it installed and restart the machine. Afterwards the problem with the sleep mode (hibernation) could be solved. All in all, the whole update process seems to be quite shaky now. Anyone affected by the error?

What to do if Windows 10 keeps going into sleep mode? Some users reported that they encountered a tricky issue that their Windows 10 computer goes to sleep after 1 minute or 2 minutes randomly. It is very annoying as you have to constantly wake up your computer so that you can use it again. Follow the below troubleshooting methods to fix this problem.

How to see which app is blocking your pc from going into sleep mode

Method 1: Check Power Plan Settings via Control Panel

If your power plan setting is set to put the computer to sleep in a very short time, maybe you will face the issue that computer goes into sleep mode randomly. So the first thing that you should do is to check the power plan settings and edit it if necessary.

Step 1: Open Control Panel and enter Change when the computer sleeps in the search bar in Control Panel. You will see the result appears under Power Plan and click it.

Step 2: Then you will come to an interface where you can choose the sleep and display settings that you want your computer to use. There you’ll see two options: Turn off the display and Put the computer to sleep. You can set Turn of the display setting to whatever value you desire. As for Put the computer to sleep setting, you’d better change the value to a longer time.

How to see which app is blocking your pc from going into sleep mode

Notice: Sometimes the problem may occurs when your power plan settings are not working properly and normally, so you can choose to click Restore default settings for this plan here to reset it to the default to see if that helps.

Step 3: Click Save changes and check if the computer still keeps going to sleep.

Method 2: Change Your Power Settings in Registry Editor

Windows 10 goes to sleep after 2 minutes? You can fix this problem by modifying the registry and change the power settings.

Step 1: Press Windows+R to open the Run dialogue, enter regedit and click OK>Yes to open Registry Editor.

Step 2: In the left pane of Registry Editor, navigate to: HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet >Control > Power > PowerSettings > 238C9FA8-0AAD-41ED-83F4-97BE242C8F20 > 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0.

In the right panel, double click Attributes.

How to see which app is blocking your pc from going into sleep mode

Step 3: Then a small windows will pop up. Change the Value data to 2 and click the OK button to save changes.

How to see which app is blocking your pc from going into sleep mode

After doing this, you should change the advanced power settings from Settings:

Step 1: Go to Settings>System>Power&sleep and then click Additional power settings under Related settings.

How to see which app is blocking your pc from going into sleep mode

Step 2: Click Change plan settings next to your power plan.

How to see which app is blocking your pc from going into sleep mode

Step 3: Click Change advanced power settings on the next interface. Then the Power Options panel will open and then click Change settings that are currently unavailable.

How to see which app is blocking your pc from going into sleep mode

Then go to Sleep>System unattended sleep timeout and change the value to a longer time. And then click OK to save changes.

Method 3: Edit Your Screen Saver Settings through Settings

If Windows 10 goes to sleep after 2 minutes, there maybe something wrong with your screen saver. So you can try to solve the problem by editing your screen saver settings.

Step 1: Go to Settings>Personification and then select Lock screen on the left pane. Click Screen saver settings on the right pane.

How to see which app is blocking your pc from going into sleep mode

Alternatively, you can go to Control Panel>Appearance and Personification>Change screen saver.

How to see which app is blocking your pc from going into sleep mode

Step 2: Set the Screen saver to None. Click OK to save changes.

How to see which app is blocking your pc from going into sleep mode

Method 4: Run the Power Troubleshooter from Settings

In order to fix the issue that computer randomly goes into sleep mode, you can run the Power troubleshooter. Power troubleshooter is an effective tool to detect the common problems with your power plan settings and resolve them automatically.

Step 1: Open Settings and select Update & Security.

Step 2: Choose Troubleshoot from the left pane and scroll down the right pane to find Power and then run the troubleshooter.

How to see which app is blocking your pc from going into sleep mode

Step 3: Then the troubleshooter will start to work and you can follow the on-screen instructions to complete the process.

Method 5: Change the Power Button Settings to Do Nothing

When you encounter the issue that computer randomly goes to sleep, the last but not least method recommended to you is to change the power plan button settings to do nothing.

Step 1: Navigate to Control Panel> Power Options.

Step 2: Select Choose what the power button does in the left pane.

Step 3: Under Power button settings, set When I press the power button to Do nothing and then click Save changes.