Windows 11 separates screen timeout (when the display dims) from full sleep mode. Adjusting these gives you precise control ...
You can run a command in the Command Prompt window to check which devices can wake your computer from sleep. You can configure a device's permissions to allow or prevent it from waking your computer ...