Comment 2 for bug 1194328

Revision history for this message
Diesel (erickit) wrote : Re: Ubuntu 13.10 Close LID actions Ignored

Here is how you fix that.

In your file:

/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

Make sure you have two settings in there

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

[Enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes

Here is why. In this file:

/var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

it sets the two options to "no"

The file you created should be executed after the one in /var/lib so it should take priority over it (Tested it and it does). You can read the information for that here under the section "Evaluation Order". When your "upower" option is set to "yes" you can select hibernate from the power settings in Ubuntu. However, you are still unable to hibernate because the 10-vendor.d file was setting the login1.hibernate to "no" and that must also be a "yes"

Looks like the bug is that Ubuntu should check both options before allowing hibernate to be selected.