Ubuntu 22.04 any screen recorders not working. Showing black screen only!

6,484

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.

enter image description here 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

Share:
6,484

Related videos on Youtube

Muhammadsiddiq
Author by

Muhammadsiddiq

Updated on September 18, 2022

Comments

  • Muhammadsiddiq
    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
      Admin almost 2 years
      This answer worked for me . Link for answer
    • Admin
      Admin almost 2 years
      Faced same issue resolved with this answer. ANSWER LINK
    • Admin
      Admin almost 2 years
      This answer fixed my issue. Solution
  • Admin
    Admin almost 2 years
    It 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
    Admin almost 2 years
    This 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.