Skip to content

Instantly share code, notes, and snippets.

@kupereal
Created February 19, 2026 12:27
Show Gist options
  • Select an option

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

Select an option

Save kupereal/03aa8dcc52129ec84dfb2fda10cb0f52 to your computer and use it in GitHub Desktop.
Xorg Dummy Config for Headless RustDesk Access (Linux)
Section "Device"
Identifier "dummy_device"
Driver "dummy"
VideoRam 256000
EndSection
Section "Monitor"
Identifier "dummy_monitor"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
#Modeline "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
EndSection
Section "Screen"
Identifier "dummy_screen"
Device "dummy_device"
Monitor "dummy_monitor"
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 Manjaro Linux.

  1. Backup and remove the current config:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.back
sudo rm /etc/X11/xorg.conf
  1. Prepare the configuration directory (if it doesn't exist):
sudo mkdir -p /etc/X11/xorg.conf.d/
  1. Create and fill the new config file from this Gist:
sudo nano /etc/X11/xorg.conf.d/99-rustdesk.conf
  1. 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