On Fri, Nov 13, 2020 at 09:24:52PM +0530, Sreyan Chakravarty wrote:
Hi,
I have just upgraded to the new 5.8 kernel on Fedora 32.
I have also configured my swap as a swap file of 8GB.
But when I try to hibernate using the following command:
$ systemctl hibernate
Failed to hibernate system via logind: Not enough swap space for hibernation
I have no idea why this is happening when I have 8GB of free swap space :
$ free -h
total used free shared buff/cache
available
Mem: 7.7Gi 1.6Gi 4.1Gi 269Mi 2.0Gi
5.6Gi
Swap: 8.0Gi 0B 8.0Gi
My RAM is also 8GB.
Any ideas ?
I believe that using a swap *file* for hibernation requires special
steps, as described here:
https://www.kernel.org/doc/html/latest/power/swsusp-and-swap-files.html
I believe you need to add the kernel parameters to make it work, or
you have to switch to the userland suspend interface.
--
Jonathan Billings <billings(a)negate.org>