How can I enable hibernation under Linux Mint 18.3?
The Hibernation depends on the swap file. In Linux Mint this is enabled by default but still, if the swap file is not adequate in size, you are still prohibited from enabling this service.
The important thing here is to calculate the swap space needed for the system operation Vs. the hibernate feature. As an example, one would own a system with a 4 GiB memory. The swap would normally (or a good size) be 9GiB.
Once this is set properly, you will be able to enable the hibernate option.
Related videos on Youtube
Christos Hayward
Jonathan Hayward is a recovering geek. He holds master's degrees bridging math and computer science (UIUC) and philosophy and theology (Cambridge), and is considered to be in the profoundly gifted range. He is presently learning Node and Russian. Read full biography—it's interesting.
Updated on September 18, 2022Comments
-
Christos Hayward almost 2 years
I have Linux Mint 18.3 installed and it appears not to have hibernation enabled:
$ sudo systemctl hibernate Failed to hibernate system via logind: Sleep verb not supported
Is this because my slightly obscure hardware does not have resources that Linux knows how to talk to, or is there a way that I can configure things so that I can, ultimately, hit the power button and have the computer hibernate?
-
Epoxy over 6 yearsHow large the swap space is? And does it use any secure boot and other stuff (BIOS settings)? I believe this is enabled by default in Mint.
-
Christos Hayward over 6 years@Epoxy "How large the swap space is?" Bingo, that's my problem. I need to repartition... Please restate your comment as a question so I can accept it.
-
Epoxy over 6 yearsSounds good! I have posted this as the answer. Thank you! :) @Jonathan
-
zx485 almost 5 yearsA forwarded comment for toddg: See this guide to adding a hibernate swap file: forums.linuxmint.com/viewtopic.php?f=42&t=284100
-
-
acejavelin over 6 yearsJust to enable hibernation, you only need swap to equal RAM... Actual size, so if you have 4GB of RAM your cache size must be at minimum 4294967296 bytes. although an additional 10% buffer is recommended, so for 4GB RAM you should have 4.5-5GB cache, if you have 8GB of RAM you should have ~9GB cache. Outside of the consideration of hibernation, cache space recommended varies by system use and application.