Ubuntu 18.04: Suspend on GNOME3 desktop environment

This article will describe a way to suspend on GNOME3 desktop environment.

1 Display suspend button

Only power button icon is displayed at GNOME3 desktop environment launcher.

0001_PowerButtonIsDisplayed.png

Pressing ALT key or long click on power button icon will change power button icon to suspend button icon.

Clicking this suspend button icon will suspend machine.

0002_SuspendButtonIsDIsplayed.png

2 Display suspend button always with gnome-shell-extension-suspend-button

Install gnome-shell-extension-suspend-button package.

sudo apt install -y gnome-shell-extension-suspend-button

Run "GNOME Tweaks".

$ gnome-tweaks

Change "Suspend button" to be ON at "Extensions".

0003_gnome-shell-extension-suspend-button.png

Suspend button icon is added to GNOME3 desktop environment launcher.

0004_SuspendButtonIsAdded.png