Sometimes I let my computer (Lenovo laptop under Windows 10) do stuff that takes a while (e.g. scientific computation). When it does that, I would like to be able to close its lid without it going to sleep.
The problem is that I would also like to keep it’s default behavior where it goes to sleep when I close it, most of the time.
The way I’d like it to work would be that, if I don’t do anything and close the lid, it goes to sleep. If I press some arbitrary key combination though, it would ignore the next time I close the lid, and stay awake until I open it again.
Ideally, this behavior would be the same plugged in or not. I know I can change that under «power management», but I do that often, and it would be nice to have a shortcut for it.
Can anybody think of a way to do that, or any trick to emulate this kind of behavior?
Thanks in advance.