Hibernate missing in login screen
Solution 1:
Here is a solution. Hibernate option in desktop session and login screen as below:
Desktop Session :
Login Screen :
First open your terminal and add the following :
sudo gedit /var/lib/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
A txt file now is opened add the following lines :
[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
Save and reboot your system after that hibernate should appear and function well.
Solution 2:
The configuration for hibernation already sits in file
/var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
Just open this file and enable hibernation: ResultActive=yes
The resulting code looks like this:
[Disable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
and
[Disable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
That's all. Now you will see hibernate option in power dialog and login
Solution 3:
The address of the policy kit file changed in Ubuntu 14.04.
Follow the same steps as before, except replacing the file:
/var/lib/polkit-1/localauthority/10-local.d/hibernate.pkla
with this one:
/var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla
Try this one
sudo gedit /var/lib/polkit-1/localauthority/10-local.d/hibernate.pkla
Finally, 'restart' nautilus by executing nautilus -q
and the indicator option should spring up.
Solution 4:
That's a bug, which will hopefully be solved in Ubuntu 14.04. It is impossible to enable hibernation in login screen.