How to Switch to Xorg from Wayland in Ubuntu 17.10 [Quick Tip]

Brief: This quick tutorial shows you how to go back to Xorg from Wayland in Ubuntu 17.10 and vice versa.

unnamed-file-615-2426039

One of the main new features in Ubuntu 17.10 is the addition of Wayland as the default display server. As more and more Linux distributions are moving away from the legacy X.Org server and Wayland seems to be the top alternative.

While Wayland maybe the future, it really is in future. At least for Ubuntu 17.10. The issue here is that a number of Linux desktop applications still depend on X.Org. They don’t support Wayland very well.

For example, I had a hard time trying to record screen in Ubuntu 17.10. Apart from Green Recorder, none of the other Linux screen recorders worked.

This spoils the otherwise pleasant Ubuntu 17.10 experience. So what would be the solution here? Wait for all those applications to work with Wayland?

An easier way out would be to switch back to Xorg from Wayland. And I am going to show you how to do that in this quick tip.

Switch to Xorg from Wayland

Remember that I said Wayland is the default display server in Ubuntu 17.10. It also means that there are more than one display servers available. And we can simply switch between them. No need to install anything new.

In Ubuntu 17.10, restart your system. At the login screen, under the password field, you’ll see a gear icon. Just click on it and you’ll see two options here.

The default Ubuntu means it will be using Wayland while Ubuntu on Xorg obviously means it will use Xorg. You can select Ubuntu on Xorg to use Xorg here.

Similarly, you can switch back to Wayland when you feel like it.

How to know if I am using Wayland or Xorg

Since we are talking about Wayland, Xorg etc, let’s also see how to know which display server is being used. To find that out, open a terminal and use the following command:

echo $XDG_SESSION_TYPE

And then if you see X11, it’s Xorg. If you see Wayland, quite obviously, the display server in use is Wayland.

I hope this quick tip helped you to switch to Xorg from Wayland in Ubuntu 17.10. Stay tuned for more Ubuntu 17.10 tips and tricks.

Source