hello i want this hibernate option like in opensuse/steam os when i try googling it i cannot find anything

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    arrow-up
    21
    ·
    edit-2
    1 month ago

    Depends on your distro. You need to set up all the requirements for hibernation (like “enough swap space to store current memory contents + whatever is left in swap” and zswap doesn’t count).

    IIRC Fedora defaults to ZRAM instead of swap, so you probably need to set up a swap partition first. I don’t know if you need to disable ZRAM, but you probably need enough swap space on disk to store the contents uncompressed.

    You’ll also need to modify the kernel parameters/initramfs configuration to add the resume parameters in the right spots, or the system will hibernate but not try to resume your session on boot.

    Then there may be some selinux issues depending on if Fedora fixed them or not. I don’t think hibernation is supported by default on Fedora so you may need to tweak things like polkit files to get the permissions right.

    I believe running the command sudo systemctl hibernate should manually induce hibernation. You can use it to test if your computer even has the ability to hibernate before figuring out what permission tweaks you need for KDE. Make sure you’ve saved your work before trying that, though, as not all systems will wake from hibernation without further troubleshooting.

    You may also need to disable security settings like secure boot and/or kernel lockdown mode it hibernation might be refused.

    • ReversalHatchery@beehaw.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month ago

      You’ll also need to modify the kernel parameters/initramfs configuration to add the resume parameters in the right spots, or the system will hibernate but not try to resume your session on boot.

      In the right spots? I was in the impression you only need to do that so one place, in the bootloader’s boot entry (or, yeah, if there are multiple entries then possibly each one). Which other places should I also look?

      Also, I’ve recently set up hibernateion for someone, and IIRC forgetting the resume= kernel parameter is not that critical today because it will immediately resume instead of completing shutdown.

      • It depends on the existing bootloader configuration. I think for Fedora you need to add a flag in a dracut config file somewhere, I don’t know if that also takes care of the bootloader configuration.