I can hibernate with "systemctl" command, but not with User Indicator applet

Hi,

I’m using Ubuntu Budgie 19.04 and I’m able to hibernate my laptop using the “systemctl hibernate” command, but using the option in the User Indicator applet the OS only locks the screen.

Someone had similar problems? Does anyone have a tip on how to solve this problem?

Thanks.

Hi and welcome.

Budgie pokes systemd via a dbus call to logind

I suspect at a minimum you will need a polkit rule as per https://ubuntuforums.org/showthread.php?t=2392205

Worth looking through that thread to ensure you are correctly configured for hibernation.

Hi @fossfreedom

I have created the polkit rule and the hibernation is now working via the User Indicator applet.

For future references:

Edit or create: /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla with the following contents:

[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

From: https://ubuntuforums.org/showthread.php?t=2392205

Thanks a lot!

1 Like