• muhyb@programming.devOP
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    Firstly, welcome :)

    Secondly, hibernation on Linux requires swap partition 2x size of the RAM. If you didn’t set it big enough or did not set at all, hibernation wouldn’t work. However if you set it correctly, there should be another reason to consider.

    If you are not sure, you can use this command on terminal to compare your RAM and swap sizes. free -m

    • merc@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      According to the FAQ I found, you mostly don’t need double your RAM. Especially for systems with lots of memory, they suggest instead the swap should be the square root of the RAM if you don’t hibernate. If you do it should be RAM + SQRT(RAM).

      I’m not sure where the square root part comes from, but I think the general idea is that if you’re using more swap than that, you should just add RAM.

      I’m still trying to get hibernate working on Bazzite. I followed the instructions I found and got it to the point that “Hibernate” is showing up in the menu, and when I use that menu item it seems to be saving state, but on boot I can’t get it to restore my previous session. I suspect it has to do with the Bazzite / Universal Blue bootc weirdness, but I haven’t spent much time digging into it yet.