I’m not sure what you were recording, but I’m sure you were using OBS Studio, and I’m also certain you were recording the Ubuntu screen. That is why you have arrived. Not to worry! We have it for you. This guide will teach you how to resolve the OBS Studio Black Screen issue in Ubuntu.
My computer is running Ubuntu 21.04 (the most recent version). I was attempting to record my Ubuntu screen using OBS Studio. I assumed everything would go swimmingly. But, unfortunately, I ran into a major problem. When I checked, OBS Studio only displayed a black screen on my screen capture source (XSHM)
- What is OBS Studio?
- How to Fix the OBS Studio Black Screen issue in Ubuntu
- Two Ways to Fix the Black Screen Issue When Recording the Ubuntu Screen with OBS Studio
- Final words:
What is OBS Studio?
OBS Studio, a popular podcasting and streaming software, is open.source software for recording and streaming.
OBS Studio allows users to create videos from a variety of sources/media, such as browser window captures and recordings, uploaded images, text annotations, webcam video, plus many more. It also includes an audio mixer tool with filters like noise gate and noise suppression to help users edit audio files. When using video transition features, an infinite number of events can be used/selected.
OBS Studio can encode video streams into the H.265/HEVC and H.264/MPEG.4 AVC formats using the x264 free software library, Intel Quick Sync Video, AMD Video Coding Engine, and Nvidia NVENC. The AAC codec can encode multiple audio tracks at the same time. Advanced users can use any of the codecs and containers included in libavformat/libavcodec. To learn more about OBS Studio, Click here.
How to Fix the OBS Studio Black Screen issue in Ubuntu
The OBS screen is completely black. This problem appears to be present in other Ubuntu versions as well, including Ubuntu 20.04 and Ubuntu 20.10. But don’t worry, there is a quick and easy fix that you can read about below.
Two Ways to Fix the Black Screen Issue When Recording the Ubuntu Screen with OBS Studio
The black screen in OBS Studio is caused by the Wayland Window Server in Ubuntu 21.04. Wayland is the default window server in Ubuntu 21.04. OBS Studio appears to still have some Wayland issues. As a result, we’ll have to use Xorg instead of Wayland to log in.
There are two ways to do this:
- First Disable Wayland login
- Second Sign in with Xorg
1. Disable Wayland Login
To disable Wayland login, follow the steps below:
- Edit the custom.conf file located under /etc/gdm3. I use nano to edit this file.
Sudo nano /etc/gdm3/custom.conf
- Uncomment the following line.
- It must looks like this now.
Now you have to Save and close the file. Reboot the Ubuntu. You should now be able to resolve the OBS Studio black screen issue in Ubuntu and no longer see a black screen.
2. Sign in with Xorg
you don’t like to edit the custom.conf file, you can choose to log in with Xorg instead.
Navigate to the Ubuntu sign in screen.
On the bottom right of the GDM login screen, you will see an option. Select it and then select Use Xorg.
OBS studio will continue to function normally. You will be able to resolve the OBS Studio black screen issue in Ubuntu and see No black Screen issue in the following steps.
I hope you found this article helpful and that you were able to resolve the OBS Studio black screen issue in Ubuntu. Thank you for taking the time to read this, and I’ll see you next time.