you may need to edit the registry. I have all the correct BIOS and Power settings and still needed to do this.
Start Regedit.
Go to HKEY_CURRENT_USER\Control Panel\Desktop.
Edit the key PowerOffActive and give it a value of 1.
You can do the same in HKEY_USERS\.DEFAULT\Control Panel\Desktop.