Skip to content

Instantly share code, notes, and snippets.

@kupereal
Created February 19, 2026 10:42
Show Gist options
  • Select an option

  • Save kupereal/d43d8ade1403f55af3bece7b913e398a to your computer and use it in GitHub Desktop.

Select an option

Save kupereal/d43d8ade1403f55af3bece7b913e398a to your computer and use it in GitHub Desktop.
Xorg Dummy Config for Headless AnyDesk Access (Linux)
Section "Device"
Identifier "Card0"
Option "NoDDC" "true"
Option "IgnoreEDID" "true"
Driver "dummy"
VideoRam 512000
EndSection
Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
# 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
# Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
# 1280x720 @ 60.00 Hz (GTF) hsync: 44.76 kHz; pclk: 74.48 MHz
# Modeline "1280x720_60.00" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
# 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
# Modeline "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
# 1600x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 119.00 MHz
# Modeline "1600x900_60.00" 119.00 1600 1696 1864 2128 V900 901 904 932 -HSync +Vsync
# 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection

Usage

Prerequisites

Install the Xorg dummy driver for your distribution:

# Debian/Ubuntu
sudo apt update && sudo apt install xserver-xorg-video-dummy

# Arch/Manjaro
sudo pacman -S xf86-video-dummy

# RHEL/Fedora
sudo dnf install xorg-x11-drv-dummy

Configuration

Works for me on Linux Mint.

  1. Backup your current config (it will be replaced):
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.back
  1. Overwrite xorg.conf with this Gist.
  2. Restart your display manager to apply the new config (or reboot):
sudo systemctl restart display-manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment