Score:0

How to run a Virtual Monitor and a physical Monitor

ge flag

I've been pulling my hair for a couple last of days and I still didn't find a solution to my problem.

I'm using Ubuntu Desktop 20.04

I have a physical monitor with an HDMI port, at the same time I wanted to access my ubuntu using RealVNC, so I installed the RealVNC server and I edited the file

/etc/X11/xorg.conf

With the following code

Section "Device"
    Identifier  "Configured Video Device"
    Driver      "dummy"
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync 31.5-48.5
    VertRefresh 50-70
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1024x800"
    EndSubSection
EndSection

RealVNC works fine, however when I connect my HDMI cable, all I get is a black screen, I rebooted the computer, after the logo I get a black screen if I remove xorg.conf everything just fine with the HDMI port, however RealVNC will look too slow and it created double icons and the mouse pointer doesn't seem to respond to my clicks.

Does anyone have a 1+1 = solution to this problem?

Zack Tim avatar
ge flag
Actually the Codename is `focal` I tried to run RealVNC without xorg config file but when you access VNC it would look sluggish and not responding to clicks...
user535733 avatar
cn flag
Ubuntu Core 20 is indeed based on Ubuntu 20.04 (Focal). It's still unclear exactly what version of Ubuntu you installed. Ubuntu Desktop 20.04? Ubuntu Server 20.04? Ununtu Core 20? There are other possibilities. Please update your question to be nore clear. Different versions of Ubuntu have different solutions.
Zack Tim avatar
ge flag
it's Ubuntu desktop 20.04
Zack Tim avatar
ge flag
@guiverc I've just did, thank you and sorry for the confusion.
ar flag
If you always have the physical monitor connected and turned on you don't need the "virtual" monitor to use VNC. Try reversing the edits to `xorg.conf`.
Zack Tim avatar
ge flag
@user68186 It's frustrating to switch back and forth between the monitor and the xorg.conf, is there any other code to be added to xorg.conf which would let the OS to detect that an HDMI cable is indeed connected?
user.dz avatar
ng flag
@ZackTim Instead of this static X configuration, have tried other solutions as in https://askubuntu.com/q/453109/26246
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.