Rotate nVidia monitors?

Preston Hagar prestonh at gmail.com
Wed Oct 15 20:32:10 UTC 2008


On Tue, Oct 14, 2008 at 12:56 PM, Dave Woyciesjes
<woyciesjes at sbcglobal.net> wrote:
>        In my Dell Inspiron 5150, I've got a nVidia NV34 32MB GeForce something
> or other. With the nVidia drivers in XP,  I have the desktop spanning
> the laptop display and an external LCD. (Dell 17xxFPv). There I can
> rotate the LCD to protrait, and see the driver right.
>        Anybody figure out how to do this in Ubuntu 8.04 yet?
>
> Found this:
> http://www.arsgeek.com/2007/07/11/ubuntu-and-pivot-screens-using-nvidias-default-and-proprietary-drivers/
>
> Anybody have anything better?
>
> --
> --- Dave Woyciesjes
> --- ICQ# 905818
> --- AIM - woyciesjes
>

I was wanting to do basically this same thing.  I got it working
today.  I am using Ubuntu 8.04 with the proprietary nvidia drivers.  I
am on a desktop with a dual-head nvidia card and two 19" 1280x1024 LCD
monitors connected.  I wanted one in "portrait" mode and one in
"landscape".  I mainly used this tutorial:

http://www.chrisamiller.com/blog/2008/05/11/rotating-one-monitor-with-ubuntu/

What I would recommend, is install the proprietary drivers, install
nvidia-settings and then use that to get the dual monitors working.
Once you have that working, edit your /etc/X11/xorg.conf file and
follow the tutorial above.  The only problem I had was that after I
followed the steps on the link, I couldn't get my mouse to go from the
landscape monitor to the portrait one.  I checked my xorg.conf and
realized that it was still saying that my portrait monitor was 1280
wide.  Since it was rotated 90 deg. it was now 1280 tall and 1024
wide.  I then changed the 1280 to 1024 for Screen0 ni the ServerLayout
section of my xorg.conf.

Here is my complete config in case it might help:

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 1024 0
    Screen      1  "Screen1" 0 0
    InputDevice    "Generic Keyboard" "CoreKeyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Module"
    Load           "glx"
EndSection

Section "ServerFlags"

# Removed Option "Xinerama" "0"
    Option         "Xinerama" "1"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
EndSection

Section "Monitor"
    Identifier     "Configured Monitor"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL E196FP"
    HorizSync       31.0 - 80.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "DELL 1907FP"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 76.0
    Option         "RandRRotation" "on"
    Option         "Rotate" "CCW"
EndSection

Section "Device"
    Identifier     "Configured Video Device"
    Driver         "nvidia"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Unknown"
    BusID          "PCI:5:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Unknown"
    BusID          "PCI:5:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Configured Video Device"
    Monitor        "Configured Monitor"
    DefaultDepth    24
    Option         "NoLogo" "True"
    SubSection     "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection

Section "Screen"

# Removed Option "TwinView" "1"
# Removed Option "metamodes" "CRT: nvidia-auto-select +1280+0, DFP:
nvidia-auto-select +0+0"
    Identifier     "Screen0"
    Device         "Videocard1"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "TwinView" "0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard0"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP: nvidia-auto-select +0+0"
EndSection




More information about the ubuntu-users mailing list