I am using ubuntu 20.04 on a machine with 16G RAM and 1T SSD. I used to have a swap partition of 20G and know how to hibernate with swap partition. But I found the partition never used in normal time. So I think it is unreasonable to preserve a swap only for hibernation and I deleted this partition and decided to hibernate with hibernation file. But I am stuck in doing this, even found some answer saying this is impossible. So is there any way to achieve hibernation without swap partition?
The following link would be helpful but I can not understand it fully, https://help.ubuntu.com/community/SwapFaq.
resume_offset
when hibernating from a swapfile. You cannot hibernate from a swapfile without it.