ubuntu full screen code example
Example 1: screen in ubuntu
screen -S session_name
Example 2: ubuntu black screen recording
log out and beside "Sign in" button you will see a small cogwheel. click on it and choose "Ubuntu on Xorg" or "Gnome on Xorg" and you're good to go, OBS should work on that, but this reverts you to using X as display manager.