[SOLVED] Computer won't go to sleep

ssal

Commendable
Aug 20, 2020
72
6
1,545
My computer is running Windows 10. I have the power setting set to go to sleep after 30 minutes of inactivity. But the computer won't go to sleep.

When I pressed the sleep button on my keyboard, or clicked on sleep on the POWER from the Start Icon, the computer will go to sleep, but I would find it NOT sleeping later.

I have make sure the mouse was not touched to cause accidental wakening.

When I checked on it, the screen would be off (another power setting for the screen to go off after 3 minutes), but the fans (including the CPU fan) would be lite and turning.

Do you know how to fix that? I would like to leave my computer on, but in sleep mode, without having to turn it on and off.

Here's the spec of my built:

AMD Ryzen 7 3800X Processor
ASRock B450M PRO4 Micro ATX AM4 Motherboard
Corsair Vengeance LPX 32 GB (2 x 16 GB) DDR4-3200 Memory
Seagate Barracuda 2 TB 3.5" 7200RPM Internal Hard Drive (x2)
HP EX920 1 TB M.2-2280 NVME Solid State Drive
Zotac GeForce GTX 1060 6GB 6 GB Video Card
COUGAR MX330 Mid-Tower Case
EVGA - 600W ATX 12V/EPS 12V 80 Plus Power Supply - Black
Extra cooling fans (x3)
LG Internal SATA 24x DVD CD +/-R & RW DL Disc Burner Re-Writer Drive OEM Bulk
TP-Link TL-WN881ND PCIe x1 802.11a/b/g/n Wi-Fi Adapter
 
Solution
Open up the Command Prompt as an administrator (type in "cmd" in the Start menu search, right click on the result, select "Run as administrator"), then type in "powercfg /lastwake." It'll tell you what caused the PC to wake up. You can also try "powercfg /requests" to see if something's preventing it from going to sleep as well.
Open up the Command Prompt as an administrator (type in "cmd" in the Start menu search, right click on the result, select "Run as administrator"), then type in "powercfg /lastwake." It'll tell you what caused the PC to wake up. You can also try "powercfg /requests" to see if something's preventing it from going to sleep as well.
 
Solution

ssal

Commendable
Aug 20, 2020
72
6
1,545
Open up the Command Prompt as an administrator (type in "cmd" in the Start menu search, right click on the result, select "Run as administrator"), then type in "powercfg /lastwake." It'll tell you what caused the PC to wake up. You can also try "powercfg /requests" to see if something's preventing it from going to sleep as well.

Thank you. I did that and I think I need some help to interpret the resulting messages.

https://drive.google.com/file/d/1dTJluBdrd0USxDgKsfNGQBSLb9Rz8EeL/view?usp=sharing

(Not sure why it would let me insert the image from my google drive)
 

ssal

Commendable
Aug 20, 2020
72
6
1,545
So it woke up from something plugged into one of the USB ports. However, it also looks like Windows Update is doing something (at least at the moment you asked for requests).

OK! It seems to point to the USB-3 ports from the motherboard. One was plugged to my external backup HDD and the other is plugged to my keyboard. I will unplug the HdD and see if it will correct that.

I will also turn off Windows automatic update.

Will come back and post a follow up.

Thanks.
 

ssal

Commendable
Aug 20, 2020
72
6
1,545
So it woke up from something plugged into one of the USB ports. However, it also looks like Windows Update is doing something (at least at the moment you asked for requests).
We'd resolved the issue with the USB3/External HDD issue.
But the computer was wakened up with the following lastwake message:

C:\WINDOWS\system32>powercfg/lastwake
Wake History Count - 1
Wake History [0]
Wake Source Count - 1
Wake Source [0]
Type: Device
Instance Path: PCI\VEN_10EC&DEV_8168&SUBSYS_81681849&REV_15\30A10759A1A8000000
Friendly Name: Realtek PCIe GbE Family Controller #2
Description: Realtek PCIe GbE Family Controller
Manufacturer: Realtek

It seems to point to the ethernet cable hooked up from the router. I certainly don't want to unplug the ethernet cable. Any suggestion?
 
We'd resolved the issue with the USB3/External HDD issue.
But the computer was wakened up with the following lastwake message:

C:\WINDOWS\system32>powercfg/lastwake
Wake History Count - 1
Wake History [0]
Wake Source Count - 1
Wake Source [0]
Type: Device
Instance Path: PCI\VEN_10EC&DEV_8168&SUBSYS_81681849&REV_15\30A10759A1A8000000
Friendly Name: Realtek PCIe GbE Family Controller #2
Description: Realtek PCIe GbE Family Controller
Manufacturer: Realtek

It seems to point to the ethernet cable hooked up from the router. I certainly don't want to unplug the ethernet cable. Any suggestion?
Go to Control Panel -> Hardware and Sound -> Device manager, find the ethernet controller (should be under the "Network"), right click on it, select "Properties", then go to Power Management and uncheck "allow this device to wake the computer."

You can do this for various other devices too if you really want to make sure nothing wakes the PC up except for the power button.
 

ssal

Commendable
Aug 20, 2020
72
6
1,545
Go to Control Panel -> Hardware and Sound -> Device manager, find the ethernet controller (should be under the "Network"), right click on it, select "Properties", then go to Power Management and uncheck "allow this device to wake the computer."

You can do this for various other devices too if you really want to make sure nothing wakes the PC up except for the power button.
If I disable the "allow this device to wake the computer", then I can wake up this computer from my other device connected to the same network, right?

I believe I had enabled it so I can use "WakeOnLan" to wake it up so I can transfer files between the two machines.

Is there any way to get the best of both world, i.e. the machine would sleep, and would be able to be wakened up when needed?

Thanks.
 
If I disable the "allow this device to wake the computer", then I can wake up this computer from my other device connected to the same network, right?

I believe I had enabled it so I can use "WakeOnLan" to wake it up so I can transfer files between the two machines.

Is there any way to get the best of both world, i.e. the machine would sleep, and would be able to be wakened up when needed?

Thanks.
Disabling the Ethernet adapter's permission to wake the computer up may negate the "Wake on LAN" feature. I haven't tested this though, but to me that would make sense.

I suppose that's just something you can try on your own :p
 

ssal

Commendable
Aug 20, 2020
72
6
1,545
Disabling the Ethernet adapter's permission to wake the computer up may negate the "Wake on LAN" feature. I haven't tested this though, but to me that would make sense.

I suppose that's just something you can try on your own :p
I disabled it now to test if it would stop the waking up.
I'd probably leave it disabled if it works.