> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Switch Between Wayland and Xorg on Raspberry Pi OS
- URL: https://itsfoss.com/raspberry-pi-os-switch-wayland-xorg/
- Published: 2024-09-18T03:35:53.000Z
- Updated: 2024-09-18T03:35:54.000Z
- Description: The default Wayland server causing trouble? You can switch back to the good old Xorg. Here's how.
- Author: Abhishek Prakash
- Tags: Raspberry Pi, #hide

On the latest Raspberry Pi OS which is based on Debian Bookworm, Wayland is the default display server. 

This causes a problem if you want to use a screen recorder like SimpleScreenRecorder.

One workaround is to switch from Wayland to Xorg. That's what I did when I had to screen-record. And then later, I switched back to Wayland from Xorg.

Let me show you how to do it on Raspberry Pi OS.

📋

This should be applicable to other operating systems as well with the help of the raspi-config tool.

## Switch between Wayland and Xorg on Raspberry Pi OS

Open a terminal and run the following command:

```
sudo raspi-config
```

This will open a terminal user interface (TUI) with several options to configure your Raspberry Pi.

Use the arrow keys to move down to the **Advance Options**. When the line is highlighted, press **Enter**.

![Advanced options in raspi-config](https://itsfoss.com/content/images/2024/09/raspberry-pi-change-x11-wayland-1.png)

This will present you with different advanced options. Look for 6th **line A6** which should display the currently used display server and give you the option to change. 

When this line is highlighted, press enter key.

![Switch between Wayland and Xorg on Raspberry Pi](https://itsfoss.com/content/images/2024/09/raspberry-pi-change-x11-wayland-2.png)

On the next screen, you'll see the option to choose among X11, Wayland and Labwc. Choose the one desired here. And then press Tab to go to OK. I think Enter key also works.

![Switch between Wayland and Xorg on Raspberry Pi](https://itsfoss.com/content/images/2024/09/raspberry-pi-change-x11-wayland-3.png)

When you have made your choice, the next screen reflects that. However, it is not really active yet.

![Switch between Wayland and Xorg on Raspberry Pi](https://itsfoss.com/content/images/2024/09/raspberry-pi-change-x11-wayland-4.png)

You'll be back to the initial screen of Advanced options. Here, **press tab key to go to Finish and the press Enter**.

![Finish switching between Wayland and Xorg on Raspberry Pi](https://itsfoss.com/content/images/2024/09/raspberry-pi-change-x11-wayland-5.png)

Now, you'll be asked to reboot if you want the changes to take place. The system is still using the previous display server. It will use the newly selected one after the reboot.

![System needs to be rebooted after switching the display servers](https://itsfoss.com/content/images/2024/09/raspberry-pi-change-x11-wayland-6.png)

Check if [you are using Wayland or Xorg](https://itsfoss.com/check-wayland-or-xorg/) with the following command:

```
echo $XDG_SESSION_TYPE
```

I hope you find this quick little Raspberry Pi tip useful. Stay subscribed for more.