Windows is so good at this that it refuses to let my work laptop sleep when I close it and put it in my backpack no matter how many settings I try tweaking.