Linux kernel typically has the following way to specify the "hiberfil.sys", the place to hibernate to and to wake up from: the kernel command line. On my machine it is the following: #:cat /proc/cmdline BOOT_IMAGE=dev000:\EFI\Slackware\vmlinuz root=/dev/sda3 vga=normal ro quiet splash nvidia.modeset=1 resume=/dev/sda2 ro Sometimes it would be pointing to a swap file rather than partition. (Something like resume offset= ). This command line doesn't guarantee that swap will be on during the normal system operation. For example, I could manually do "swapoff -a". And if swap is off, XFCE would refuse to hibernate. I would like to propose the following optional behaviour (decided by a checkbox in the settings): If the kernel command line (/proc/cmdline) does have a "resume" member, and swap is off, first try to swapon (or swapon $swapfile), and hibernate like this, and correspondingly, swapoff after waking up. Rationale: not always it is possible to use swap during the normal operation.
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/59. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev