To prevent the screen from turning black after a few minutes, the screensaver can be installed.

sudo apt-get update
sudo apt-get install xscreensaver

Start screensaver: Start screensaver

After installation, the black screen can be prevented by switching off the screensaver in the local settings. Disable screensaver

Close screensaver: Close screensaver