With reference to : lxsession/+bug, this seems to be a bug.
There is a similar question in Ask Ubuntu here.
Test if hibernate works.
Open a terminal and run:
sudo pm-hibernate
If the hibernate
test works, you can continue to use the sudo pm-hibernate
command when you want tohibernate
.
You can also enable the hibernation option in the menu.
Create the file :
/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Add the following lines:
[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
Save and exit.
systemd-shim
is still installed. Are you sure about/etc/pam.d/lxdm
? It doesn't exist. But/etc/pam.d/lightmd
exists. I added the line there. And for testing I createdlxdm
and added the line there, too (as root of course). Doesn't work. The problem is still the same. – buhtz Oct 14 '15 at 10:49systemd
doesn't work in 14.04. – buhtz Oct 14 '15 at 14:05sudo pm-hibernate
? – Ravan Oct 14 '15 at 14:08[Re-enable hibernate by default]
worked fine. Thanks! – buhtz Oct 15 '15 at 15:51