Discussion:
Is there any way to STD in Debian?
(too old to reply)
YOYO
2024-09-26 10:10:01 UTC
Permalink
Hello everyone,
Recently, I need to cut off power supply with all my running tasks saved.
But it seems that the hibernate mode provided in Debian only allows me to 
Suspend to Ram(STR, or S3 mode in ACPI).
Is there any way to Suspend to Disk (STD, or S4 Mode in ACPI) in Debian?
Thank you for your replies in advance.


Best Regards,
Richard
Alexander V. Makartsev
2024-09-26 11:10:01 UTC
Permalink
Post by YOYO
Hello everyone,
Recently, I need to cut off power supply with all my running tasks saved.
But it seems that the hibernate mode provided in Debian only allows me to
Suspend to Ram(STR, or S3 mode in ACPI).
Is there any way to Suspend to Disk (STD, or S4 Mode in ACPI) in Debian?
Thank you for your replies in advance.
Best Regards,
Richard
Do you have a swap partition? It has to be sufficient in size and is
necessary for Hibernation to work.
You need to edit "/etc/initramfs-tools/conf.d/resume" file to provide an
UUID of a swap partition, or a path,
in case of LVM, to a swap partition and run:
# update-initramfs -u

    Example for traditional disk partitioning scheme:
$ cat /etc/fstab | grep -iE "swap"
UUID=e990fa6d-3f82-4d65-b6a1-542e240718fc     none    swap sw      0       0

$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=e990fa6d-3f82-4d65-b6a1-542e240718fc

    Example for LVM partitioning scheme:
$ cat /etc/fstab | grep -iE "swap"
/dev/vg0-nvme/lv1-swap  none    swap    sw      0       0

$ cat /etc/initramfs-tools/conf.d/resume
RESUME=/dev/vg0-nvme/lv1-swap
--
With kindest regards, Alexander.

Debian - The universal operating system
https://www.debian.org
e***@gmx.us
2024-09-26 13:40:02 UTC
Permalink
Post by Alexander V. Makartsev
Post by YOYO
Hello everyone,
Recently, I need to cut off power supply with all my running tasks saved.
But it seems that the hibernate mode provided in Debian only allows me to
Suspend to Ram(STR, or S3 mode in ACPI).
Is there any way to Suspend to Disk (STD, or S4 Mode in ACPI) in Debian?
Thank you for your replies in advance.
Do you have a swap partition? It has to be sufficient in size and is
necessary for Hibernation to work.
While that is the easiest way by far, I was recently told that the
"resume-from" kernel option can enable hibernation to a non-swap area. I
think. I have not done this. Look in the archive for a thread this month
(9/2024) entitled "hibernate area".

But yes, I use hibernation every night.

--
"It can be shown that for any nutty theory, beyond-the-fringe political
view or strange religion there exists a proponent on the Net. The proof
is left as an exercise for your kill-file." -- Bertil Jonell

Loading...