Ubuntu – 18.04: How to get Wayland back after upgrade to 18.04


Since 17.10 I got familiar with Wayland and I really need the per-monitor-scaling!

How can I start a wayland session after dist-upgrade to Bionic? There is no option in GDM available out-of-the-box.

I do not see what is described as

The Wayland session will still be available, pre-installed

Bionic Beaver 18.04 LTS to use Xorg by default

Best Answer

On the login screen, you should be able to select "Ubuntu on Wayland" by clicking on the settings icon, next to the login button.

If that option is not available under the cog icon on the password screen, make sure that WaylandEnable=false is commented out (or not present) in /etc/gdm3/custom.conf

Mine looks like this:

# GDM configuration storage
# See /usr/share/gdm/gdm.schemas for a list of available options.

# Uncoment the line below to force the login screen to use Xorg
#  WaylandEnable=false

# Enabling automatic login
#  AutomaticLoginEnable = true
#  AutomaticLogin = user1

# Enabling timed login
#  TimedLoginEnable = true
#  TimedLogin = user1
#  TimedLoginDelay = 10




# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes

If you cannot log in to change this, start Ubuntu into recovery mode, go into root shell, and mount root partition as read/write: How do I boot into recovery mode?

From there edit the GDM config with nano /etc/gdm3/custom.conf and comment out the WaylandEnable line: #WaylandEnable=false

Related Question