What Hibernation option on your Ubuntu 14.04 LTS Trusty Tahr operating system.Just follow the steps mentioned below.
By default "Hiberanation" option is disabled on your Ubuntu Os.Hibernation option is very useful when we want close the laptop (or) system but want our applications in the open state so that we can continue the work where we left the other day when we switch on the laptop (or) system.
Test Hibernation :-
First , We need to check whether Hibernation works on our system or not.Open the terminal using Ctrl+Alt+T
Type the below Command in terminal to test Hibernation:-
After entering the command it prompts us to enter the password. After typing the password now the laptop Hibernates. Switch-on the Laptop/system it should return back all the applications folders and files as they were before .
So, if you want to hibernate your system everytime run the sudo pm-hibernate command in terminal.If you dont like to run the command you can add hibernate option in the menu tray.
Enable "Hibernate" option in the Power Menu tray
1) You need to create a file.For that run the following command in the terminal
sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
2) Now paste the below code into newly created file:
[Re-enable hibernate by default in upower]
[Re-enable hibernate by default in logind]
Save the above file by pressing Ctrl-O then enter and press Ctrl-X to exit the nano.
3) Type killall unity-panel-service in the terminal to reset the menu [or] Restart the system for the changes to be applied.Now you can see Hibernate option in the Menu.
That's it.If you face any problem please comment .