! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[Suggestion] Add support for suspend when swap is turned off, but the partiti...
Status:
RESOLVED: MOVED
Product:
Xfce4-power-manager
Component:
General

Comments

Description lockywolf 2019-05-28 04:53:05 CEST
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.
Comment 1 Git Bot editbugs 2020-05-27 01:46:16 CEST
-- 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

Bug #15486

Reported by:
lockywolf
Reported on: 2019-05-28
Last modified on: 2020-05-27

People

Assignee:
Ali Abdallah
CC List:
3 users

Version

Attachments

Additional information