nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Linux and 3 monitors (http://www.nvnews.net/vbulletin/showthread.php?t=160038)

726b 02-25-11 06:00 PM

Linux and 3 monitors

I have a question regarding the Nvidia Linux drivers and my GTX 460 on which I want to connect two monitors (DFP-0 and DFP-1) and a projector (DFP-2). DFP-0 is my primary monitor and is supposed to be enabled at all time, however, I want to be able to toggle between DFP-1 and DFP-2 as secondary screen. I can achieve this by launching nvidia-settings and adjusting the settings manually each time, but that is quite cumbersome.

Instead I created an xorg.conf containing:


Section "Device"
    Identifier    "Device0"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "GeForce GTX 460"
    Option        "TwinView"
    Option        "metamodes"        "DFP-0: 1920x1200 +1600+0, DFP-1: 1600x1200 +0+0, DFP-2: NULL; DFP-0: 1920x1200 +0+0, DFP-1: NULL, DFP-2: NULL; DFP-2: 1280x720"

I hoped to use the xrandr command to toggle between meta modes 1 and 3 to achieve my goal. However, this does not work as expected. When X is started it does not recognize the third meta mode. Once I launch nvidia-settings I notice that the "Configuration" of the projector (DFP-2) is in fact "disabled", after having changed this to "twinview" X recognizes the third meta mode and everything works as I want. However, even if I press "Save to X Configuration File", the next time I start X the third meta mode is disappeared?

I already tried setting "ConnectedMonitors", but that did not seem to have any effect.

Am I doing something wrong? Is this a bug?

Already thanks for your answers or suggestions.

Note 1: I am aware that twinview does not support three monitors. However, I only want to have two monitors enabled at the same time.
Note 2: I am using Ubuntu 10.10 and version 270.18 of the Nvidia drivers.

hayaka 02-25-11 10:16 PM

Re: Linux and 3 monitors
If you want to be able to switch displays without using nvidia-settings, you can use disper (http://willem.engen.nl/projects/disper/).

I use it to switch between a second display vs a tv.

ngoonee 02-25-11 10:30 PM

Re: Linux and 3 monitors

Originally Posted by hayaka (Post 2397202)
If you want to be able to switch displays without using nvidia-settings, you can use disper (http://willem.engen.nl/projects/disper/).

I use it to switch between a second display vs a tv.

No he can't, disper was specifically written for up to 2 screens.

726b 02-27-11 04:39 PM

Re: Linux and 3 monitors
Thanks for the replies.

disper indeed does not have (proper) support for more than 2 monitors. But with a bit of hacking I managed to achieve what I need:

disper -d DFP-0 -s
echo -e "backend: nvidia\nassociated displays: DFP-0, DFP-1\nmetamode: DFP-0: 1920x1200 @1920x1200 +1600+0, DFP-1: 1600x1200 @1600x1200 +0+0\nscaling: stretched, stretched" | disper -i

disper -d DFP-2 -s

Apart from using the -i option I was unable to enable both my 2 monitors again. However, if I omit the disper -d DFP-0 -s, both monitors are enabled but only a box of 1280x720 can actually be used?

Anyway, these scripts are probably far from elegant, but for my situation they get the job done!

hayaka 02-27-11 05:16 PM

Re: Linux and 3 monitors
My setup was somewhat simpler...I just made a bunch of aliases with the three configurations I use the most.


alias dualmonitor='disper -e -d DFP-0,DFP-2'
alias singlemonitor='disper -s'
alias withtv='disper -e -d DFP-0,DFP-1'

All times are GMT -5. The time now is 07:40 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.