nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Dual-head with TwinView but need fullscreen for games (http://www.nvnews.net/vbulletin/showthread.php?t=35919)

tapiiron 08-31-04 06:22 AM

Dual-head with TwinView but need fullscreen for games
 
Can anyone help me with this problem? If I start any fullscreen game I see half of it right of the right monitor but the other half is missing. At the left monitor I see my linux desktop...

Im using fedora core 2 and geforce fx 5600.
Driver is the newest 6111..

My xorg.conf:
# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "Multihead layout"
Screen "Screen AGP TwinView"
# Screen 0 "Screen0"
# Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
# Option "Xinerama" "on"
# Option "Clone" "off"
EndSection


Section "Files"
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "fi"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

#Section "Monitor"
# Identifier "Monitor0"
# VendorName "Monitor Vendor"
# ModelName "Hyundai ImageFlat F790D"
# HorizSync 30.0 - 80.0
# VertRefresh 56.0 - 75.0
# Option "dpms"
#EndSection

Section "Device"
Identifier "NV AGP TwinView"
VendorName "nvidia"
Driver "nvidia"
# update this with the PCI id of your card. Consult the output
# of the 'lspci' command. The BusID is usually optional when
# only using one graphics card.
BusID "PCI:1:0:0"
Option "NvAGP" "1"
# sample twinview setup
Option "TwinView"
# be sure to replace the HorizSync and VertRefresh with correct values
# for your monitor!
Option "SecondMonitorHorizSync" "30-80"
Option "SecondMonitorVertRefresh" "56-75"
Option "TwinViewOrientation" "LeftOf"
Option "MetaModes" "1280x1024,1280x1024; 1024x768,1024x768"
# Option "MetaModes" "1600x1200 @1900x1200 +0+0, 1024x768 @1900x768 +0+1200"
# Option "MetaModes" "1024x768,1280x1024"
Option "ConnectedMonitor" "dft,dft"
EndSection

Section "Screen"
Identifier "Screen AGP TwinView"
Device "NV AGP TwinView"
Monitor "Monitor1"
DefaultColorDepth 24
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x400"
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "LG 1515"
HorizSync 30.0 - 80.0
VertRefresh 56.0 - 75.0
Option "dpms"
EndSection

#Section "Device"
# Identifier "Videocard0"
# Driver "nvidia"
# VendorName "Videocard vendor"
# BoardName "NVIDIA GeForce FX (generic)"
#EndSection

#Section "Device"
# Identifier "Videocard1"
# Driver "nvidia"
# VendorName "Videocard Vendor"
# BoardName "NVIDIA GeForce FX (generic)"
# BusID "PCI:1:0:0"
# Screen 1
#EndSection

#Section "Screen"
# Identifier "Screen0"
# Device "Videocard0"
# Monitor "Monitor0"
# DefaultDepth 24
# SubSection "Display"
# Viewport 0 0
# Depth 24
# Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
# EndSubSection
#EndSection

#Section "Screen"
# Identifier "Screen1"
# Device "Videocard1"
# Monitor "Monitor1"
# DefaultDepth 24
# SubSection "Display"
# Viewport 0 0
# Depth 24
# Modes "1024x768" "800x600"
# EndSubSection
#EndSection

pantropik 08-31-04 07:19 AM

Re: Dual-head with TwinView but need fullscreen for games
 
I have a 5900 with 2 CRT monitors attached (a 17" and a 19"). All you need to do is define some more metamodes. I'm assuming your default desktop is 1280x1024 (which X sees as one screen with a resolution of 2560x1024, with nVidia's built-in Xinerama extension handling the details of where to put windows and dialogs and stuff -- the key is that X sees one big screen, not two).

Anyway, the key to getting games and stuff to display properly on only ONE monitor is telling the driver when to shut off the second one. Here is what I do, since I only run my desktop in 1280x1024 (bearing in mind it should all be on one line, even if the forum breaks it here):

Option "MetaModes" "1280x1024, 1280x1024; NULL, 1152x864; NULL, 1024x768; NULL, 800x600; NULL, 640x480"

as opposed to yours:

Option "MetaModes" "1280x1024,1280x1024; 1024x768,1024x768"

At 1280x1024, both my monitors are on. At the lower resolutions, my first monitor is turned off and the game can have the entire second screen all to itself. I've had problems before with "TwinViewOrientation" "LeftOf" causing problems like you describe (half the image on one monitor, the other monitor either just blank or powered down), so you might have better luck if you try a "RightOf" orientation (since your monitors have the same refresh rates, you could just physically switch the inputs).


To test it, fire up Tuxracer, which runs at 640x480 and one of your monitors should turn off and Tuxracer should fire up fullscreen on the other one. I haven't found a way to game fullscreen on one monitor while having the second one display anything useful (like in Windows), I guess because in TwinView mode X doesn't realize there ARE two screens.

Good luck.

bms20 08-31-04 07:21 AM

Re: Dual-head with TwinView but need fullscreen for games
 
This is a known problem; it has to do with the way that the SDL library interprets the twin-view information.

I work around the problem by hitting Ctrl-Alt-Minus to switch to a non-twin view mode prior to starting any games in full screen mode. Its a bit irratating, but it works.

When I get a driver that is stable on the NForce2 and GeForce6800U, I'll have a go at fixing the SDL libary; however, a just barely stable system doesn't make me keen to start messing with this stuff - what would I be debugging? The driver? SDL? Who knows!

-Brett

tapiiron 08-31-04 07:49 AM

Re: Dual-head with TwinView but need fullscreen for games
 
Ok,
thank you pantropik. It started working after switched to rightOf and made that metamode-line.

:)


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

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