I am running "Ubuntu 16.04.4 LTS" on a desktop. Sometimes after running for a while the screen goes black and I can no longer access the computer locally. This includes alt-F1 etc.to get to a terminal screen. Without the screen I can't tell if mouse or keyboard input is being processed.
I can however log in remotely and see that some other things (e.g. web servers) are apparently running as normal.
What can I do to diagnose the problem? Is there some command I can execute from my remote login (I have root of course) to get the 'screen driver' to 'restart'?
I'm not even sure how to tell which display manager process should be running. A few years back I could recover a crashed wm using something like metacity --replace or compiz --replace. I'm not so sure now.
I am using "gnome classic" (I think).