One of the new things that the new operating systems introduced years ago and the Gnu / Linux systems was hibernation, a function that users did not know in their Windows 98 but that little by little has become a great option for the most savers . Hibernate is a function that has been in the doldrums lately, difficult to have in current Ubuntu versions. But difficult does not mean impossible.
Currently, for those looking to have the system in hibernation, we can make our system enter such a state as if we were to shut down the equipment or restart it. Also in an easy and simple way.
To do this, we must first create a new document that will have the title «com.ubuntu.enable-hibernate.pkla«. We open the file and paste the following:
[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;org.freedesktop.login1.hibernate-multiple-sessions ResultActive=yes
We save it and close the file. Now we write the following in the terminal:
gksudo nautilus
with this we open a Nautilus window with administrator permissions. Now through the mouse we go to /etc/polkit-1/localauthority/50-local.d . In this folder we will paste the file that we have created previously. And with this we will not only have the option of «Hibernate»On the on / off button but each time we press« Shut down », Suspend or Hibernate, we can select all the possible options, as is currently the case with the« Restart »option.
As you can see, it is a simple process but you have to remember that the computer must have a large and active swap partition since all the information of this function will be stored in this type of memory, as well as the ram memory. In any case, in case the flies, We recommend that you keep all open documents Before putting your computer into hibernation, in case there is a problem in the system, better safe than sorry Do not you think?
Source - Lubuntu with Javi