1] Start > All Programs > Accessories > right click 'Command Prompt' > select 'Run as Administrator'.
2] Type the command as follows and hit Enter key
- powercfg -devicequery wake_programmable
Note: If your bluetooth device name is not listed using above command, then go to control panel > click keyboard/mouse properties > select Hardware tab > note your bluetooth keyboard/mouse device name.
3] Now type the command as follows and hit Enter key.
- powercfg -deviceenablewake <device name>
- powercfg -deviceenablewake "Microsoft Bluetooth Notebook Mouse5000"
4] Exit and restart your laptop to take effect.
5] Now you can check that your device is enabled to wake up at any sleep state by using the command below.
- powercfg -devicequery wake_from_any