Categories: Ubuntu

How to Enable and Disable Wayland on Ubuntu

You might have heard or even come across a Linux distribution using Wayland—for example, Fedora 25—as its default display server.

Whether you are looking to test Wayland, understand what it is before using it, or learn how to enable and disable it on Ubuntu, this guide will prove valuable in one way or the other.

This guide will discuss what Wayland is, how it works, and how to enable and disable it on your Ubuntu system.

Let’s get started.

What is Wayland

The best way to define Wayland is to call it a protocol used by compositing window managers to communicate with the client and the C library of Wayland protocol.

Sponsored

A compositing window manager, colloquially shortened to a compositor, is a windows manager that provides applications with an off-screen buffer for each window. A compositor can interact with the graphics and the window system creating:

  1. Transparency in Windows
  2. Animations
  3. Drop shadows

The compositor implemented by Wayland protocol can be a display server running on the Kernel, X application, or a Wayland client such as rootless or fullscreen X servers, other display servers, or basic applications.

The initial team of volunteer-developers who helped develop the Wayland protocol created it as a simpler and faster replacement of X. X11 technology had been the default display server used by most Linux Desktop environments. However, because of various issues in the X11 server, including security vulnerabilities and performance issues, the Kristian Høgsberg-led team developed Wayland as an alternative.

Why Wayland

Compared to other display servers, the Wayland display protocol is secure and fast. Wayland defines every application as a client and a graphic process unit as the server. Unlike X11, Wayland allows each application to use the protocol in a standalone functionality.

Since Wayland handles each application in a standalone session of the protocol, it improves performance because the server does not have to manage all applications at once. Instead, the required applications draw standalone required items.

Wayland’s development has improved, adding more features like the XWayland that allows users to work with X11-based Wayland applications.

The image below shows the Wayland Architecture.

How to Enable and Disable Wayland on Ubuntu

Over the years, thanks in part to an active development team and community, some Linux distributions have adopted Wayland and allow you to enable it during login.

To enable Wayland on Ubuntu, follow the steps below:

Sponsored

For this tutorial, you should have root privileges to edit specific files. The tutorial also assumes you are running GNOME as your default Desktop Environment.

Edit the file /etc/gdm3/daemon.conf

In the file, look for the following entry #WaylandEnable=false

Uncomment the entry to disable Wayland or leave uncommented to enable Wayland.

Close, save the file, and then restart gdm using the command:

sudo service gdm3 restart

You can also apply the changes by rebooting your system.

To use Ubuntu over Wayland, click on the settings icon on the login menu, select “Ubuntu on Wayland,” and then login. Ensure you have enabled Wayland by leaving the line in the above file uncommented.

Conclusion

This tutorial has given you an idea of what the Wayland protocol is, how it works, and how to enable and disable it on Ubuntu.

In parting, keep in mind that this is not a Wayland protocol guide or reference guide. The aim was to introduce you to the Wayland protocol, show you how it works, and how you can enable and disable it on an Ubuntu system.

If you’d like more information, you can check the official documentation:

https://wayland.freedesktop.org/docs/html

Ubuntu Server Admin

Recent Posts

Building RAG with enterprise open source AI infrastructure

One of the most critical gaps in traditional Large Language Models (LLMs) is that they…

11 hours ago

Life at Canonical: Victoria Antipova’s perspective as a new joiner in Product Marketing

Canonical is continuously hiring new talent. Being a remote- first company, Canonical’s new joiners receive…

1 day ago

What is patching automation?

What is patching automation? With increasing numbers of vulnerabilities, there is a growing risk of…

2 days ago

A beginner’s tutorial for your first Machine Learning project using Charmed Kubeflow

Wouldn’t it be wonderful to wake up one day with a desire to explore AI…

3 days ago

Ubuntu brings comprehensive support to Azure Cobalt 100 VMs

Ubuntu and Ubuntu Pro supports Microsoft’s Azure Cobalt 100 Virtual Machines (VMs), powered by their…

3 days ago

Ubuntu Weekly Newsletter Issue 870

Welcome to the Ubuntu Weekly Newsletter, Issue 870 for the week of December 8 –…

4 days ago