20

I'm using Xubuntu 14.04 64 bit. I know that question been asked a billion times, but all of them consist of editing following file:

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

That file does not exist on my system. I tried com.xubuntu.enable-hibernate.pkla but doesn't exist either, locate command doesn't find it.

d a i s y
  • 5,551
Lynob
  • 6,775

2 Answers2

28

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

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

Look for

[Disable hibernate by default in upower]
[Disable hibernate by default in logind]

Change the value of "ResultActive=no" to "ResultActive=yes" in both, press ctrl+x to exit the file. It will ask to save the change or not. Press Y to save the change, if you're on Ubuntu restart your system.

Edit

Just tried this on Xubuntu 16.04, and Ubuntu 16.04. and it also works.

enter image description here

For Ubuntu 16.04 I had to reboot for it to work.

enter image description here

enter image description here

Naseeb
  • 3
  • 3
Mitch
  • 109,787
0

For a novice like me, I would like to add:

"Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

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

Look for

[Disable hibernate by default in upower] [Disable hibernate by default in logind]

Change the value of "ResultActive=no" to "ResultActive=yes" in both, and then restart your system."

.....before restarting the system, you should press ctrl+x to exit the file. Then it will ask for Yes or No to save the change. If you don't save the change, it will not work. I am using ChaletOS which is based on Xubuntu. It doesn't need a restart.

Naseeb
  • 3
  • 3