DEV Community

Stack All Flow
Stack All Flow

Posted on • Originally published at stackallflow.com on

Add Fake Display When No Monitor Is Plugged in in Ubuntu?

14.04display-resolutionheadlessnxremote desktop

I have an Ubuntu 14.04 server that has no external monitor connected. I use NoMachine to remote control the machine. When I do so, the Unity/Gnome interface doesn’t see any monitors connected, so I can only use 800×600 when connecting with NoMachine. If I plug in a monitor, I can set the resolution to whatever size the NoMachine window is on the remote computer.

Is there a way to create a “fake” monitor device on Ubuntu so I can set a desktop resolution in Unity/Gnome?

Accepted Answer

Found a way to do it without requiring a dummy plug: Ubuntu Headless VNC VESA 800×600 Resolution Fix ~ Andy Hawkins @ June 12, 2011

Basically install a dummy driver:

sudo apt-get install xserver-xorg-video-dummy

Enter fullscreen mode Exit fullscreen mode

Then write it in the /usr/share/X11/xorg.conf.d/xorg.conf (or possibly /etc/X11/xorg.conf) file (create one, if it does not exist):

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

Enter fullscreen mode Exit fullscreen mode

Then restart the computer.

The post Add Fake Display When No Monitor Is Plugged in in Ubuntu? appeared first on Stack All Flow.

Top comments (0)