Hibernate disabled by default on Trisquel 6
After some talking on IRC about not being able to hibernate, we found out that hibernate was disabled by default on my machine running Trisquel 6. I changed this in /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla and that fixed the problem.
Does anyone else running Trisquel 6 have hibernate disabled by default? I wonder if it's just my machine, just something upstream that was overlooked, something to do with installing GNOME Shell, or something else.
The /var directory is intended for variable data files (many temporary), not for configuration matters; it is best to use /etc for this purpose: http://www.pathname.com/fhs/pub/fhs-2.3.html
You could copy that file to /etc/polkit-1/localauthority/10-vendor.d/ , an empty directory which already exists in my machine, and edit it there, not in /var/..., to see what happens. I will try hibernate here; if it doesn't work, I'll do that.
Also, let's remember the swap space is encrypted by default, which impedes the hibernation; it is possible to setup a password in boot time, but I just prefer to use a unencrypted swap. I do not know how would the configuration process be for a new user with an encrypted swap space.
I think hibernate was disabled by default in 12.04 due to potential data loss. Dunno why it didn't affect earlier releases though.
Apparently any data loss only happens if the machine does not wake up, so it's very easy to test whether hibernate can be enabled.
Silly ubuntu...