Fixing Suspend crash; enabling Hibernation?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ander111
Level 3
Level 3
Posts: 179
Joined: Sat Jul 17, 2010 5:18 am

Fixing Suspend crash; enabling Hibernation?

Post by ander111 »

Hi -- I've just installed Mint 21.1 Cinnamon, and have upgraded to kernel 5.19.0-38-generic.

When I use the Suspend command, then resume, I get only a black screen and must do a hard reset.

Also, my Quit options don't include "Hibernate". I didn't create a swapfile when I installed LM, because I understood that more recent LM versions automatically created dynamically sized swapfiles that were used for hibernation (and, of course, swap).

However, when I've looked for guidance on enabling Hibernation, I've found very long, involved guides such as this one:

Guide on how to enable hibernation on Linux Mint 20 Cinnamon (Ubuntu 20) and prevent unwanted wakeups

...that involve manually enlarging the swapfile.

Is it really necessary to go to such lengths just to enable Hibernation? In the various Windows versions I've used, one could do that with a few clicks. I just want to be sure I'm looking at the right thing before I try anything so involved. Thanks!
Last edited by LockBot on Sat Sep 30, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Fixing Suspend crash; enabling Hibernation?

Post by Cosmo. »

Yes, for hibernation the swap file needs to be something bigger than the amount of installed RAM. Hibernation means, that the machine will have no power, so the RAM content must be stored on disk. Obviously you cannot put an elephant into a box for a mouse.

The problem with hibernation in Linux is, that it can work, but it can also fail, this is not predictable. It may be, that the computer does never go into hibernation (the better case because rather obvious case) or the computer hibernates, but you cannot wake it up, and in the latter case you have data loss (except you would have saved everything before). Out of this hibernation is by design something, what you cannot use so easily; this is a protection for the users.
quietlife
Level 1
Level 1
Posts: 22
Joined: Thu Feb 16, 2023 9:16 am

Re: Fixing Suspend crash; enabling Hibernation?

Post by quietlife »

Don't have any solutions for you im afraid because i've been dealing with the same problem without finding any, but just wanted to point you to the thread where SMG was trying to help me work through it.

viewtopic.php?t=391788

Seeing a number of threads having the same basic problem.
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: Fixing Suspend crash; enabling Hibernation?

Post by Hoser Rob »

Hibernation is a long standing Linux issue, still no closer to being solved AFAIK. I think Mint was right to drop the option in the logout menu.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
ander111
Level 3
Level 3
Posts: 179
Joined: Sat Jul 17, 2010 5:18 am

Re: Fixing Suspend crash; enabling Hibernation?

Post by ander111 »

Hey guys: Okay, I got it to work. I can't say I understand why such an involved process (pre-activation testing, config-file editing, restarting, reconfiguring and updating Grub) should be necessary in Linux when, in Windows, it's as hard as clicking a "Hibernation" checkbox in the Power settings (or if you really want to, you can type powercfg.exe -h on at a command line). There you go, though---Linux, right?

Cosmo. wrote: Thu Mar 30, 2023 2:40 am The problem with hibernation in Linux is, that it can work, but it can also fail, this is not predictable. It may be, that the computer does never go into hibernation (the better case because rather obvious case) or the computer hibernates, but you cannot wake it up, and in the latter case you have data loss (except you would have saved everything before). Out of this hibernation is by design something, what you cannot use so easily; this is a protection for the users.
Funny---I've used Hibernation in Windows for, like, 20 years, and never had a problem with it. Maybe Linux data is fussier... But then, everything's supposed to be more complicated here, right? It scares off the people who aren't willing to jump in with both feet. :)
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Fixing Suspend crash; enabling Hibernation?

Post by SMG »

ander111 wrote: Thu Apr 13, 2023 3:33 amFunny---I've used Hibernation in Windows for, like, 20 years, and never had a problem with it. Maybe Linux data is fussier... But then, everything's supposed to be more complicated here, right? It scares off the people who aren't willing to jump in with both feet. :)
It's not a data issue. Hibernation requires coordination with the firmware/hardware. Your computer's hardware was likely designed to be used with Windows so I would hope it would work. The issues where hibernation does not work on Linux-based distros are due to the hardware not the data or OS.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Fixing Suspend crash; enabling Hibernation?

Post by Cosmo. »

You quoted me, but did you read it at all? I wrote at the end, that hibernation has been made by design rather difficult to use and that this is out the reasons I told you a measurement for user's data protection. If somebody "jumps in with both feet" and than will possibly fall in an endless data leak, than this is their own decision. But if users should loose their data, because there would be a function implemented where the developers know, that for a greater part of the users this will end in a data nirvana, the users would have the right to be very upset. Not even putting a warning besides the hibernating button would help, as users do notoriously not read; you are here one example for this problem.
Locked

Return to “Other topics”