Sunday, 21 May 2023

[ubuntu] Activate the hibernate button/option

Problem

A fresh install of Ubuntu does not sport the hibernate option/button.

Solution not working for me

Presumtion is that you use a swap partition and no swap file (alone, not sure a combination works). Make sure, your swap is at least as big as your memory. You can check with

free -h
In /etc/systemd/logind.conf the hibernate key must be handled by the uncommented line:
HandleHibernateKey=handle-hibernate-key
Activate the setting with
update-initramfs -u
Make sure in /etc/default/grubthere is an entry for your resume partition like
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/dm-0"
You then need to update the grub configuration.
update-grub
Then reboot.

No comments:

Post a Comment

[git] Create a local branch from another branch

From the active branch git checkout -b <LOCAL_BRANCH> From a donator branch git checkout -b <LOCAL_BRANCH> <DONATING_BRANCH...