Show all projects!

Enable Hibernation on Ubuntu 22.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 gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

And insert this lines (at end):

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes


sudo gedit /etc/systemd/logind.conf

HandlePowerKey=hibernate

Article relase date: / Last update: