Show all projects!

Enable Hibernation on Ubuntu 24.04 with LVM and Full Disk Encryption

Look at https://www.stefanproell.at/po... for setup Hibernate

And edit this file, to set hibernate as action to the power button.

sudo nano /etc/polkit-1/rules.d/90-enable-hibernate.rules
And insert this lines (at end):

polkit.addRule(function(action, subject) {
 if (action.id == "org.freedesktop.upower.hibernate" ||
 action.id == "org.freedesktop.login1.hibernate" ||
 action.id == "org.freedesktop.login1.hibernate-multiple-sessions") {
 return polkit.Result.YES;
 }
});


sudo gedit /etc/systemd/logind.conf

HandlePowerKey=hibernate

Article relase date: / Last update: