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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-27-08, 10:30 AM   #1
wvengen
Registered User
 
Join Date: Nov 2008
Posts: 30
Default NV-CONTROL dynamic twinview and metamodes [solved]

Hi,

I'm working on a Python tool for dynamically adding and removing displays using the NV-CONTROL extension. The nvidia-settings sources got me going quite well, but now I'm stuck at a problem with metamodelines. Consider the following:
  1. start X without twinview, only DFP connected
  2. with X running, attach CRT as well
  3. query NV_CTRL_PROBE_DISPLAYS
  4. set NV_CTRL_ASSOCIATED_DISPLAY_DEVICES to DFP+CRT
  5. NV_CTRL_STRING_OPERATION_ADD_METAMODE new metamode for DFP+CRT
  6. activate mode using XRandR
  7. detach CRT
  8. query NV_CTRL_PROBE_DISPLAYS
  9. set NV_CTRL_ASSOCIATED_DISPLAY_DEVICES to DFP
  10. activate DFP-only mode using XRandR
After this it is impossible to delete the metamode created in step 5, and nvidia-settings shows the error "Failed to find display device 1 on screen 0 (on GPU-0) while parsing metamode: 'CRT-0: 1024x768 @1024x768 +0+0'" and can't configure the X screen anymore. Of course I can't delete the metamode earlier because it is in use then.

Listing the metamodes using nv-control-dpy shows the metamode, but the device name CRT-0 has either disappeared or shows weird symbols:
Code:
id=61, switchable=no, source=nv-control :: : 1024x768 @1024x768 +0+0, DFP-0: 1024x768 @1024x768 +0+0
Not being able to use nvidia-settings until X server restart is pretty bad for end-users, and I do suspect this problem to cause X server crashes as well.

I hope someone can shed some light one this. Thanks for your time, if you made it to here

If you'd like to see some code, look at nvtest.py and related nvidia and xrandr modules in the same source tree.

p.s. it is impossible to delete a metamode directly by id, is it?

Last edited by wvengen; 11-28-08 at 03:29 AM. Reason: issue solved :)
wvengen is offline   Reply With Quote
Old 11-27-08, 10:37 AM   #2
wvengen
Registered User
 
Join Date: Nov 2008
Posts: 30
Default Re: NV-CONTROL dynamic twinview and metamodes

of course I should have mentioned some hardware and software details: nVidia Corporation G72M [GeForce Go 7400] rev 161 / VideoBIOS: 0.5.72.22.26.b3 / NVIDIA UNIX x86_64 Kernel Module 177.80 / X.Org 1.5.2 / gcc 4.3.2 / Ubuntu Intrepid. (more info on request)
wvengen is offline   Reply With Quote
Old 11-28-08, 03:28 AM   #3
wvengen
Registered User
 
Join Date: Nov 2008
Posts: 30
Default Re: NV-CONTROL dynamic twinview and metamodes

After some more experimenting and another night's sleep I think I've made sense of it. As long as displays are associated one can delete their metamodes. So to switch displays devices, one must keep the old displays associated. For reference, this is my current procedure which appears to work well:
  1. add newly connected displays to the associated displays without losing the old ones
  2. create new metamode
  3. switch to that metamode
  4. delete metamodes that reference displays which are not active
  5. dissociate displays not used anymore
So in the original list, step 9 "set NV_CTRL_ASSOCIATED_DISPLAY_DEVICES to DFP" is moved to the very end and the old metamodes are deleted just before that.
wvengen is offline   Reply With Quote
Old 12-03-08, 05:00 AM   #4
kebe
Registered User
 
Join Date: Dec 2008
Posts: 1
Default Re: NV-CONTROL dynamic twinview and metamodes

I also wanted to write such tool... but there it is. It seems it's also very mature.
If you want I can perform some tests using my two DFP.
kebe is offline   Reply With Quote
Old 12-03-08, 05:16 AM   #5
wvengen
Registered User
 
Join Date: Nov 2008
Posts: 30
Default Re: NV-CONTROL dynamic twinview and metamodes

I'm still working on extend functionality. When that is finished and tested properly, I will do a release and post to nvnews as well. In the meantime, stable packages for Ubuntu are available at my PPA. Testing of this is welcome, thanks! (Note that the bzr trunk is quite unstable at times.) When extend functionality is ready, testing on different hardware becomes a must.
p.s. TV-out doesn't seem to work yet
wvengen 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
order of devices in TwinView mjh NVIDIA Linux 2 10-16-02 03:45 AM
TwinView, fullscreen on TV brosen NVIDIA Linux 2 10-08-02 10:29 AM
TwinView in RedHat 8 nerfherder64 NVIDIA Linux 5 10-07-02 07:19 PM
TwinView problems k-rulez NVIDIA Linux 1 09-07-02 09:13 AM
Twinview with TV-out karlaugust NVIDIA Linux 10 08-28-02 04:20 PM

All times are GMT -5. The time now is 05:00 PM.


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