I found so many others asking very similar questions to this. But I tried almost all of the solutions but it doesn't seem to be working for me.
When I enter sudo systemctl hibernate it gives me this error
Failed to hibernate system via logind: Not enough swap space for hibernation
and this what I get when I enter free -h
total used free shared buff/cache available
Mem: 7.7Gi 2.8Gi 982Mi 915Mi 3.9Gi 3.7Gi
Swap: 8.0Gi 0B 8.0Gi
as you can see there is enough space left in the swapfile but I am not able to hibernate it. If there is any more details or information I have to provide?