Computer comes out of sleep on its own

rickj0218

Reputable
Sep 11, 2015
9
0
4,510
My computer turns itself on from sleep mode and usually will go back to sleep after a minute or two, but sometimes it will stay on. The screen doesn't turn on but the computer, keyboard, and mouse do, and it started doing this after I updated my Nvidia and Razer drivers. I tried disabling programs related to these but couldn't pinpoint the source. I have updated my Razer drivers since and it didn't change, so I'm thinking it's probably something from Nvidia. My GPU is a Gigabyte GTX 660.

It happens regularly every 30 minutes on the nose. I've searched for solutions but haven't seen anybody else with this problem. Any advice?
 
What motherboard and CPU are you using? It's definitely a problem on Z87 and Z97 CPUs (I have two PCs with Z97 and this happens frequently, I wind up turning the PSU off in the back to prevent it from happening), I have not heard of this happening on Z170 and Z77. I'm sure that it's a power saving setting in the BIOS but without knowing the exact make and model of your motherboard it would be difficult to locate that.
 


I have an Asus M5A97 and an FX 8350.
 


Interesting, I have never heard of this happening on AMD FX. Are you overclocking? Have you tried running BIOS on default?
 


No overclocking and I haven't changed anything in the BIOS in nearly 2 years since I built this, this problem just started about a month ago.
 
You can run powercfg /lastwake at a command prompt to see what last woke the machine. Not all sources are always identified in good detail.

You can also run powercfg /devicequery wake_armed to see which devices are capable of waking the computer from sleep. If you see any mice listed, you should consider turning off their ability to wake the machine through Device Manager so errant signals from the optical sensor don't wake the machine.

You mention Razer drivers, which makes me wonder if you have one of their mice which was reinstalled as a function of updating the drivers into Windows device list and had it's power management settings reset, but it's just a thought.
 
Doing a little bit of digging, and from some experience myself, the Razer Synapse (their cloud based driver software) has been known to cause all kinds of strange issues. Have you tried removing the Razer software to see if that changes anything?

I honestly would not be surprised if it is causing the issue after seeing the random stuff it can do.
 


I ran both of those, but for some reason today it isn't waking itself so I just ran it to see what it said after using both the mouse and keyboard to wake the computer, it gave the same message for both, not clearly identifying the source but giving the same USB instance path for both, probably because they'e plugged into the same panel. For the device query it lists the mouse and keyboard both twice and also "HID Keyboard Device" twice. I disabled my mouse from being able to wake the computer in device management under both the Keyboard and Mice categories and that took it off the device query, so now I guess I'll just see if it does this any more another time.

I'm running Windows 8.1, I haven't removed Razer Synapse but I have disabled it in Task Manager and that didn't do anything, so I sort of ruled that out. If it keeps doing this after I now disabled my mouse from waking it, I'll try uninstalling Synapse.
 
If the problem still persists you can also check the windows eventviewer which may tell you more about what's waking the computer. I've just dealt with this issue myself and found this article helpful. It starts with powercfg but also explains how to use the eventviewer to find the issue.
 


Thanks, I went through the eventviewer and saw a bunch of waking events with the source: unknown. So it isn't a device or timer apparently, at least probably not because events where I woke it were listed as a device as the source. "Unknown" doesn't really point me to any solution though.
 
Interesting. I had the same thing, only I'm using a laptop so I figured it was the event of me opening or closing the screen. After setting the laptop to never switch off or go to sleep when idle or being closed it's working again. Maybe a closer look at your computer's power manager might help.
 


Disabling the software probably doesn't disable the driver. Try uninstalling it that way we can truly rule out the Razer software and move to the next probable issue.
 
I just did powercfg /lastwake and got this result after it woke itself:
Wake History Count - 1
Wake History [0]
Wake Source Count - 0

It didn't even list a source for what woke it. This along with the eventviewer "Unknown" source makes me think I'm not going to find the problem this way.
 
Well I uninstalled Razer Synapse and it still did it, tried disabling Geforce Experience and it still did. I guess I'm gonna disable background processes 1 by 1 to see if that does it, starting with anything Nvidia.
 
That's exactly how my -lastwake summary looked. Powercfg not finding anything means it's not a device - commonly USB or LAN - doing this.Just to be on the safe side you could check if your network adapters have wake on lan enabled. It's in the device manager properties of the adapter, consult with google if you can't find it.
And the eventviewer should have pointed out software. So other than power management I'm not sure what else could influence the wake behaviour of your computer. Like I said, it worked for me - despite the fact that I hadn't changed anything beforehand that might have caused the issue in the first place.

P.S.: I tried killing a lot of processes as well but that help. Either they're unrelated software running in the background (dropbox, steam...) that shouldn't be able to do this anyway or some crucial windows process. Still, good luck.
 
I updated my drivers for my network adapter, keyboard, and mouse through the device manager and it went a full hour without turning itself on. Hopefully that cured it, but I'll just have to wait and see.
 
One other thing to check would be, if another machine on the network is attempting to access your Windows 8.1 system. Since 8, I've noticed when trying to access a network share on a sleeping computer, Microsoft had the good sense to wake the machine up for me. It wasn't always reliable with 8, but seems to be so with 10.