Skip to main content
Topic: Use different xorg config file to disable 2nd monitor (Read 285 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Use different xorg config file to disable 2nd monitor

I'm trying to create a separate xorg config file to use in a second xserver. The problem is that I want this config to enable one monitor and don't use the second at all, but somehow still both are enabled when xserver runs.
contents of xorg-games.conf: 
Code: [Select]
Section "Device"
    Identifier "Card0"
    Driver "amdgpu"
    BusID  "PCI:1:0:0"
    Option "DRI" "3"
    Screen 0
EndSection

Section "Monitor"
 Identifier  "HDMI-A-0"
 VendorName  "Monitor Vendor"
 ModelName    "Monitor Model"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device    "Card0"
    Monitor    "HDMI-A-0"
    Option "PreferredMode" "1920x1080"
EndSection

Section "ServerLayout"
    Identifier "Main"
    Screen 0  "Screen0"
EndSection
I have only one monitor defined there, but amdgpu driver automatic enables both. How to prevent that?