Score:6

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

cn flag

I've just installed Ubuntu 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 cursor. Any solutions?

Carlos avatar
it flag
Say thanks to the brains of the gnome team clap clap clap, from one day to the other, screen recording apps and screenshoting apps stopped working. On a LTS Ubuntu version, fantastic. Because its true that nobody needs those apps on a daily basis to be able to work. Awesome jobs guys
Score:4
us flag

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!

ethan avatar
ar flag
So what is the the long-term solution to be with screen recording under Wayland?
us flag
To wait for Wayland developers to fix the issue (or if you can, write the code yourself and send a patch).
Slbox avatar
au flag
Happens with X11 too, strangely.
Score:2
zm flag

I have encountered a problem like this, but I solved it by simply using the keyboard shortcut of Ctrl+Shift+Alt+R. It works fine for me.

Score:2
jp flag

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
Score:1
cn flag

I found a solution. In this file sudo nano /etc/gdm3/custom.conf uncomment this line WaylandEnable=false save and exit. Then run this command in the terminalsudo systemctl restart gdm3 Happy Ubuntu :)


Damn it, u should feel ashamed for this stupid joke. I have registered an account for everyone know. That made my laptop give error when starts ubuntu can't find VGA-1

user3483642 avatar
my flag
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.
Mehdi Charife avatar
mk flag
This gave me a black screen. I had to forcefully restart the computer.
cn flag
You can restore to old configuration state while entering on boot screen as root
Score:1
sg flag

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

Score:1
cn flag

You don't have to change from Wayland to Xorg.
Remove existing OBS using sudo apt remove obs-studio.
Then install using snap - sudo snap install obs-studio.
The snap version supports screen recording for Wayland too.

Mehdi Charife avatar
mk flag
the snap command gives me the error: ***error: cannot install "obs-studio": Post https://api.snapcraft.io/v2/snaps/refresh: dial tcp: lookup api.snapcraft.io: no such host***
Score:0
it flag

As already stated you'll need to use Pipewire to capture the screen under Wayland. There's an extension to obs to add a source for Pipewire screen recording, however I've never installed it on an vanilla OBS installation.

Martin Wimpress, the project leader for Ubuntu Mate, and previous maintainer of the OBS Snap, has created a distribution of OBS for Ubuntu called OBS Studio - Fully Loaded!, it does include the extension I mentioned previously and other bells and whistles. I do use it, and I can't recommend it enough.

Martin has yet another OBS distribution, a portable version of OBS, where he's also adding the extras that you can find on OBS Fully Loaded, it's OBS Studio Portable for Ubuntu, and while it does have some advantages like making it easer to have many independent installations of OBS that you can easily share with others, it does have some limitations that are mentioned on the readme file on the github repository. I have experimented with it, but haven't yet moved my work to it due to lack of time.

Any of these two distributions of OBS would work as you intended.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.