Controlling which devices will wake the computer out of sleep:
If your computer keeps waking up from standby/sleep, here is how to figure out what causes it.1) Open a command prompt with Administrator privileges and run the command:
powercfg -devicequery wake_armed2) You see a list of devices that have permission to wake up your computer. You can disable each of these devices one by one until you find the one that is waking up the computer by running this command with the name of the device listed in quotes:
powercfg -devicedisablewake "device name"Once you find the one that is causing problems, you can re-enable the others:
powercfg -deviceenablewake "device name"You can get a more detailed list of devices capable of waking up your computer with the command:
powercfg -devicequery wake_from_any
I had my LAN-card causing the problem, and got it disabled by running this:
powercfg -devicedisablewake "Realtek PCIe GBE Family Controller"You may have a problem with your mouse moving a little, which causes the computer to wake up. You can either turn the mouse upside down, or disable it's ability to wake up the computer for good.