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@lemmy.today
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    8 days 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.

    • tehWrapper@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      19 hours ago

      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