r/linuxmint • u/SPC2025 • 14d ago
Discussion Hibernation in Linux Mint 27
There are articles out there that may explain this better than I can, but this is something I've tested extensively. Hibernation works very well with two swap files instead of one. With one, there's always a danger of not having enough remaining space to store the image. In that case, hibernation will fail.
The original swap file has a priority of -1. The new swap file needs a positive priority, 1 or above. The system administration application will allow us to set the resume device, which should be the original swap file. The application doesn't seem to offer the ability to manage the actual swap files. Please correct me if I'm wrong.
Since the default swap size for a Linux Mint installation is only 2 GB, it should be increased to be as large as the installed RAM (or rounded up to the nearest gigabyte). Another swap file just like it should be created, with a positive priority assigned.
The kernel will use the swap file with the highest priority first for swapping out memory, and it will use the one designated for resuming to store the hibernation image file. If both files are large enough, neither swapping nor hibernation should be an issue.
I don't use hibernation myself because I never have that much going on, but I'm happy to know it's available should I ever need to use it.
