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

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-21-12, 08:35 PM   #1
hlandgar
Registered User
 
Join Date: Jun 2012
Posts: 9
Default 302.17 nvidiaXineramaInfoOverride not working properly

System has 3 1920x1200 monitors. Two are through TripleHeadtogo so system sees 2 monitors, 3840x1200 and 1920x1200. TwinviewXineramaInfoOverride was working fine in 295.59 and before making the 2 monitors appear as 3 1920x1200 displays to the system. Graphics card is Quadro 5000

Using the following python program under 295.59 I got the following correct info:


#!/usr/bin/python
# Print some information about the X environment, the monitor setup, currently active window and cursor position
import gtk.gdk

screen = gtk.gdk.screen_get_default()
print "X default screen size: %d x %d" % (screen.get_width(), screen.get_height())
print "xid of root window: %d" % screen.get_root_window().xid

monitors = int(screen.get_n_monitors())
print "== %d monitors ==" % monitors
for m in range(0, monitors):
print " - geometry of monitor %d: %s" % (m, screen.get_monitor_geometry(m))

window = screen.get_active_window()
win_x, win_y, win_w, win_h, win_bit_depth = window.get_geometry()
print "active window on monitor: %d" % screen.get_monitor_at_point((win_x+(win_w/2)),(win_y+(win_h/2)))
print "window geometry (x,y,w,h): %d, %d, %d, %d" % (win_x,win_y,win_w,win_h)

display = gtk.gdk.display_get_default()
pointer = display.get_pointer()
print "cursor position (x, y): %d, %d" % (pointer[1], pointer[2])
print "cursor on monitor: %d" % screen.get_monitor_at_point(pointer[1],pointer[2])

Under 295.59

X default screen size: 5760 x 1200
xid of root window: 637
== 3 monitors ==
- geometry of monitor 0: gtk.gdk.Rectangle(0, 0, 1920, 1200)
- geometry of monitor 1: gtk.gdk.Rectangle(1920, 0, 1920, 1200)
- geometry of monitor 2: gtk.gdk.Rectangle(3840, 0, 1920, 1200)
active window on monitor: 0
window geometry (x,y,w,h): 10, 34, 1473, 1072
cursor position (x, y): 2079, 279
cursor on monitor: 1

Under 307.17

X default screen size: 5760 x 1200
xid of root window: 754
== 2 monitors ==
- geometry of monitor 0: gtk.gdk.Rectangle(0, 0, 3840, 1200)
- geometry of monitor 1: gtk.gdk.Rectangle(3840, 0, 1920, 1200)
active window on monitor: 0
window geometry (x,y,w,h): 10, 34, 1131, 677
cursor position (x, y): 3108, 661
cursor on monitor: 0

The effect is that VMware-workstation monitor cycling feature no longer works properly under 307.17

note that Xorg.0.log is loading nvidia Xinerama info but gtk is not seeing it.

This is my xorg.conf file. I tried attaching nvidia-bug-report.log.gz but it was rejected as too big

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 302.11 (paludisbuild@harrisl-desktop) Wed Jun 20 15:40:25 EDT 2012

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Option "Xinerama" "0"
EndSection

Section "Files"
EndSection


Section "Monitor"
# HorizSync source: xconfig, VertRefresh source: xconfig
Identifier "Monitor0"
VendorName "Unknown"
ModelName "DFP-0"
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 60.0
ModeLine "3840x1200" 308.000 3840 3904 3968 4160 1200 1203 1213 1235 +hsync +vsync
ModeLine "1920x1200" 154.000 1920 1968 2000 2080 1200 1203 1209 1235 +hsync +vsync
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro 5000"
Option "AddARGBGLXVisuals" "1"
Option "AllowGLXWithComposite" "1"

EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
Option "UseEDID" "False"
Option "ExactModeTimingsDVI" "True"

DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-1"
Option "metamodes" "DFP-0: 3840x1200 +0+0, DFP-1: 1920x1200 +3840+0"
Option "nvidiaXineramaInfoOverride" "1920x1200+0+0, 1920x1200+1920+0, 1920x1200+3840+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
hlandgar is offline   Reply With Quote
Old 06-22-12, 11:19 AM   #2
sandipt
NVIDIA Corporation
 
sandipt's Avatar
 
Join Date: Dec 2010
Posts: 260
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

getting error with script :

root@test-Precision-WorkStation-T7500:~# ./display_info.py
File "./display_info.py", line 12
print " - geometry of monitor %d: %s" % (m, screen.get_monitor_geometry(m))
^
IndentationError: expected an indented block
root@test-Precision-WorkStation-T7500:~#
sandipt is offline   Reply With Quote
Old 06-22-12, 12:33 PM   #3
hlandgar
Registered User
 
Join Date: Jun 2012
Posts: 9
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

cut and paste took out the idents and python needs them. I will attach the script. unzip it and make it executable with chmod +x screens.py.

You can then run it at ./screens.py
Attached Files
File Type: gz screens.py.gz (467 Bytes, 101 views)
hlandgar is offline   Reply With Quote
Old 06-28-12, 10:02 AM   #4
sandipt
NVIDIA Corporation
 
sandipt's Avatar
 
Join Date: Dec 2010
Posts: 260
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

>>> The effect is that VMware-workstation monitor cycling feature no longer works properly under 307.17.

As I never used this feature before can you please explain little bit about it OR provide document link ?
sandipt is offline   Reply With Quote
Old 07-03-12, 09:50 PM   #5
hlandgar
Registered User
 
Join Date: Jun 2012
Posts: 9
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

VMware-Workstation detects your multimonitor setup and lets virtual machines, In my case Windows XP to use any combination of monitors or all of them.

Using the display properties - settings in the Windows XP vm under 295.59 I see 3 - 1920x1200 monitors, all active.

Under 302.17 I see only 2 monitors, 3840x1200, and 1920x1200. The 3840x1200 is only on 1 monitor with panning and one monitor is unused.

Since VMware-Workstation is proprietary and closed source, I have no way of knowing where they are getting monitor configuration from but I suspect it is from gnome.

Make my python script show the nvidiaXineramaOverride info with gtk first and lets see if that fixes it.
hlandgar is offline   Reply With Quote
Old 07-05-12, 12:23 AM   #6
sandipt
NVIDIA Corporation
 
sandipt's Avatar
 
Join Date: Dec 2010
Posts: 260
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

Actually I am not able to find TripleHeadtogo device. Is there any other way i can reproduce this issue?
sandipt is offline   Reply With Quote
Old 07-05-12, 02:07 PM   #7
hlandgar
Registered User
 
Join Date: Jun 2012
Posts: 9
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

doing some more testing under 302.17

from: xdpyinfo -ext XINERAMA

XINERAMA version 1.1 opcode: 148
head #0: 1920x1200 @ 0,0
head #1: 1920x1200 @ 1920,0
head #2: 1920x1200 @ 3840,0

This show Xinerama is getting the right information from the driver.

However:

GDK::Screen

X default screen size: 5760 x 1200
xid of root window: 754
== 2 monitors ==
- geometry of monitor 0: gtk.gdk.Rectangle(0, 0, 3840, 1200)
- geometry of monitor 1: gtk.gdk.Rectangle(3840, 0, 1920, 1200)

You should be able to reproduce this on any two monitor setup by using nvidiaXineramaInfoOverride to divide the monitors into 3 or 4. If I am right xdpyinfo -ext XINERAMA will show 3 or 4 monitors but any program that uses gdk::screen api will give the physical 2 monitor setup. It should be any easy test to setup. Let me know.
hlandgar is offline   Reply With Quote
Old 07-05-12, 03:39 PM   #8
hlandgar
Registered User
 
Join Date: Jun 2012
Posts: 9
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

You can also see the xrandr does not have the same info Xinerama does. The xrandr information is consistent with what gdk::screen reports and vmware-workstation does

xrandr --verbose -q
Screen 0: minimum 8 x 8, current 5760 x 1200, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
Identifier: 0x2db
Timestamp: 7752176
Subpixel: unknown
Clones:
CRTCs: 1 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
DVI-I-1 connected 3840x1200+0+0 (0x2de) normal (normal left inverted right x axis y axis) 0mm x 0mm
Identifier: 0x2dc
Timestamp: 7752176
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 1
CRTCs: 1 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
1024x768 (0x2dd) 65.0MHz -HSync -VSync +preferred
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz
v: height 768 start 771 end 777 total 806 clock 60.0Hz
3840x1200 (0x2de) 308.0MHz +HSync +VSync *current
h: width 3840 start 3904 end 3968 total 4160 skew 0 clock 74.0KHz
v: height 1200 start 1203 end 1213 total 1235 clock 60.0Hz
1920x1200 (0x2df) 154.0MHz +HSync +VSync
h: width 1920 start 1968 end 2000 total 2080 skew 0 clock 74.0KHz
v: height 1200 start 1203 end 1209 total 1235 clock 60.0Hz
1600x1200 (0x2e0) 162.0MHz +HSync +VSync
h: width 1600 start 1664 end 1856 total 2160 skew 0 clock 75.0KHz
v: height 1200 start 1201 end 1204 total 1250 clock 60.0Hz
1400x1050 (0x2e1) 122.0MHz +HSync +VSync
h: width 1400 start 1488 end 1640 total 1880 skew 0 clock 64.9KHz
v: height 1050 start 1052 end 1064 total 1082 clock 60.0Hz
1280x1024 (0x2e2) 108.0MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 64.0KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.0Hz
1280x960 (0x2e3) 108.0MHz +HSync +VSync
h: width 1280 start 1376 end 1488 total 1800 skew 0 clock 60.0KHz
v: height 960 start 961 end 964 total 1000 clock 60.0Hz
800x600 (0x2e4) 40.0MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.9KHz
v: height 600 start 601 end 605 total 628 clock 60.3Hz
800x600 (0x2e5) 36.0MHz +HSync +VSync
h: width 800 start 824 end 896 total 1024 skew 0 clock 35.2KHz
v: height 600 start 601 end 603 total 625 clock 56.2Hz
700x525 (0x2e6) 61.0MHz +HSync +VSync DoubleScan
h: width 700 start 744 end 820 total 940 skew 0 clock 64.9KHz
v: height 525 start 526 end 532 total 541 clock 120.0Hz
640x480 (0x2e7) 25.2MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.5KHz
v: height 480 start 490 end 492 total 525 clock 59.9Hz
512x384 (0x2e8) 32.5MHz -HSync -VSync DoubleScan
h: width 512 start 524 end 592 total 672 skew 0 clock 48.4KHz
v: height 384 start 385 end 388 total 403 clock 120.0Hz
320x240 (0x2e9) 12.6MHz -HSync -VSync DoubleScan
h: width 320 start 328 end 376 total 400 skew 0 clock 31.5KHz
v: height 240 start 245 end 246 total 262 clock 120.1Hz
DP-0 connected 1920x1200+3840+0 (0x2df) normal (normal left inverted right x axis y axis) 0mm x 0mm
Identifier: 0x2ea
Timestamp: 7752176
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 1 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
1024x768 (0x2dd) 65.0MHz -HSync -VSync +preferred
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz
v: height 768 start 771 end 777 total 806 clock 60.0Hz
1920x1200 (0x2df) 154.0MHz +HSync +VSync *current
h: width 1920 start 1968 end 2000 total 2080 skew 0 clock 74.0KHz
v: height 1200 start 1203 end 1209 total 1235 clock 60.0Hz
1600x1200 (0x2e0) 162.0MHz +HSync +VSync
h: width 1600 start 1664 end 1856 total 2160 skew 0 clock 75.0KHz
v: height 1200 start 1201 end 1204 total 1250 clock 60.0Hz
1400x1050 (0x2e1) 122.0MHz +HSync +VSync
h: width 1400 start 1488 end 1640 total 1880 skew 0 clock 64.9KHz
v: height 1050 start 1052 end 1064 total 1082 clock 60.0Hz
1280x1024 (0x2e2) 108.0MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 64.0KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.0Hz
1280x960 (0x2e3) 108.0MHz +HSync +VSync
h: width 1280 start 1376 end 1488 total 1800 skew 0 clock 60.0KHz
v: height 960 start 961 end 964 total 1000 clock 60.0Hz
800x600 (0x2e4) 40.0MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.9KHz
v: height 600 start 601 end 605 total 628 clock 60.3Hz
800x600 (0x2e5) 36.0MHz +HSync +VSync
h: width 800 start 824 end 896 total 1024 skew 0 clock 35.2KHz
v: height 600 start 601 end 603 total 625 clock 56.2Hz
700x525 (0x2e6) 61.0MHz +HSync +VSync DoubleScan
h: width 700 start 744 end 820 total 940 skew 0 clock 64.9KHz
v: height 525 start 526 end 532 total 541 clock 120.0Hz
640x480 (0x2e7) 25.2MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.5KHz
v: height 480 start 490 end 492 total 525 clock 59.9Hz
512x384 (0x2e8) 32.5MHz -HSync -VSync DoubleScan
h: width 512 start 524 end 592 total 672 skew 0 clock 48.4KHz
v: height 384 start 385 end 388 total 403 clock 120.0Hz
320x240 (0x2e9) 12.6MHz -HSync -VSync DoubleScan
h: width 320 start 328 end 376 total 400 skew 0 clock 31.5KHz
v: height 240 start 245 end 246 total 262 clock 120.1Hz
DP-1 disconnected (normal left inverted right x axis y axis)
Identifier: 0x2eb
Timestamp: 7752176
Subpixel: unknown
Clones:
CRTCs: 1 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
DP-2 disconnected (normal left inverted right x axis y axis)
Identifier: 0x2ec
Timestamp: 7752176
Subpixel: unknown
Clones:
CRTCs: 1 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
DP-3 disconnected (normal left inverted right x axis y axis)
Identifier: 0x2ed
Timestamp: 7752176
Subpixel: unknown
Clones:
CRTCs: 1 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
hlandgar is offline   Reply With Quote

Old 07-05-12, 04:37 PM   #9
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

It sounds like GDK is getting monitor information from RandR 1.2 instead of from Xinerama when it's available. Since 295.59 didn't support RandR 1.2, it picks up your setting from TwinviewXineramaInfoOverride. Since 302.17 does support RandR 1.2, it's ignoring your nvidiaXineramInfoOverride setting and reading the RandR 1.2 configuration instead. Unfortunately, it is not possible to fake RandR 1.2 info the same way it is with Xinerama. I would suggest checking the GNOME documentation or support community to see if there is a way to make it use the Xinerama info instead of the RandR info.
AaronP is offline   Reply With Quote
Old 07-06-12, 08:02 AM   #10
hlandgar
Registered User
 
Join Date: Jun 2012
Posts: 9
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

In order to make vmware-workstation usable with the new driver, I disabled nvidiaXineramaInfoOverride. Now both xrandr and xinerama both see 2 monitors, 3840x1200 and 1920x1200. This is less than ideal but everything works and is usable.

nvidiaXineramaInfoOverride is only useful if all methods of determining the monitor configuration report consistently the information it provides. Having Xinerama and xrandr showing different configurations is a problem waiting to happen.

Its hard to believe that will all the flexibility built into XrandR-1.3 such as transforms and panning zones, they didn't provide a way to create a virtual crtc so fake xinerama needs could be met.
hlandgar is offline   Reply With Quote
Old 01-20-13, 02:27 PM   #11
dillzz
Registered User
 
Join Date: Dec 2008
Posts: 55
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

Same issue here running latest fedora 18.

I used to have 3 1920x1200 screens. Now I just see 1920x1200 x 1920x3840........

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
EndSection

Section "Module"
Load "glx"
EndSection

Section "Monitor"
Identifier "Monitor0"
ModeLine "1920x1200" 154.00 1920 1968 2000 2080 1200 1203 1209 1235 +HSync +HSync
ModeLine "3840x1200" 308.00 3840 3904 3968 4160 1200 1203 1213 1235 +HSync +VSync
HorizSync 30-83
VertRefresh 56-76
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Leadtek"
BoardName "9600GT"
# Option "Coolbits" "4"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "UseEDID" "False"
Option "ExactModeTimingsDVI" "True"
Option "NoLogo" "True"
Option "TwinView" "True"
Option "TwinViewOrientation" "RightOf"
Option "TwinviewXineramaInfo" "True"
Option "TwinViewXineramaInfoOverride" "1920x1200+0+0, 1920x1200+1920+0, 1920x1200+3840+0"
Option "DynamicTwinView" "False"
Option "MetaModes" "1920x1200,3840x1200"
Option "SecondMonitorHorizSync" "30-83"
Option "SecondMonitorVertRefresh" "56-76"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "3840x1200"
EndSubSection
EndSection
dillzz is offline   Reply With Quote
Old 01-21-13, 08:53 AM   #12
dillzz
Registered User
 
Join Date: Dec 2008
Posts: 55
Default Re: 302.17 nvidiaXineramaInfoOverride not working properly

FYI . . . Temp fix..

# Upgraded to Fedora 18. nvidia driver 304.51 introduces RandR 1.2+. It seems that the "TwinViewXineramaInfoOverride" xorg.conf config option (which now has been renamed to nvidiaXineramaInfoOverride) is not working properly. I currently have (3) 1920x1200 monitors and a Matrox TripleHead2GO with a total of 5760x1200. I was seeing a (1920x1200)+(3840x1200) regardless of my settings. Below `fixes` the behavior to (1920x1200)+(1920x1200)+(1920x1200).

# Install required packages
yum install libXinerama-devel

# Build fakeXinerama library
gcc -O2 -Wall Xinerama.c -fPIC -o libXinerama.so.1.0 -shared

# Replace stock library
cp ~/libXinerama.so.1.0 /usr/lib64/libXinerama.so

# Create a ~/.fakexinerama and specify layout
3
1920 0 1920 1200
0 0 1920 1200
3840 0 1920 1200


################################################## ####
# Xinerama.c code
################################################## ####

/* $Xorg: XPanoramiX.c,v 1.4 2000/08/17 19:45:51 cpqbld Exp $ */
/************************************************** ***************
* Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
* BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
* IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Except as contained in this notice, the name of Digital Equipment Corporation
* shall not be used in advertising or otherwise to promote the sale, use or other
* dealings in this Software without prior written authorization from Digital
* Equipment Corporation.
* ************************************************** ****************/
/* $XFree86: xc/lib/Xinerama/Xinerama.c,v 1.2 2001/07/23 17:20:28 dawes Exp $ */

#include <X11/Xlibint.h>
#include <X11/extensions/Xinerama.h>
#include <stdio.h>

static int num_screens = -1;
static struct
{
int x_org, y_org;
int width, height;
} screen_info[ 10 ];

static void skipComments( FILE* f )
{
char tmp[ 4096 ];
for(;
{
int c;
for(;
{
c = fgetc( f );
if( c == EOF )
return;
if( c != ' ' && c != '\t' && c != '\n' )
break;
}
if( c != '#' )
{
ungetc( c, f );
return;
}
fgets( tmp, 4096, f );
}
}

static void initFakeXinerama()
{
const char* home;
char buf[ 4096 ];
FILE* f;
int i;
if( num_screens != -1 )
return;
num_screens = 0;
home = getenv( "HOME" );
if( home == NULL )
return;
sprintf( buf, "%s/.fakexinerama", home );
f = fopen( buf, "r" );
if( f == NULL )
return;
skipComments( f );
if( fscanf( f, "%d\n", &num_screens ) != 1 )
{
num_screens = 0;
fclose( f );
return;
}
if( num_screens >= 10 )
num_screens = 10;
for( i = 0;
i < num_screens;
++i )
{
skipComments( f );
if( fscanf( f, "%d %d %d %d\n", &screen_info[ i ].x_org, &screen_info[ i ].y_org,
&screen_info[ i ].width, &screen_info[ i ].height ) != 4 )
{
num_screens = 0;
fclose( f );
return;
}
}
fclose( f );
}

Bool XineramaQueryExtension (
Display *dpy,
int *event_base,
int *error_base
)
{
(void) dpy;
*event_base = 0;
*error_base = 0;
return True;
}

Status XineramaQueryVersion(
Display *dpy,
int *major,
int *minor
)
{
(void) dpy;
*major = 1;
*minor = 1;
return 1;
}

Bool XineramaIsActive(Display *dpy)
{
(void) dpy;
initFakeXinerama();
return num_screens != 0;
}

XineramaScreenInfo *
XineramaQueryScreens(
Display *dpy,
int *number
)
{
XineramaScreenInfo *scrnInfo = NULL;
initFakeXinerama();
if(num_screens) {
if((scrnInfo = Xmalloc(sizeof(XineramaScreenInfo) * num_screens))) {
int i;

for(i = 0; i < num_screens; i++) {
scrnInfo[i].screen_number = i;
scrnInfo[i].x_org = screen_info[ i ].x_org;
scrnInfo[i].y_org = screen_info[ i ].y_org;
scrnInfo[i].width = screen_info[ i ].width;
scrnInfo[i].height = screen_info[ i ].height;
}

*number = num_screens;
} else
;
}
return scrnInfo;
}

################################################## ####

# xorg.conf
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
EndSection

Section "Module"
Load "glx"
EndSection

Section "Monitor"
Identifier "Monitor0"
ModeLine "1920x1200" 154.00 1920 1968 2000 2080 1200 1203 1209 1235 +HSync +HSync
ModeLine "3840x1200" 308.00 3840 3904 3968 4160 1200 1203 1213 1235 +HSync +VSync
HorizSync 30-83
VertRefresh 56-76
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Leadtek"
BoardName "9600GT"
# Option "Coolbits" "4"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "UseEDID" "False"
Option "ExactModeTimingsDVI" "True"
Option "NoLogo" "True"
Option "TwinView" "True"
Option "TwinViewOrientation" "RightOf"
Option "TwinviewXineramaInfo" "True"
Option "TwinViewXineramaInfoOverride" "1920x1200+0+0, 1920x1200+1920+0, 1920x1200+3840+0"
Option "DynamicTwinView" "False"
Option "MetaModes" "1920x1200,3840x1200"
Option "SecondMonitorHorizSync" "30-83"
Option "SecondMonitorVertRefresh" "56-76"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "3840x1200"
EndSubSection
EndSection
################################################## ####
dillzz 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
302.17 doesn't support my GT 640M balgo NVIDIA Linux 14 06-23-12 02:42 PM
Nvidia 302.17 OpenGL not working 6200 PCI Archmbc NVIDIA Linux 1 06-18-12 11:23 AM
302.17 for Linux x86/x86_64 released AaronP NVIDIA Linux 0 06-16-12 04:12 PM
Tony Hawk devs working on Call of Duty News Gaming Headlines 0 06-15-12 10:30 AM
TV-out not working nomatter what driver.. Dr_Gigolo NVIDIA Windows Graphics Drivers 11 09-11-02 11:11 AM

All times are GMT -5. The time now is 09:41 AM.


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