As mentioned in a previous post, we installed OBS studio on our machine in order to make some desktop recordings.
What that post did not mention are two issues that we had:
- when recording using the
Screen Capture (XSHM)source, the recording would only show a
black screenand it would actually record the mouse only!
- when trying to record a
Window Capture (XComposite)source,
Calcwould not show in the properties dialog under the
The way we fixed these issues is not something that is always guaranteed to work but it is worth a try!
Initially we thought it would be a good idea to install the
NVidia driver since we had a
GeForce GTX 660M on the machine.
We hoped that the
OBS studio black screen issue was a driver issue so we decided to follow the RPM Fusion guide on installing NVidia drivers.
We installed the
NVidia driver, added the
CUDA support and updated the system using these two commands:
dnf install xorg-x11-drv-nvidia akmod-nvidia xorg-x11-drv-nvidia-cuda; dnf update -y;
and then we did a
full reboot of the machine.
After the machine booted and the graphical interface came up, we noticed that the machine was too slow and there was
100% CPU utilization for over 15 minutes.
After some very efficient
Google-Fu, we realised that this was some bug that we were not willing to deal with and so we had to remove the newly installed
Again following the
RPM Fusion guide, we executed the following command to remove the driver from our system:
dnf remove xorg-x11-drv-nvidia\*
Please note that we DID NOT execute the last step of the guide on how to
Recover from NVIDIA installer.
As it is mentioned in the guide: the
NVidia binary driver installer overwrites some configuration and libraries.
Since having a clean state did not work for us, we decided to give a go of this hybrid setup that we had.
Following another full restart we were able to see that
OBS Studio was working as expected and it the black screen issue was no more!!
Also, we could choose
LibreOffice from the
Window dropdown and we could record that as well!
As implied, this guide is a hack, it could work for you as well or not.
Our opinion is that, it is worth to give it a go!
As a synopsis, what we did was to install the
NVidia driver and uninstall it, the libraries that got overwritten by this process fixed the black screen issue of
Bonus: to find the model of your graphics card, execute the following
lspci |grep -E "VGA|3D";
In our machine we got the following output:
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GTX 660M] (rev a1)
This post is also available in: Greek
I found a (better?) workaround that is specific for Ubuntu 17.10. Maybe it can be translated to Fedora. The issue is the wayland display manager used on these new systems. If you fall back to X, you are good to go. See link below.
Wayland vs X11. For me, I had the black screen (except I could see my mouse) on a Lenovo Yoga laptop with Intel integrated graphics running Fedora 30 with Wayland. Couldn’t get anything but a black screen until I switched to X11. Bingo. OBS works, ffmpeg works.
Uncomment the WaylandEnable=false line, save the file.
Then either reboot or, faster, run:
systemctl isolate multi-user.target
Login and switch back to graphical with:
systemctl isolate graphical.target
Thanks for your contribution Tux. Another option to potentially resolve this challenge is with either obs-xdg-portal or obs-gnome-screencast free and open source plugins.
obs-xdg-portal at https://gitlab.gnome.org/feaneron/obs-xdg-portal
obs-gnome-screencast at https://github.com/fzwoch/obs-gnome-screencast
Details at https://obsproject.com/forum/threads/running-obs-in-wayland.32165/post-492672