PDA

View Full Version : [SOLVED] 12.04 upgrade and skewed rotation of displays...



ghat
August 19th, 2012, 12:11 AM
hi

So I have this configuration with a Nvidia graphics card and my left monitor is a 16:9 landscape mode (for work), and the right monitor is a 4:3 portrait mode (for reading docs)..
I have been using this setup with lucid for years by disabling twinview, and enabling Xinerma with 2 screens.

I upgraded to 12.04, and still had it working (with latest updates) BUT, YES BUT... the moment I start a "xterm" or "Eterm" the gdm/Xorg was crashing and logging me out, after a day of fiddling I figured that it was the Xinerma/2 Screens thing which was causing the problem...once I switched to twinview there is no problem...

Anyways, latest Nvidia drivers have support for one monitor rotation now, under the default twinview and it took only a few minutes to figure out the options...
Here is my final WORKING!! xorg.conf




# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 304.37 (buildmeister@swio-display-x86-rhel47-07.nvidia.com) Wed Aug 8 21:03:08 PDT 2012

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

Section "Files"
FontPath "unix/:7100"
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"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "DELL 2407WFP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection

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

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+400, DFP-1: nvidia-auto-select +1920+0 { Rotation=left }"
SubSection "Display"
Depth 24
EndSubSection
EndSection


Hopefully this is useful for someone...

Regards
Ghat

ghat
August 20th, 2012, 12:12 PM
OK,

there is a problem with the configuration above, I dont know what it is, once I find out I will update this post..

REFER THIS POST FOR A WORKAROUND

Ghat

ayourk
September 15th, 2012, 01:00 AM
.......code removed.......

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "metamodes" "DFP-0: nvidia-auto-select +0+400, DFP-1: nvidia-auto-select +1920+0 { Rotation=left }"
SubSection "Display"
Depth 24
EndSubSection
EndSection


Hopefully this is useful for someone...

Regards
Ghat

The above is quite useful. It showed me that adding "{ Rotation=left }" to my "metamodes" fixes the rotation of my 2nd monitor.

Before this, I simply used


Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Dell"
Option "RandRotate" "on"
# Option "Rotate" "CCW"
Option "Rotate" "left"
Option "DPMS" "off"
EndSection
to try and rotate the monitor, but this still didn't work. Looks like the only way to do this now is in the "Screen" section instead of the "Monitor" section as with the old way. The old way is listed with Rotate CCW and doesn't work anymore. According to the xorg.conf man page, "Rotate" "left" is the new way. That still didn't work with the "Monitor" section and the latest nVidia drivers. It is good to know that those options can be specified directly to the nVidia drivers via the "Screen" sections.