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

  • tal
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 day ago

    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 with tmux, since with mosh alone, there’s no way for another host to reconnect to a mosh session…but another host can connect and take over a tmux session being run by a mosh session.