2

I am having hard time trying to hibernate kubuntu 12.04 It doesn't hibernate. instead it goes to the lock screen only.

I checked the swap and it's 10G and active. I tried to hibernate using the command "sudo pm-hibernate" and it worked. but, I want a better fix without using commands.

Thanks a lot in advance :)

Elshaer
  • 155

1 Answers1

2

If hibernatian works by using sudo pm-hibernate command when you want to hibernate.

You can enable the hibernate option in the menus. To do that, use your favorite text editor to create /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla. Add the following to the file and save:

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

Source: helpdeskgeek

Mitch
  • 107,631
  • The hibernate option is already enabled. but it just locks the screen without hibernation – Elshaer Jun 07 '12 at 18:24
  • What Kubuntu release are you running? – Mitch Jun 07 '12 at 18:29
  • I am running Kubuntu 12.04 – Elshaer Jun 07 '12 at 21:50
  • "The document could not be saved, as it was not possible to write to /etc/polkit-1/localauthority/50-local.d/com.ubuntu.desktop.pkla. Check that you have write access to this file or that enough disk space is available." That's the message I get when I try this. Any help? I have 100 GB of space and I made sure I had permissions set to write. What am I supposed to do? –  Jun 13 '12 at 12:45
  • This should either be a question or a comment in the other answer. However, did you use sudo when editing the file? – Dason Jun 13 '12 at 12:48
  • @Stuart, if you want to use something like gedit, the regular Ubuntu text edit, you would open a terminal with Alt+Ctrl+T and enter `gksudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla . That will open a text editor window on your desktop and allow you to save the file when you are done editing it, despite that fact that it is protected. sudo and gksudo are prefix commands to be used with care when changing the system. – John S Gruber Jun 13 '12 at 13:23