You can set a hibernation time for your computer in Windows 11, though you might need to enable the feature first.
It's possible to turn off sleep mode on Windows 10, or adjust the time it takes for it to turn on. Here's how to do it.