You are not logged in.

#1 2013-10-03 01:09:56

Durzo
Member
Registered: 2012-03-19
Posts: 17

Xorg.conf - Multi Monitor Issue

I have read that using nvidia-settings to configure X does not work very well. After trying it myself and being unable to get it to work proprly, I've tried my hand at writing my xorg.conf from scratch using the info on the wiki. I'm having issues and wonder if anyone could assist with telling me how i'm supposed to define the screen properly to SererLayout.

I have two LCD monitors:
Left is 1680x1050+0+150, "DFP-0"
Right is 1600x1200+0+0, "CRT-1"

I'm not sure if I should be using twin view or not but I do not need Xinerama. Can anyone please advise on how I should proceed?

Section "ServerLayout"
    Identifier     "TwinLayout"
    Screen         0 "metaScreen" 0 0

EndSection

Section "Monitor"
    Identifier     "Monitor0"
    Option         "Enable" "true"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    Option         "Enable" "true"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 520"

EndSection

Section "Screen"
        Identifier      "LeftScreen"
        Device          "Device0"
        Monitor         "Monitor0"
        DefaultDepth    24
        Option          "MetaModes" "DFP-0: 1680x1050+0+150"
        SubSection      "Display"
                        Depth           24
			Modes          "1680x1050"
        EndSubSection
EndSection

Section "Screen"
        Identifier      "RightScreen"
        Device          "Device0"
        Monitor         "Monitor1"
        DefaultDepth    24
        Option          "MetaModes" "CRT-1: 1600x1200+1680+0"
        SubSection      "Display"
                        Depth           24
			Modes          "1600x1200"
        EndSubSection
EndSection

Offline

#2 2013-10-03 05:00:38

Durzo
Member
Registered: 2012-03-19
Posts: 17

Re: Xorg.conf - Multi Monitor Issue

I cannot seem to get this working with nvidia properly set within xorg.conf... funny thing is I can run the xrandr script upon login and it resets my screens perfectly, though it feels like i'm cheating this way.

xrandr --output VGA-0 --mode 1600x1200 --pos 1680x0 --rotate normal --output DVI-I-1 --mode 1680x1050 --pos 0x150 --rotate normal --output DVI-I-0 --off --output HDMI-0 --off

Offline

#3 2013-10-03 11:12:32

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: Xorg.conf - Multi Monitor Issue

I'm not sure why you think nvidia-settings doesn't work well. It's always worked well for me, even with dual monitors. Just be sure to run it as root so it can write out the xorg.conf file. It's been a long time since I have had to hand tweak the xorg.conf file and it isn't anything I miss.

Offline

#4 2013-10-04 01:27:20

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: Xorg.conf - Multi Monitor Issue

Durzo wrote:

I cannot seem to get this working with nvidia properly set within xorg.conf... funny thing is I can run the xrandr script upon login and it resets my screens perfectly, though it feels like i'm cheating this way.

xrandr --output VGA-0 --mode 1600x1200 --pos 1680x0 --rotate normal --output DVI-I-1 --mode 1680x1050 --pos 0x150 --rotate normal --output DVI-I-0 --off --output HDMI-0 --off

Sometimes your window manager can do this for you.  Or a utility such as arandr.  Nothing wrong with this method.  You could shorten it to

xrandr --output VGA-0 --auto --output DVI-I-1 --auto --right-of/--left-of <whichever>

.
Under the Monitor section you would try:
Name the monitors the way X calls them (here DFP-0 and CRT-1) or check the Xorg.0.log file to show what it does with them. 
Then under one of the monitor sections, you could add

 Option "RightOf"/"LeftOf" "<other monitor>"

I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB