I have Ubuntu Server 18.04. I installed Xorg, plugged in my monitor and started my app like this:
startx ./MyApplication
It runs perfectly, but if I unplug my monitor, run the command and then plug my monitor again, Xorg cannot detect the monitor.
Is there any solution for this? Can startx
auto detect the monitor? If not, should I use something else, like Wayland?