Ubuntu 22.04 any screen recorders not working. Showing black screen only!
Solution 1
I found a solution.
In this file /etc/gdm3/custom.conf
(to access it for editing, you could run sudo nano /etc/gdm3/custom.conf
), uncomment (remove the leading #
) this line
WaylandEnable=false
save and exit.
Then run this command in the terminal
sudo systemctl restart gdm3
Happy Ubuntu :)
Solution 2
This may be because Ubuntu 21.04 uses Wayland by default, which restricts screen recording for "security".
In your login screen, you can switch to the "Ubuntu" session, which uses X.Org, and it should allow screen recording software to function properly.
Image source: OMG! Ubuntu!
Solution 3
I am using Ubuntu 21.10 with wayland just fine with a new screen recorder called Kooha (available on Flathub). It can record desktop and microphone audio to MP4 as well as Gif, and with selected area, monitor, or application window.
However, to get it to work I had to install the latest version of Pipewire Debian using the ppa, as the Pipewire version included with Ubuntu 21.04 was not compatible with Kooha:
sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream
sudo apt-get update
sudo apt install pipewire
Solution 4
First, it uses Wayland. That means you need OBS studio 27 and higher, I recommend to use flatpak because it uses this by default, so it works just fine. Also, you can use Peek for screen recording. Apps like simple screen recorder are made for x11, not modern Wayland protocol
Related videos on Youtube
Muhammadsiddiq
Updated on September 18, 2022Comments
-
Muhammadsiddiq over 1 year
I've just installed Ubuntu 22.04(also 21.04). I used to install obs studio and Kazam to record my screen. In OBS-Studio if I select only window recording it records but the fullscreen option is not working recording only the cursor. Any solutions?
-
Admin almost 2 yearsThis answer worked for me . Link for answer
-
Admin almost 2 yearsFaced same issue resolved with this answer. ANSWER LINK
-
Admin almost 2 yearsThis answer fixed my issue. Solution
-
-
Admin almost 2 yearsIt worked for me thank you. But it would be great to allow capturing all applications for example skype on Wayland mode instead of changing to Xorg.
-
Admin almost 2 yearsThis is dangerous if you don't already have xserver-xorg package. You will just get a black screen. Then you have to boot off a usb or with safe graphics, change the setting back and install that package. You should choose from the login which gives you the option of choosing Xorg or Wayland. Fiddling around with this file is a bad idea.