You are not logged in.
Hi there!
When I leave my PC for a short time I use suspend-to-ram („Bereitschaft“) which works fine.
In order to save energy I would like to use suspend-to-disk („Ruhezustand“), which either gives me an error message:
when pressing the power button (swap is 11.8G [says fdisk], RAM is 8G)
-or-
when using pm-hibernate leaves my system powered on with a blank screen - and I can't bring it back to life.
So, what can I do to put my system into a state where I can „pull the plug“ without using „halt“?
TIA
Gregor
Last edited by Gregors (2022-08-25 16:20:23)
Offline
Have you told the system where swap for hiberation is?
The usual place is in the file /etc/initramfs-tools/conf.d/resume
On my system swap in on a LVM volume, so I have:
marjorie@grendel:~$ cat /etc/initramfs-tools/conf.d/resume
RESUME=/dev/mapper/grendel--vg-grendel--swap
For a non-LVM system this would be:
RESUME=/dev/sdxn
where /dev/sdxn is your swap partition.
You can also specify swap using UUID
RESUME=UUID=
To disable change it to
RESUME=NONE
You will then need to update your initramfs to make it work.
sudo update-initramfs -u
sudo reboot
Last edited by Marjorie (2022-08-25 14:30:22)
Offline
swap is 11.8G [says fdisk]
The fdisk utility can't tell if the swap is activated and in use.
Use
cat /proc/swaps
Or
free -h
Brianna Ghey — Rest In Power
Offline
Oh, you're right.
'cat /proc/swaps' gives me
root@mimi:/home/gszaktilla# cat /proc/swaps
Filename Type Size Used Priority
root@mimi:/home/gszaktilla#
and 'free -h' tells
root@mimi:/home/gszaktilla# free -h
total used free shared buff/cache available
Mem: 7.8Gi 1.3Gi 5.6Gi 16Mi 900Mi 6.2Gi
Swap: 0B 0B 0B
root@mimi:/home/gszaktilla#
So i'll try to fix that. Thanks a lot so far!
Gregor
PS: After changing the fstab line to use the PARTUUID everything works fine. Thanks for the help!
Last edited by Gregors (2022-08-25 16:19:59)
Offline