Ubuntu – Lubuntu hibernate Xfce Power Manager “not authorized”

hibernatelubuntuxfce4-power-manager

OS: Lubuntu 14.04
Package: Xfce Power Manager
Package Settings:
– On AC > Actions > Put the computer to sleep when inactive for: 15 Minutes
– Extended > Set computer inactivity sleep mode: Hibernate
Intent: hibernate computer after 15 minutes of inactivity
Error message: not authorized
Error time: at hibernation

Best Answer

Follow the instructions for Ubuntu: How do I hibernate my computer?

That is, test first, then create a file /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla with the following content:

[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
ResultActive=yes

Note that in order to create this file you need root permissions. So, for instance, use sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla