2017-07-08 13:37:35 +02:00
|
|
|
{{ ansible_managed_file | comment }}
|
|
|
|
|
|
|
|
Section "ServerLayout"
|
|
|
|
Identifier "Layout0"
|
2017-07-16 09:58:23 +02:00
|
|
|
Screen 0 "Screen0" 0 0
|
2017-07-08 13:37:35 +02:00
|
|
|
{% if xorg.secondary is defined %}
|
|
|
|
Screen 1 "Screen1" RightOf "Screen0"
|
|
|
|
{% endif %}
|
|
|
|
#InputDevice "Keyboard0" "CoreKeyboard"
|
|
|
|
#InputDevice "Mouse0" "CorePointer"
|
2017-07-16 09:58:23 +02:00
|
|
|
Option "Xinerama" "0"
|
2017-07-08 13:37:35 +02:00
|
|
|
EndSection
|
|
|
|
|
|
|
|
Section "InputClass"
|
|
|
|
Identifier "exclude eventlircd devices"
|
|
|
|
MatchTag "eventlircd"
|
|
|
|
Option "Ignore" "True"
|
|
|
|
EndSection
|
|
|
|
|
|
|
|
Section "Monitor"
|
|
|
|
Identifier "Monitor0"
|
|
|
|
VendorName "{{ xorg.primary.vendor }}"
|
|
|
|
ModelName "{{ xorg.primary.model }}"
|
|
|
|
Option "DPMS"
|
|
|
|
Option "ExactModeTimingsDVI" "True"
|
|
|
|
EndSection
|
|
|
|
|
|
|
|
Section "Device"
|
|
|
|
Identifier "Device0"
|
|
|
|
Driver "nvidia"
|
|
|
|
VendorName "NVIDIA Corporation"
|
2017-07-16 09:58:23 +02:00
|
|
|
Option "NoLogo" "true"
|
2017-07-08 13:37:35 +02:00
|
|
|
{% if xorg.primary.bus_id is defined %}
|
|
|
|
BoardName "{{ xorg.primary.gpu_name }}"
|
|
|
|
BusID "{{ xorg.primary.bus_id }}"
|
|
|
|
{% else %}
|
|
|
|
BoardName "Unknown"
|
|
|
|
{% endif %}
|
|
|
|
Screen 0
|
|
|
|
EndSection
|
|
|
|
|
|
|
|
Section "Screen"
|
|
|
|
Identifier "Screen0"
|
|
|
|
Device "Device0"
|
|
|
|
Monitor "Monitor0"
|
|
|
|
DefaultDepth 24
|
|
|
|
Option "nvidiaXineramaInfoOrder" "{{ xorg.primary.connector }}"
|
2017-07-16 09:58:23 +02:00
|
|
|
Option "ConnectedMonitor" "{{ xorg.primary.connector }}{% if xorg.secondary is defined %}, {{ xorg.secondary.connector }}{% endif %}"
|
2017-07-08 13:37:35 +02:00
|
|
|
Option "UseDisplayDevice" "{{ xorg.primary.connector }}"
|
|
|
|
Option "CustomEDID" "{{ xorg.primary.connector }}:/etc/X11/edid.{{ xorg.primary.connector }}.bin"
|
2018-01-03 13:19:59 +01:00
|
|
|
Option "metamodes" "{{ xorg.primary.connector }}: {{ xorg.primary.mode }} +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
|
|
|
|
Option "AllowIndirectGLXProtocol" "off"
|
|
|
|
Option "TripleBuffer" "on"
|
2017-07-08 13:37:35 +02:00
|
|
|
Option "SLI" "Off"
|
|
|
|
Option "MultiGPU" "Off"
|
|
|
|
Option "BaseMosaic" "off"
|
|
|
|
SubSection "Display"
|
|
|
|
Depth 24
|
|
|
|
EndSubSection
|
|
|
|
EndSection
|
|
|
|
|
|
|
|
{% if xorg.secondary is defined %}
|
|
|
|
Section "Device"
|
|
|
|
Identifier "Device1"
|
|
|
|
Driver "nvidia"
|
|
|
|
VendorName "NVIDIA Corporation"
|
|
|
|
Option "NoLogo" "true"
|
|
|
|
{% if xorg.secondary.bus_id is defined %}
|
|
|
|
BoardName "{{ xorg.primary.gpu_name }}"
|
|
|
|
BusID "{{ xorg.primary.bus_id }}"
|
|
|
|
{% else %}
|
|
|
|
BoardName "Unknown"
|
|
|
|
{% endif %}
|
|
|
|
Screen 1
|
|
|
|
EndSection
|
|
|
|
|
|
|
|
Section "Monitor"
|
|
|
|
Identifier "Monitor1"
|
|
|
|
VendorName "{{ xorg.secondary.vendor }}"
|
|
|
|
ModelName "{{ xorg.secondary.model }}"
|
|
|
|
EndSection
|
|
|
|
|
|
|
|
Section "Screen"
|
|
|
|
Identifier "Screen1"
|
|
|
|
Device "Device1"
|
|
|
|
Monitor "Monitor1"
|
|
|
|
DefaultDepth 24
|
|
|
|
Option "nvidiaXineramaInfoOrder" "{{ xorg.secondary.connector }}"
|
|
|
|
Option "ConnectedMonitor" "{{ xorg.secondary.connector }}"
|
|
|
|
Option "UseDisplayDevice" "{{ xorg.secondary.connector }}"
|
|
|
|
Option "CustomEDID" "{{ xorg.secondary.connector }}:/etc/X11/edid.{{ xorg.secondary.connector }}.bin"
|
2018-01-03 13:19:59 +01:00
|
|
|
Option "metamodes" "{{ xorg.secondary.connector }}: {{ xorg.secondary.mode }} +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
|
|
|
|
Option "AllowIndirectGLXProtocol" "off"
|
|
|
|
Option "TripleBuffer" "on"
|
2017-07-08 13:37:35 +02:00
|
|
|
Option "SLI" "Off"
|
|
|
|
Option "MultiGPU" "Off"
|
|
|
|
Option "BaseMosaic" "off"
|
|
|
|
SubSection "Display"
|
|
|
|
Depth 24
|
|
|
|
EndSubSection
|
|
|
|
EndSection
|
|
|
|
{% endif %}
|