In the previous posts I had shown How to...
- Cannot Start Omnisharp [ERROR] Error: spawn cmd ENOENT VS Code
- How to create cron job in ubuntu
- How to Install MongoDB on Ubuntu 16.04
sudo pm-hibernate
If it does not work, check your swap size is grater than or equal to your system RAM.
To add Hibernate option to the settings menu, you can create a configuration file.
Open a terminal and run below command.
sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
It will open nano with an empty file. Copy and paste the below lines into the nano window.
[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.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
Then save the file and restart the system. Then you will find the menu as shown in the above out put.For more information you can check this link
No comments:
Post a Comment