Hi Alexander, Eben, and everyone in list,
Thank you for your replies.
The Debian 12 is running in VirtulBox 7.0.20. And I only assigned 2048 MB
RAM to it.
I'm pretty sure that I have setup a big enough SWAP of around 8 GB when
installing Debian 12.
When I click "Sleep" button in Windows running in VirtualBox 6.x, the virtual
machine will light the screen up again once the screen is off. However, in this
case, Debian 12 doesn't light the screen up nor power-off the virtual machine.
So the virtual machine goes into a state that OS is not running, power is still
on. And I have no way to wake the OS up. All I can do is to fouce power-off and
re-start it, just to found all running tasks gone.
Best Regards,
Richard
------------------ Origin ------------------
From:
"Alexander V. Makartsev"
<[email protected]>;
Time: 2024??9??26??(Thu) 7:04pm
To: "debian-user"<[email protected]>;
Subject: Re: Is there any way to STD in Debian?
On 26.09.2024 14:51, YOYO wrote:
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
------------------ Origin ------------------
From: "eben" <[email protected]>;
Time: 2024??9??26??(??????) ????9:32
TO: "debian-user"<[email protected]>;
Subject: Re: Is there any way to STD in Debian?
On 9/26/24 07:04, Alexander V. Makartsev wrote:
> 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