Ubuntu Dock Disappearance Fix

Introduction

When I started to use a 4K monitor, I found Ubuntu LTS did not support 4K resolution very well and has a lot of weird bug for it. One extremely common bug is that the dock at the left side of the screen, which someone may also call as launcher or sidebar, will be gone after returning from a screen lock. All the window layouts will then become a mess. I would have to reboot the computer in order to bring the dock back, which was very undesirable. It turns out that this is a known bug for Ubuntu and it seems that there is no one going to fix it. In this short blog post, I am going to talk about how to work around the problem temporarily.

Methods

The workaround is to reboot the Gnome shell by following the protocols presented below.

  1. Press Alt + F2.
  2. In the pop-up terminal, type r and press Enter.

The Gnome shell will restart without breaking the existing processes.

This is not a perfect solution since next time the problem might still happen when login back from a screen lock. But at least this time we don’t have to kill our processes and reboot the computer.

Notes

This trick works on both Ubuntu 18.04 LTS and 20.04 LTS.

References

Author

Lei Mao

Posted on

07-28-2019

Updated on

01-22-2022

Licensed under


Comments