How to Fix the OBS Studio Black Screen issue in Ubuntu? I don’t know if you are busy recording, but I’m sure you used OBS Studio to record, and I’m pretty sure you also recorded the Ubuntu screen. That is why you are here. No worries! We’ve got it for you. In this guide, You will learn about how to Fix the OBS Studio Black Screen Issue in Ubuntu.
Ubuntu 21.04 (the latest version) is installed on my computer. When I tried to record my Ubuntu screen using OBS Studio, I thought everything would go smoothly. But unfortunately, I encountered a serious problem. When I checked, OBS Studio only showed a black screen in the original screenshot (XSHM).
What is OBS Studio?
OBS Studio is an open source recording and streaming software popular with Podcaster and Streamer.
OBS Studio allows users to create videos using various sources/media, including screenshots and recordings of browser windows, uploaded images, text annotations, webcam videos, etc. In addition, it has an audio mixing tool, which includes filters such as squelch. And noise cancellation function, so that users can edit audio files more easily. When using the video transition function, there are countless events that can be used/selected.
For video encoding, OBS Studio can use the free Intel Quick Sync Video x264, AMD Video Coding Engine and Nvidia NVENC software library to encode video streams in H.265/HEVC and H.264/MPEG-4 AVC. Multiple audio tracks. You can use the AAC codec for encoding. Advanced users can use any codecs and containers available in libavformat/libavcodec. To learn more about OBS Studio, click here.
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
The OBS Studio black screen problem is related to the Wayland window server used in Ubuntu 21.04. Ubuntu 21.04 uses Wayland as its default window server. OBS Studio still has some problems with Wayland, so we need to log in to Xorg through Wayland.
There are two ways to do this:
- Disable Wayland login
- Sign in with Xorg
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 close the file and save. Restart Ubuntu. Now, you should be able to fix the OBS Studio black screen issue in Ubuntu and never see the black screen again.
2. Sign in with Xorg
If you don’t want to edit the custom.conf file, you can log in with Xorg.
- Go to the Ubuntu login screen.
- At the bottom right corner of the GDM login screen, you will see an option, select it and select “Use Xorg”
Logging in to Ubuntu using Xorg OBS Studio can work normally. You should be able to fix the black screen problem in Ubuntu’s OBS Studio and see that there is no black screen problem below.
Hope this article is helpful to fix the black screen problem of OBS Studio in Ubuntu. Thank you for reading and see you next time.