I have setted up a swapfile of 16 GB and I have 16 GB of RAM
this is how it is set up in /etc/fstab
/swap none swap sw 0 0
So when I did set all of this up, On xfce if I were to shutdown over here

I see a bunch of options, and now I notice Hibernate
and Hibernate-sleep
So when I press hibernate, then if I were to turn on my PC again, then I notice that all of my seasion is gone.
So how would I fix this?
You can’t hibernate to a swap file as easily as you can with a swap partition.
See this on how to set up hibernate to a swap file:
https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file
What you need to do is set up resume=
and resume_offset=
as kernel parameters (in your GRUB or wherever).
2 Likes
system
Closed
3
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.