chimeraos icon indicating copy to clipboard operation
chimeraos copied to clipboard

Not enough swap space for hibernation

Open yisiqi opened this issue 2 years ago • 2 comments

When I try to put the system into hibernation using the sudo systemctl hibernate command, it says Not enough swap space for hibernation. But when I use the free command to check the swap space, I can confirm that the reserved swap space is larger than the actual size of the memory.

image

yisiqi avatar Nov 18 '23 16:11 yisiqi

Because the swapfile is in the home directory.

https://github.com/systemd/systemd/issues/15354

honjow avatar Nov 23 '23 21:11 honjow

Because the swapfile is in the home directory.

systemd/systemd#15354

Thanks, but I moved the swapfile into /var/swapfile and it still doesn't work, is there any other way?

image

yisiqi avatar Nov 25 '23 13:11 yisiqi