PDA

View Full Version : [ubuntu] How to rotate monitors vertically in Ubuntu 12.04



bonuswhore
May 27th, 2012, 03:58 AM
Hello,

I currently have Ubuntu 12.04 running on 2x 24" monitors in landscape/horizontal mode, with 'Xinerama' enabled. I would like to rotate both monitors to be vertical. It is using an nvidia graphics card, and I'm using gnome-classic instead of Unity, if that matters

I'm trying to follow this guide:
http://www.libre-software.net/ubuntu-linux-external-monitor-nvidia-rotate

I've added the following line to both "Screen" sections in my /etc/X11/xorg.conf:
Option "RandRRotation" "True"

I also added the following line to both nvidia "Device" section :
Option "RandRRotation" "on"

then I rebooted, and when I tried to do rotate the screen with xrandr, I get an error:
$ xrandr -o left
RandR extension missing

anyone know what I'm missing here? I used to run Ubuntu 11.04, and I could easily rotate the screen by going to System-> Preferences-> Monitor and change the "rotation" drop-down menu, but I can't find that anywhere on my Ubuntu 12.04 installation.

bonuswhore
May 30th, 2012, 03:04 AM
Has anyone here been able to rotate their monitors vertically on Ubuntu 12.04?

bonuswhore
June 13th, 2012, 03:28 AM
fixed it by changing Option "DPMS" to:
Option "Rotate" "left"

bonuswhore
July 9th, 2012, 09:07 PM
So I have 3 monitors - the middle and right are connected to one video card, and the leftmost is connected to its own video card.

I can have my center monitor landscape, and my right monitor vertical/portrait, and my left monitor landscape and everything works fine. If I switch the left-most monitor to vertical (via xorg.conf) it displays correctly in portrait but I can't move my mouse over there or drag any windows to the screen and I can't figure out why. Switch it back to landscape and it works, switch it vertically and I can't use it. any ideas?


-edit-
Also, I tried setting all 3 monitors to 'vertical' and then it locked me to only the middle monitor (monitor "0") and I couldn't move my mouse or drag windows to either the left or right monitors.


# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 295.33 (buildd@allspice) Fri Mar 30 13:37:33 UTC 2012


Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 1920 0
Screen 1 "Screen1" 3840 0
Screen 2 "Screen2" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "1"
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"

# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "DELL P2211H"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "DPMS"
#Option "Rotate" "Left"
EndSection

Section "Monitor"

# HorizSync source: edid, VertRefresh source: edid
#Option "DPMS"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "DELL P2211H"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "Rotate" "left"
EndSection

Section "Monitor"
Identifier "Monitor2"
VendorName "Unknown"
ModelName "DELL U2211H"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "DPMS"
#Option "Rotate" "left"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9300 GE"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9300 GE"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Device"
Identifier "Device2"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8400 GS"
BusID "PCI:5:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "DFP: 1920x1080_60_0 +0+0; DFP: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-1"
Option "metamodes" "CRT: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "nvidia-auto-select +0+0"
Identifier "Screen2"
Device "Device2"
Monitor "Monitor2"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-1"
Option "metamodes" "1920x1080 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Disable"
EndSection

bonuswhore
July 11th, 2012, 02:54 AM
disabled and re-enabled Xinerama and this fixed it. Two video card, four monitors, two of them turned vertically.

here's the working xorg.conf if it can be of use to anyone:


# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 295.33 (buildd@allspice) Fri Mar 30 13:37:33 UTC 2012


Section "ServerLayout"

# Removed Option "Xinerama" "1"
# Removed Option "Xinerama" "0"
# Removed Option "Xinerama" "1"
# Removed Option "Xinerama" "0"
Identifier "Layout0"
Screen 0 "Screen0" 2360 0
Screen 1 "Screen1" 4280 0
Screen 2 "Screen2" 1280 0
Screen 3 "Screen3" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "1"
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"

# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "DELL P2211H"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "DPMS"
#Option "Rotate" "Left"
EndSection
Section "Monitor"

# HorizSync source: edid, VertRefresh source: edid
#Option "DPMS"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "DELL P2211H"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "Rotate" "left"
#Option "MetaModes" "DFP-1: nvidia-auto-select { Rotation=left }"
EndSection

Section "Monitor"
Identifier "Monitor2"
VendorName "Unknown"
ModelName "DELL U2211H"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Option "DPMS"
Option "Rotate" "left"
EndSection

Section "Monitor"
Identifier "Monitor3"
VendorName "Unknown"
ModelName "DELL E170S"
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 76.0
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9300 GE"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9300 GE"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Device"
Identifier "Device2"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8400 GS"
BusID "PCI:5:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Device3"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8400 GS"
BusID "PCI:5:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "DFP: 1920x1080_60_0 +0+0; DFP: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"

# Removed Option "MetaModes" "DFP-1: nvidia-auto-select { Rotation=left }"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-1"
Option "metamodes" "CRT: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "nvidia-auto-select +0+0"
# Removed Option "MetaModes" "DFP-1: nvidia-auto-select { Rotation=left }"
# Removed Option "metamodes" "nvidia-auto-select +0+0"
Identifier "Screen2"
Device "Device2"
Monitor "Monitor2"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-1"
Option "metamodes" "DFP: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen3"
Device "Device3"
Monitor "Monitor3"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-1"
Option "metamodes" "CRT: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Disable"
EndSection