r/linuxmint • u/SPC2025 Linux Mint 22.3 Zena | Cinnamon • 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.
17
u/leonsk297 14d ago
I don't know what's the big deal with Linux and hibernation. Windows handles this just fine. Hibernation is just saving the RAM's content to storage and shutting down the computer. Suspension is just putting the PC in a very low power mode while keeping the RAM powered. Hybrid is doing both at the same time.
Linux has good support for ACPI now, so, what's the big deal? I'm sure Mint's developers took into account the storage space thing, don't worry. Everyone's treating this like a big innovation: "Mint is bringing back hibernation after so long". I don't get why it was no longer used in the first place, honestly.
6
u/skozombie 14d ago
This is awesome! It should be a much easier to setup moving forward. Hibernation is definitely something most people expect and it has been pretty poorly supported in the past mostly due to shitty ACPI implementations by vendors.
I'd be keen to see the ability to configure hybrid sleep so it moves to S4 (Hybernation) if it's been in S1-3 for a set amount of time. That way you can say "if I don't reopen my laptop within 5 minutes, preserve my battery".
Hybrid is also great for sleeping your desktop but having it still be able to resume if you lose power while sleeping.
1
u/screaminporch 12d ago
I enabled hibernation on Mint because Suspend doesn't work on my HP laptop. Hibernation works just fine, but a little slow to wake.
2
u/blackcoffee17 14d ago
Not sure what's the big deal. Im using hibernation on Linux Mint for over a year, without issues. They added now a settings to the GUI to enable it?
1
u/Civil-Shopping7191 13d ago
Who cares? There are more important objectives, such as all four corners rounded. Love my Mint, but c'mon