Skip to content

Instantly share code, notes, and snippets.

@gbishop
Created August 26, 2012 21:16
Show Gist options
  • Save gbishop/3483633 to your computer and use it in GitHub Desktop.
Save gbishop/3483633 to your computer and use it in GitHub Desktop.
Drive two HD displays in portrait mode using nVida graphics on Ubuntu Precise
# I couldn't get the GUI tools to do the right thing so I edited the generated file by hand.
# the key magic is the Option Rotate right along with the placement
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 295.40 ([email protected]) Thu Apr 5 22:33:07 PDT 2012
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "SHARP HDMI"
HorizSync 15.0 - 75.0
VertRefresh 23.0 - 76.0
Option "DPMS"
Option "Rotate" "right"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9300 GE"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "DFP-0: 1920x1080 +0+0, DFP-1: 1920x1080 +0+1080"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment