Restore apps after Hibernation in Ubuntu

At times, we are running some important applications on our system but for some reason, our system goes into hibernation mode. We do not want to lose the applications that we were running and want to restore the system to its previous state. The Dconf Editor is one tool that can be customized in order to restore the Ubuntu system to its previous state. In this article, we will explain how to download and configure the Dconf Editor to achieve this purpose.

We have run the commands and procedures mentioned in this article on an Ubuntu 18.04 LTS system.

Step 1: Install the Dconf Editor

Install the Dconf Editor by running the following command in your Ubuntu Terminal; you can open the Terminal either through the system Dash or the Ctrl+Alt+T shortcut:

$ sudo apt-get install dconf-tools

Please enter the password for sudo in case you are asked to do so, as only an authorized user can install/uninstall software on Ubuntu.

Install dconf editor

The system will prompt you with a Y/n option in order to continue installation. Please enter Y to continue. The Dconf Editor will be installed on your system. You can check the version number and verify the installation through the following command:

$ dconf-editor --version

Check dconf editor version

Step 2: Launch the Dconf Editor

You can launch the Dconf Editor through the GUI by searching for it through the system Dash:

Start dconf editor

Or launch it through the command line by entering the following command in your Terminal:

$ dconf-editor

The Dconf Editor will launch, displaying the following message:


Click the “I’ll be careful” button and also uncheck the “Show this dialog next time” if you do not want to see this message the next time you launch the Dconf Editor.

Step 3: Configure Gnome with Dconf Editor

From the left pane, click on the “org” option; this will expand the branch for this option.

select org branch

Under org, click the gnome option and then the gnome-session under this branch:

Select /org/gnome/gnome-session/

Now you will be able to view the options you can configure for the Gnome session. The “auto-save session” button is switched off by default. Please switch this button on. This will configure the current session to be saved till the next time you log on after hibernation.

Set auto-save-session to on

Close the Dconf Editor.

Step 4: Hibernate and log in

You can send your Ubuntu system in Hibernation mode by running the following command in the Terminal:

$ systemctl suspend

Now log in back to the system and you will see all your applications from the previous session restored.

You have learned how to make your Ubuntu system to remember and restore applications from your previous session before hibernation. The Dconf Editor needs to be downloaded and through simple configuration, you can make your system remember your previously run applications.

Restore Running Applications after Hibernation in Ubuntu

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn