Labels

Monday, November 04, 2013

Stereo xorg.conf - Centos playback machine to a Barco DP90 using SDI

=== Playback Hardware ====


The playback machine in the theater is called rodoric. It has 2 SSD 500GB drives, hardware raided.

  /dev/sda1             937G  614G  277G  69% /ssd

The graphics card is a Nvidia 4000. It has 3 connections, only two are in use at one time.

  * In Mono mode it will use a DVI to the KVM extender, and a DVI to a DVI-Ramp which in turn converts it's signal to SDI into the Barco (Input A)
  * In Stereo mode it will output Left and Right eye signals using both display ports through DVI into a single DVI-Ramp which in turn converts it's signals to SDI into the Barco (SDI input A and B)

Users can switch between Stereo and Mono using the xorgswitch file below.

=== Xorg Switch ===

Type xorgswitch in a terminal to switch between Stereo and Mono Display modes
xorgswitch

#!/bin/bash

#switch the xorg files for stereo and regular playback
#v1.0 - Dylan Penhale 04-11-2013


X11PATH=/etc/X11
XORG3D=xorg.conf.rv.3d.WORKING.04.11.2013
XORG2D=xorg.conf.safe.31.10.2013

echo "1. Stereo Mode - Barco only"
echo "2. Mono - Barco and LCD display"
echo -n "Enter: [1 or 2]:"
read choice

if [ $choice -eq 1 ]; then
        echo "Switching xorg to Stereo mode"
        rm -rf $X11PATH/xorg.conf
        cp $X11PATH/$XORG3D $X11PATH/xorg.conf
        echo "Now restart X Server {Cntl+Alt+Backspace)"
        exit 0
else
  if [ $choice -eq 2 ]; then
        echo "Switching xorg to Mono mode"
        rm -rf $X11PATH/xorg.conf
        cp $X11PATH/$XORG2D $X11PATH/xorg.conf
        echo "Now restart X Server {Cntl+Alt+Backspace)"
        exit 0
  fi
fi

done


=== Stereo ===

/etc/X11/xorg.conf.rv.3d.WORKING.04.11.2013

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

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "pc105"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "OEM DVI-Ramp2"
    HorizSync       1.0 - 250.0
    VertRefresh     10.0 - 250.0
    ModeLine       "2048x1080_24.00" 66.02 2048 2080 2280 2512 1080 1081 1084 1095 -hsync +vsync
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro 4000"
EndSection

Section "Screen"

# Removed Option "Stereo" "4"
# Removed Option "metamodes" "DFP-1: 2048x1080_24 +0+0, DFP-2: 2048x1080_24 +0+0; DFP-1: nvidia-auto-select +0+0, DFP-2: nvidia-auto-select +0+0"
# Removed Option "metamodes" "DFP-0: nvidia-auto-select +64+0, DFP-2: 2048x1080_24.00 +0+60; DFP-2: nvidia-auto-select +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option   "CIOverlay" "on"
    Option   "Overlay" "on"
    Option         "TwinViewOrientation" "Clone"
    Option         "ExactModeTimingsDVI" "TRUE"
    Option         "FlatPanelProperties" "Scaling = Native"
    Option         "TwinView" "1"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "Stereo" "4"
    Option         "metamodes" "DFP-1: 2048x1080_24.00 +0+0, DFP-2: 2048x1080_24.00 +0+0; DFP-2: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Section "Extensions"
   Option "Composite" "Disable"
Endsection


=== Mono ===

/etc/X11/xorg.conf.safe.31.10.2013

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

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "pc105"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Eizo S2411W"
    HorizSync       31.0 - 76.0
    VertRefresh     59.0 - 61.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro 4000"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: 1920x1200 +0+0, DFP-2: 2048x1080_24 +1920+60"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection