Skip to content

Instantly share code, notes, and snippets.

@therealromster
Created July 1, 2018 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therealromster/857427eb6f584e164543ec18aef48ef4 to your computer and use it in GitHub Desktop.
Save therealromster/857427eb6f584e164543ec18aef48ef4 to your computer and use it in GitHub Desktop.
3 monitor xorg display can not get DVI-I1center of HDMI-0 and HDMI-1
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
FontPath "/usr/lib/X11/fonts/TTF/"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
Option "DPMS"
Option "Primary" "true"
EndSection
Section "Monitor"
Identifier "Monitor1"
Option "DPMS"
Option "LeftOf" "Monitor0"
EndSection
Section "Monitor"
Identifier "Monitor2"
Option "DPMS"
Option "RightOf" "Monitor0"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "Monitor-DVI-I-1" "Monitor0"
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "Monitor-HDMI-0" "Monitor1"
EndSection
Section "Device"
Identifier "Device2"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "Monitor-HDMI-1" "Monitor2"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Device2"
Monitor "Monitor2"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
@therealromster
Copy link
Author

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
FontPath "/usr/lib/X11/fonts/TTF/"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
Identifier "Monitor0"
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
Option "DPMS"
Option "RightOf" "Monitor0"
Option "Primary" "true"
EndSection

Section "Monitor"
Identifier "Monitor2"
Option "DPMS"
Option "RightOf" "Monitor1"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "Monitor-HDMI-0" "Monitor0"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "Monitor-DVI-I-1" "Monitor1"
EndSection

Section "Device"
Identifier "Device2"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "Monitor-HDMI-1" "Monitor2"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen2"
Device "Device2"
Monitor "Monitor2"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection

@therealromster
Copy link
Author

Section "Monitor"
Identifier "DisplayPort-0"
Option "Primary" "true"
Option "Preferred Mode" "1920x1200"
EndSection

Section "Monitor"
Identifier "HDMI-A-0"
Option "LeftOf" "DisplayPort-0"
Option "Preferred Mode" "1920x1080"
EndSection

Section "Monitor"
Identifier "DisplayPort-1"
Option "RightOf" "DisplayPort-0"
Option "Preferred Mode" "1920x1200"
EndSection

@therealromster
Copy link
Author

fredrik@nibbler:/etc/X11/xorg.conf.d$ cat *
Section "Device"
Identifier "amdgpu"
Driver "amdgpu"
Option "TearFree" "true"
EndSection

Section "Monitor"
Identifier "DisplayPort-0"
Option "Primary" "true"
Option "Preferred Mode" "1920x1200"
EndSection

Section "Monitor"
Identifier "HDMI-A-0"
Option "LeftOf" "DisplayPort-0"
Option "Preferred Mode" "1920x1080"
EndSection

Section "Monitor"
Identifier "DisplayPort-1"
Option "RightOf" "DisplayPort-0"
Option "Preferred Mode" "1920x1200"
EndSection

Section "InputClass"
Identifier "keyboard"
Driver "libinput"
Option "xkblayout" "se"
#Sweden sucks
Option "XKbOptions" "kpdl:dot"
#Unicomp braindamage
Option "XKbOptions" "lv3:rwin_switch"
MatchDevicePath "/dev/input/event*"
EndSection
Section "Files"
FontPath "/usr/share/fonts/X11/terminus/"
EndSection

Section "InputClass"
Identifier "test"
MatchIsPointer "on"
#Option "ConstantDeceleration" "1.5"
Option "AccelerationNumerator" "4"
Option "AccelerationDenominator" "3"
Option "AccelerationThreshold" "0"
EndSection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment