PDA

View Full Version : [ubuntu] 10.04 upgrade breaks xinerama on 4 monitor setup



ellenhardin
May 31st, 2010, 12:09 AM
I recently upgraded to Ubuntu 10.1. In doing so, my multi-monitor setup no longer works with Xinerama. When I attempt to mouse from screen to screen, the mouse pointer flickers and the screens hang.
Without Xinerama, the setup works, but I can't drag windows from screen to screen.

My monitors are arranged with a 19" on top, then a 19" rotated 90 degrees, a 30" and then another 19" rotated 90 degrees as the bottom row.

I run two NVidia 9500GT's each driving two monitors.

xorg.conf is as follows:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@yellow) Fri Apr 9 11:51:21 UTC 2010

Section "ServerLayout"

Option "Xinerama" "0"
Identifier "Layout0"
Screen 0 "Screen0" 1050 1050
Screen 1 "Screen1" 1440 0
Screen 2 "Screen2" 0 1050
Screen 3 "Screen3" 3610 1050
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
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 "HP LP3065"
HorizSync 49.3 - 98.5
VertRefresh 60.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "DELL 2005FPW"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
EndSection

Section "Monitor"
Identifier "Monitor2"
VendorName "Unknown"
ModelName "DELL E207WFP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
EndSection

Section "Monitor"
Identifier "Monitor3"
VendorName "Unknown"
ModelName "DELL E207WFP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
EndSection

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

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

Section "Device"
Identifier "Device2"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9500 GT"
BusID "PCI:2:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Device3"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9500 GT"
BusID "PCI:2: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-0: 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 "metamodes" "DFP-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen2"
Device "Device2"
Monitor "Monitor2"
DefaultDepth 24
Option "Rotate" "CCW"
Option "TwinView" "0"
Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
Identifier "Screen3"
Device "Device3"
Monitor "Monitor3"
DefaultDepth 24
Option "Rotate" "CW"
Option "TwinView" "0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

I created this xorg.conf with Nvidia xserver settings application with the addition of Rotate to the side monitors added manually. This worked fine on 9.1, but no longer works with 10.04

Any ideas?

thanks,
Ellen

westernpenguin
June 1st, 2010, 12:52 AM
This is a regression in Xorg. The trick is that you need to edit your xorg.conf so that the farthest left screen is screen 0, the next right is screen 1, etc. If I higher number screen is to the left, the mouse will glitch when you try to move to that screen.

Bug Report:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/563100

I'm not sure what the effects are of having stacked monitors when moving the mouse up and down or what the proper numbering is in that scenario. On the bug report there appears to be a patch for another potential fix. The easiest/best solution may be (unfortunately) to use 9.10.