PDA

View Full Version : [ubuntu] lightdm with vertical offset



urgency
December 30th, 2011, 10:22 AM
I'm not sure if this is the right place to post this but I'm pretty sure it's an issue with lightdm so I'm putting it here.

I installed 11.10 today and after a couple of hours of fiddling with nvidia drivers and eventually manually editing xorg.conf I have my multi-monitor setup working. The issue was that I have two 1920x1080 monitors where one is in landscape and the other portrait. The only issue that remains is getting the offset right between the two monitors so there isn't a "jump" when you move the cursor in between. I would have liked to do it by adding a vertical offset to the secondary monitor, i.e. have my xorg.conf entry look like
Screen 1 "Screen1" 1920 -380
However I quickly discovered that having a negative value as an offset causes the display manager to unceremoniously fail to start. The solution I came up with was to add the vertical offset as positive on the other screen, i.e.
Screen 0 "Screen0" 0 380
Screen 1 "Screen1" 1920 0
This works except it messes with the taskbar/menubar in a strange way. The menu bar (the thing with "file, view" etc at the top of the screen) is no longer visible on Screen0 and the task bar displays but kind of cut off below where the offset is. Here (http://i.imgur.com/QjY1z.jpg) is a screenshot of both monitors so you can see the task bar and the menu bar present on the second but not first monitor.

Any help would be greatly appreciated.

urgency
December 30th, 2011, 07:55 PM
I have the same issue if I switch to gdm so perhaps it's not a display manager issue? However I've found two sources (here (http://ubuntuforums.org/showthread.php?t=1878938) and here (http://zuttobenkyou.wordpress.com/2009/10/04/linux-nvidia-xinerama-guide-rotating-just-one-monitor-in-a-dual-head-setup/)) of people having the same problem who fixed it with an offset like this and didn't appear to have the same problem. I may try installing xubuntu-desktop and see if that works but it would be nice if I could avoid that.

EDIT: Here (http://ubuntuforums.org/showthread.php?t=976120) is another person who fixed the issue with a positive offset and didn't seem to have the same problem as I'm having.

Also here is my entire xorg.conf file:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 290.10 (buildd@charichuelo) Wed Nov 23 07:50:49 UTC 2011


Section "ServerLayout"

# Removed Option "Xinerama" "0"
Identifier "Layout0"
Screen 0 "Screen0" 0 380
Screen 1 "Screen1" 1920 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"
EndSection

Section "Monitor"

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

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 470"
BusID "PCI:2:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 470"
Option "RandRRotation" "On"
BusID "PCI:2:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "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 "Extensions"
Option "Composite" "Disable"
EndSection