Stop Mouse from Waking PC
To start, go to Control Panel and click on Mouse. If you are in category view, click onHardware and Sound and then click on Mouse under Devices and Printers.
In the Mouse Properties window, click on the Hardware tab and select your mouse from the list of devices. Normally, there will only be one mouse listed here, but that will depend on the hardware you have connected to your computer. When you have selected your mouse from the list, click the Properties button.
In the second Properties window for your mouse, click on the Change Settings button on the General tab.
Finally, click the Power Management tab and uncheck the Allow This Device to Wake the Computer box. Click the OK button and click OK on all the other open windows too. From now on, you cannot wake up Windows from sleep mode by clicking a mouse button or moving the mouse around.
Some high-end mice, like gaming mice, have high polling rates and high DPI, which means even the tiniest of movements will be detected and cause your computer to wake up. Fixing this setting will prevent that from happening. Note that you can also get to this setting by clicking on Start and then typing in Device Manager.
Expand Mice and other pointing device and then right-click on the mouse and choose Properties.
This will get you to the same dialog with the Power Management tab as shown above. To prevent other USB devices from waking your computer, just right-click on them, choose Properties and go to the power tab. For example, you can also prevent the keyboard from waking your computer or the network card too.
If you have a wireless keyboard/mouse and there is a USB transmitter attached to your computer, you will also need to disable this option for that device too. It should show up under Keyboards. If nothing else other than HID Keyboard Device shows up, then just disable it for that also.