Skip to content
Snippets Groups Projects
Commit 77a47e83 authored by Chris Hines's avatar Chris Hines
Browse files

tempalte xorg.conf when running on a node with 1GPU (this template works for...

tempalte xorg.conf when running on a node with 1GPU (this template works for M3 K1 nodes, will need to do something smarter for other clusters with GPUS)


Former-commit-id: 285020e9
parent 6280fc99
No related branches found
No related tags found
No related merge requests found
...@@ -141,3 +141,9 @@ ...@@ -141,3 +141,9 @@
become_user: root become_user: root
args: args:
creates: /etc/X11/xorg.conf creates: /etc/X11/xorg.conf
- name: Template xorg.conf for nodes with one GPU
template: src=xorg.conf.j2 dest=/etc/X11/xorg.conf
become: true
become_user: root
when: template_xorgconf is defined and template_xorgconf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 340.58 (buildmeister@swio-display-x86-rhel47-09) Fri Oct 31 17:40:05 PDT 2014 # nvidia-xconfig: version 352.93 (buildmeister@swio-display-x86-rhel47-07) Tue Apr 5 18:55:28 PDT 2016
Section "DRI"
Mode 0660
Group "vglusers"
EndSection
Section "ServerLayout" Section "ServerLayout"
Identifier "Layout0" Identifier "Layout0"
...@@ -27,11 +23,9 @@ Section "InputDevice" ...@@ -27,11 +23,9 @@ Section "InputDevice"
EndSection EndSection
Section "InputDevice" Section "InputDevice"
# generated from data in "/etc/sysconfig/keyboard" # generated from default
Identifier "Keyboard0" Identifier "Keyboard0"
Driver "kbd" Driver "kbd"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
EndSection EndSection
Section "Monitor" Section "Monitor"
...@@ -47,7 +41,8 @@ Section "Device" ...@@ -47,7 +41,8 @@ Section "Device"
Identifier "Device0" Identifier "Device0"
Driver "nvidia" Driver "nvidia"
VendorName "NVIDIA Corporation" VendorName "NVIDIA Corporation"
BusID "PCI:00:06:0" BoardName "GRID K1"
BusID "PCI:0:6:0"
EndSection EndSection
Section "Screen" Section "Screen"
...@@ -55,6 +50,7 @@ Section "Screen" ...@@ -55,6 +50,7 @@ Section "Screen"
Device "Device0" Device "Device0"
Monitor "Monitor0" Monitor "Monitor0"
DefaultDepth 24 DefaultDepth 24
Option "UseDisplayDevice" "none"
SubSection "Display" SubSection "Display"
Depth 24 Depth 24
EndSubSection EndSubSection
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment