! 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-panel
Component:
Action Buttons

Comments

Description poma 2016-08-17 02:28:46 CEST
Created attachment 6775 
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

Hybrid Sleep support, here in the Xfce's panel - via Action Buttons,
is dependent on Hybrid Sleep support in the Xfce's session manager.
Comment 1 Eric Koegel editbugs 2017-06-28 05:03:58 CEST
Hey, I think this is for the panel or a panel plugin? It doesn't look like it's the xfpm version. I can move it if you tell me where it goes.
Comment 2 Simon Steinbeiss editbugs 2017-10-30 00:21:46 CET
@eric: This report is against the actions plugin of the panel
Comment 3 Simon Steinbeiss editbugs 2017-11-12 00:22:36 CET
For reference, this is the commit that enables this in xfce4-session: https://git.xfce.org/xfce/xfce4-session/commit/?id=37f681e6c203c0ad8837869ccef45d32a8489afd
Comment 4 Git Bot editbugs 2017-11-15 17:36:52 CET
poma referenced this bugreport in commit 5ab8e2ba2ddac3e13a44a94e11318e45070e23e8

actions: Show Hybrid Sleep option (Bug #12771)

https://git.xfce.org/xfce/xfce4-panel/commit?id=5ab8e2ba2ddac3e13a44a94e11318e45070e23e8
Comment 5 Simon Steinbeiss editbugs 2017-11-15 17:37:42 CET
Please note that I have slightly amended your patch and disabled the hybrid sleep option by default (especially as it will not be available on every system by default). Distro maintainers are free to change this.

Bug #12771

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

People

Assignee:
Nick Schermer
CC List:
3 users

Version

Version:
4.13.1

Attachments

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

Additional information