Sitemap
Sharif Madber

Sharif Madber

IT professional passionate about cybersecurity, specializing in Penetration Testing and Vulnerability Management. Committed to enhancing digital security.

Force High Resolution & Fix VNC Lag with Dummy Driver

2 min readDec 7, 2025

--

Press enter or click to view image in full size

If you are running Linux (like Parrot OS, Kali, or Ubuntu) as a headless server — meaning without a physical monitor attached — you have likely faced a common annoying issue: VNC Lag and Low Resolution.

When no monitor is detected, the operating system often disables the GPU or defaults to a very low resolution (like 800x600). This makes remote desktop connections (VNC, TeamViewer, AnyDesk) feel sluggish and unresponsive.

In this guide, I will show you how to set up a “Dummy Video Driver”. This tricks the OS into thinking a high-definition monitor is connected, activating the graphics system and giving you a smooth, 1080p remote experience.

Let’s get started.

Step 1: Install the Dummy Video Driver

First, we need to install the package that allows the X server to use a virtual display. Open your terminal and run the following commands:

sudo apt update
sudo apt install xserver-xorg-video-dummy -y

Step 2: Configure the Virtual Display (Xorg)

Now, we need to tell the system to use this dummy driver and define the screen resolution. We will do this by creating an xorg.conf file.

Open the configuration file with the nano text editor:

sudo nano /etc/X11/xorg.conf

Copy the configuration code below and paste it into the file:

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

Section "Monitor"
Identifier "Configured Monitor"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080" "1366x768" "1280x720"
EndSubSection
EndSection

Note: I have set the resolution to 1920x1080. If you want better performance on a slower network, you can change the "1920x1080" part to "1366x768" or "1280x720".

Get Sharif Madber’s stories in your inbox

Join Medium for free to get updates from this writer.

To Save: Press Ctrl + O, hit Enter, and then Ctrl + X to exit.

Step 3: Reboot the System

For the changes to take effect and for the virtual monitor to initialize, simply restart your machine:

Bash

sudo reboot

The Result

Once your system is back online, connect via VNC. You will notice the screen resolution is now fixed at 1080p (or whatever you set), and the UI will feel significantly smoother because the system is now rendering the desktop properly.

⚠️ Important Warning

This configuration is specifically for Headless Mode (no monitor).

If you keep this xorg.conf file is active and try to plug in a real physical monitor (HDMI/VGA), the physical screen might remain black. The system will continue sending the video signal to the "Dummy" virtual monitor instead of the real one.

If you need to use a real monitor again, you must connect remotely (via SSH) and delete or rename the configuration file:

Bash

sudo rm /etc/X11/xorg.conf
sudo reboot

Did this guide help you fix your remote desktop lag? Let me know in the comments!

--

--

Sharif Madber
Sharif Madber