Score:4

Ubuntu 20.04 can't hibernate

us flag

I am still getting the message 'Failed to hibernate system via logind: Sleep verb "hibernate" not supported' when I use the command 'sudo systemctl hibernate' even after following the instructions found here: How to hibernate with swapfile. I am running Ubuntu 20.04 on my Thinkpad L470 with 16GB of RAM. Following the instructions in the link above, I created a /swapfile corresponding to the size of my RAM. If there is anything else I need to do please help.

paladin avatar
kr flag
How big is your swapfile? Please do a`ls /swapfile -l`. Is your root filesystem maybe encrypted?
Score:0
my flag

Do the instructions here work? How to enable hibernate option in Ubuntu 20.04?

I assume you have a swap partition ready to use. (If you have a swap file you cannot hibernate) Install pm-utils and hibernate:

bash sudo apt install pm-utils hibernate

Then:

bash cat /sys/power/state

You should see:

none freeze mem disk

Then run:

bash grep swap /etc/fstab

Copy the UUID value. You will need it later. Then run:

bash sudo nano /etc/default/grub

(or your favourite editor if not nano). Change the line that says

none GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

so that it instead says:

resume=UUID=YOUR_VALUE" ```

Then, after saving the file and quitting the text editor, run:

```bash sudo update-grub ```

To test it, run:

```bash sudo systemctl hibernate ```

Right now no GNOME extension is working to have the hibernate option
back in the system menu.

Tested on Ubuntu 20.04 Kernel 5.4.0-31 on my Lenovo Thinkpad X1
Carbon.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.