Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-25-11, 06:00 PM   #1
726b
Registered User
 
Join Date: Feb 2011
Posts: 2
Default Linux and 3 monitors

Hello,

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:

Code:
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"
EndSection
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.
726b is offline   Reply With Quote
Old 02-25-11, 10:16 PM   #2
hayaka
amd64 arch user
 
Join Date: Jun 2004
Posts: 45
Default 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.
__________________
Arch64 w/ Vanilla 2.6.37.1
Gigabyte GA-MA790GP-UDH4 / AMD Phenom X6 1090T / 8GB (4xDDR2)
GeForce GTX460 1GB PCIe Dual-DVI+miniHDMI
hayaka is offline   Reply With Quote
Old 02-25-11, 10:30 PM   #3
ngoonee
Registered User
 
Join Date: Jul 2010
Posts: 12
Default Re: Linux and 3 monitors

Quote:
Originally Posted by hayaka View Post
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.
ngoonee is offline   Reply With Quote
Old 02-27-11, 04:39 PM   #4
726b
Registered User
 
Join Date: Feb 2011
Posts: 2
Default 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:
Code:
disable-projector:
#!/bin/bash
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 

enable-projector:
#!/bin/bash
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!
726b is offline   Reply With Quote
Old 02-27-11, 05:16 PM   #5
hayaka
amd64 arch user
 
Join Date: Jun 2004
Posts: 45
Default 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.

Code:
alias dualmonitor='disper -e -d DFP-0,DFP-2'
alias singlemonitor='disper -s'
alias withtv='disper -e -d DFP-0,DFP-1'
__________________
Arch64 w/ Vanilla 2.6.37.1
Gigabyte GA-MA790GP-UDH4 / AMD Phenom X6 1090T / 8GB (4xDDR2)
GeForce GTX460 1GB PCIe Dual-DVI+miniHDMI
hayaka is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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


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