I use Ubuntu btw. Poweroff could use more write cycles on the SSD because it has to read everything at startup, but suspend has to keep supplying power to the RAM
Maybe cause I’m old but boot times are so quick if I need to move i just shutdown throw it in my backpack and go. I don’t want it on in any fashion while in my bag and hibernating to disk means all my shell sessions and anything else disconnected anyhow.
hibernating to disk means all my shell sessions and anything else disconnected anyhow.
If you can run
tmux
on the remote system, can manually reattach when you reconnect.If you use the UDP-based mosh instead of the TCP-based
ssh
— it uses ssh to bootstrap auth, then hands off to its own protocol — (a) the system can use local prediction in some cases, leaving it feeling snappier, but also (b) the thing will automatically reconnect and resume sessions. I mostly find it useful on flaky/slow links, but it is also kind of neat to just close a lid, and then pop it open again days or a week later and then just resume working without any user-visible disruption.I normally use
mosh
in conjunction withtmux
, since withmosh
alone, there’s no way for another host to reconnect to amosh
session…but another host can connect and take over atmux
session being run by amosh
session.Finally got around to playing with mosh today and with it using ssh for auth it was so simple to setup. It actually works really well!
Thanks for the recomendation