So I've seen from other answers that it's possible to make my laptop stay on when closed. I could also make it not go to sleep in a timer, so then it would just be on all the time.
What I'm trying to do is make it so I can ssh into my laptop at any time. I think it would be a bit wasteful to leave it on continuously, so I'm wondering if there's a way that I could have it mostly suspended but still connected to the internet, so it could wake back up when I try to make a connection.
Does anyone know if this is possible? I'm running openSSH-server on Ubuntu 20.04.