Have a look in your motherboard manual. Its usually in the bios somewhere.
UEFI BIOS -> Advanced -> Chipset Configuration -> disable On/Off Play
or
BIOS -> Advance Setting -> Peripheral Options
or
BIOS -> Deep Sleep Settings on/off
or
BIOS -> Wake by USB on/off
or
BIOS -> ErP settings
or
BIOS -> Power/Charge settings
or
BIOS -> Wake on S3,S4,S5 on/off