3

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?

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
Pourya
  • 41
  • 3
  • Plain X.org provides very basic GUI features. If you are looking for more advanced ones, consider installing a full desktop environment. You could still launch it on demand. – Melebius Oct 08 '19 at 12:39
  • I was using ubuntu desktop before and because of its bugs, wanted ti use a lighter and simpler linux, so I chose Ubuntu server, Now I just want a simple command to run Hot plugging HDMI. – Pourya Oct 08 '19 at 13:16

0 Answers0