This tutorial will provide the reader with some native and alternative methods on how to suspend ( suspend to RAM ) Ubuntu 20.04 Focal Fossa Linux Desktop.

In this tutorial you will learn:
  • How to suspend system
  • How to add suspend button / shortcut
  • How to suspend the system from command line
How to suspend Ubuntu 20.04 Focal Fossa Linux Desktop
How to suspend Ubuntu 20.04 Focal Fossa Linux Desktop

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed or upgraded Ubuntu 20.04 Focal Fossa
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

How to suspend Ubuntu 20.04 step by step instructions

  1. The first method on how to suspend Ubuntu 20.04 is the simplest. First, open the top-right panel. Next, either press and hold the ALT key for the suspend button to appear or press and hold left mouse button over the power off button until the suspend button is revealed.

    Once the suspend button is shown simply click the button to suspend your system
    Once the suspend button is shown, simply click the button to suspend your Ubuntu system.
  2. Install Gnome Tweaks and gnome shell suspend button extension using the following command:
    $ sudo apt install gnome-shell-extension-suspend-button
    
    Open Tweaks tool and turn on the Suspend button switch
    Open Tweaks tool and turn on the Suspend button switch
  3. Install a GNOME extension to insert the additional suspend button on the top-right panel.This is kind of shortcut alternative to the method above.

    Additional suspend button
    Additional suspend button with the GNOME suspend extension installed
  4. The third method involves suspending your Ubuntu system from the command line. Simply open up a terminal window and enter the following command:
    $ systemctl suspend
    

    SUBSCRIBE TO NEWSLETTER
    Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


    Suspend the Ubuntu system from command line
    Suspend the Ubuntu system from command line
    The following message may appear while other users are logged into the system:
    Please retry operation after closing inhibitors and logging out other users.
    Alternatively, ignore inhibitors and users with 'systemctl suspend -i'.
    
    In that case, make sure that all users are logged out before you suspend the systems. Alternatively, you can force the suspend by ignoring the closing inhibitors using the below command:
    $ systemctl suspend -i
    
    Forcing the system suspend by ignoring closing inhibitors and logged in users
    Forcing the system suspend by ignoring closing inhibitors and logged in users
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.