culcal
October 17, 2023, 10:43am
1
Hello
I am trying to enable suspend and hibernation on my system.
I have created a swap partition and what exactly do I do from here?
Something about finding out my swap partition UUID and adding it to my systemd-boot config file?
I ask because these are places I normally don’t touch unless I know what I’m doing. And I don’t know what I’m doing here
1 Like
dalto
October 17, 2023, 11:26am
2
Is the swap partition encrypted? If not, try editing /etc/kernel/cmdline
, adding resume=UUID
replacing UUID
with the actual UUID of your swap partition and then run sudo reinstall-kernels
2 Likes
culcal
October 17, 2023, 3:27pm
3
ok, that sounds dangerous. But I’ll try when I get home tonight. My swap is not encrypted
the following is in my file.
nvidia-drm.modeset=1 nvme_load=YES nowatchdog rw root=UUID=3d03e897-6bf0-4063-b681-cbac7e9e3ccf
and, it should be changed to the following?
nvidia-drm.modeset=1 nvme_load=YES nowatchdog rw root=UUID=3d03e897-6bf0-4063-b681-cbac7e9e3ccf resume=UUID
sudo reinstall-kernels
and it shouldn’t be
sudo bootctl update
I have 2 kernels.
Can I also change it in /efi/loader/entries/arch.conf
and /efi/loader/entries/zen.conf
1 Like
dalto
October 17, 2023, 3:31pm
4
culcal:
and it shouldn’t be
sudo bootctl update
No. That does something totally different. That only needs to be run when the systemd version changes.
If you are using EndeavourOS’s systemd-boot config, those files are generated. When you run sudo reinstall-kernels
they will be updated automatically.
If you have a separate manual install of systemd-boot, the instructions above don’t apply.
2 Likes
culcal
October 17, 2023, 3:42pm
5
ok i’ll try later tonight.
I use the standard EOS system boot.
culcal
October 17, 2023, 8:46pm
6
ok now i have done it.
But when I use the power button, my laptop wakes up again, without having saved the hibernation session.
What do I do from here?
culcal
October 19, 2023, 1:00pm
7
FYI, for people who have the same problem as me.
I ran this command according to arch wiki and hibernation works now.
https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate
echo 8:3 > /sys/power/resume
1 Like