In this article, we will guide you on how to switch from Wayland to X on Ubuntu 22.04. We will explain the process in a step-by-step manner, ensuring that even beginners can follow along easily.
To switch from Wayland to X on Ubuntu 22.04, you can either use the terminal or the login screen. In the terminal, you need to edit the
custom.conf file and modify the
WaylandEnable setting. On the login screen, select "Ubuntu on XOrg" instead of "Ubuntu (Wayland)". Please note that some users have reported issues when switching from Wayland to X, so proceed with caution and consider backing up your data before making any changes.
- Method 1: Switching from Wayland to X using Terminal
- Method 2: Switching from Wayland to X using the Login Screen
Ubuntu 22.04, like many modern Linux distributions, uses the Wayland display server protocol by default. However, some users may prefer to switch back to the older X.Org (X11) display server for compatibility reasons or personal preference.
Method 1: Switching from Wayland to X using Terminal
The terminal is a powerful tool that allows you to control your computer with text commands. Here’s how you can use it to switch from Wayland to X.
Step 1: Open the Terminal
You can open the terminal by pressing
Step 2: Edit the custom.conf File
custom.conf file is a configuration file for the GDM3 login manager, which Ubuntu uses by default. You can open this file in a text editor with the following command:
$ sudo nano /etc/gdm3/custom.conf
In this command,
sudo allows you to run commands with administrative privileges,
nano is a simple text editor, and
/etc/gdm3/custom.conf is the path to the file you want to edit.
Step 3: Modify the WaylandEnable Setting
custom.conf file, find the line that says
#WaylandEnable=false. This line is a comment (indicated by the
# symbol) that shows the default setting.
To disable Wayland and switch to X, remove the
# symbol and change
true, so the line reads
Step 4: Save and Exit
Save the file by pressing
Ctrl+O, then exit nano by pressing
Step 5: Restart Your System
Finally, restart your system for the changes to take effect. You can do this through the GUI or by using the
reboot command in the terminal.
Method 2: Switching from Wayland to X using the Login Screen
If you prefer not to use the terminal, you can also switch from Wayland to X from the login screen, provided this option is available on your system.
Step 1: Navigate to the Login Screen
On the lock screen or login screen, click on the password field or type your password.
Step 2: Select the X Session
Look for a cog wheel icon in the bottom right corner of the screen and click on it. If available, you will see two options: “Ubuntu (Wayland – the default)” and “Ubuntu on XOrg”. Select “Ubuntu on XOrg” to switch to X.
Step 3: Log In
After selecting “Ubuntu on XOrg”, sign in as usual. You will be logged into the X session.
Switching from Wayland to X on Ubuntu 22.04 can be done either through the terminal or the login screen. However, please note that some users have reported issues when switching from Wayland to X, such as system boot failures. If you encounter any problems, you can try booting into recovery mode and undoing the changes made to the
For more information and alternative solutions, you can refer to the Ubuntu community documentation or ask for help on the Ubuntu forums. Remember, it’s always a good idea to back up your data before making significant system changes.
The steps provided in this article are specifically for Ubuntu 22.04. While the general process may be similar for other versions, it’s recommended to refer to the documentation or forums for your specific version of Ubuntu.
Switching from Wayland to X can sometimes lead to compatibility issues or system boot failures. If you encounter any problems, you can try booting into recovery mode and undoing the changes made to the
Yes, you can switch back to Wayland if you prefer. Simply follow the same steps outlined in this article, but instead of enabling X by modifying the
custom.conf file, you would disable X by commenting out the
No, switching between Wayland and X requires a system restart for the changes to take effect.
While it’s always a good practice to back up your data before making significant system changes, switching from Wayland to X should not affect your personal files. However, it’s better to be safe and have a backup in case any unexpected issues arise.
Yes, you can switch from Wayland to X using the graphical login screen. Simply follow the steps outlined in the article under the "Method 2: Switching from Wayland to X using the Login Screen" section.