! 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 !
Hybrid Sleep support
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-session
Component:
General

Comments

Description poma 2016-08-17 02:25:54 CEST
Created attachment 6774 
Hybrid Sleep support

Hybrid Sleep support - "hibernate" and suspend the system

Hybrid Sleep initially only writes hibernation image to SWAP space,
it does not power off the machine, as a whole Suspend To Disk (S4) does,
it rather Suspend To RAM (S3).

The benefit of this combination is pronto RESUME from S3,
whilst in case of battery drained or interruptions in power supply of any kind,
you ain't gonna lose your work.

Hybrid Sleep is the feature of the Linux kernel.
To test it directly via cli:
echo suspend > /sys/power/disk ; echo disk > /sys/power/state

However to make this feature work,
both Suspend To RAM (S3) and Suspend To Disk (S4)
must be provided by the hardware
dmesg:
ACPI: (supports ... S3 S4 ...)
in working order.

Furthermore Suspend To Disk (S4) requires a relatively simple configuration
an appendix to kernel command line:
resume=<path to resume partition>
i.e. directive to utilize particular SWAP space
man 7 dracut.cmdline

Ref.
https://www.kernel.org/doc/Documentation/power/swsusp.txt
Comment 1 Eric Koegel editbugs 2017-06-11 09:46:59 CEST
Awesome, pushed to master in: https://git.xfce.org/xfce/xfce4-session/commit/?id=37f681e6c203c0ad8837869ccef45d32a8489afd

Bug #12770

Reported by:
poma
Reported on: 2016-08-17
Last modified on: 2017-06-11

People

Assignee:
Eric Koegel
CC List:
4 users

Version

Version:
Unspecified

Attachments

Hybrid Sleep support (28.87 KB, patch)
2016-08-17 02:25 CEST , poma
no flags

Additional information