Forums » Linux

nvidia geforxe XF86Config two monitors

Feb 19, 2004 stephas link
i found vendetta yesterday, it rules!
on thing however bothers me, my computer is two slow to run the game "stretched" across two monitors and each half of the cross is on one monitor most of the time, that makes it hard to shoot. i really just want to get it to run on one monitor but the options video dialog will not let met change to any other resolution only what is it 2048x786at 86hz?? i wish i could run it on just one monitor, i wonder where the game parses the information from to determine the resolution options.
attached is my XF86Config just in case
thanks for all the input!!
stephan

oh it s an amd xp 2200 and a geforce fx 5200 with 128ddr
and 512 mb ram

Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "pex5"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
Load "xie"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Buttons" "7"
Option "Device" "/dev/psaux"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "false"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "Device"
Identifier "Card0"
Driver "nvidia"
# VendorName "nvidia"
# Driver "ati"
# VendorName "ATI"
# BoardName "Rage 128 RF"
BusID "PCI:1:0:0"
Option "TwinView"
Option "TwinViewOrientation" "LeftOf"
Option "SecondMonitorHorizSync" "60.0"
Option "SecondMonitorVertRefresh" "75"
# Option "SecondMonitorHorizSync" "68.6"
# Option "SecondMonitorVertRefresh" "85"
# Option "SecondMonitorHorizSync" "30.0-92.0"
# Option "SecondMonitorVertRefresh" "50.0-150.0"
# Option "MetaModes" "800x600, 1024x768"
Option "MetaModes" "1024x768, 1024x768"
Option "NvAgp" "0"
EndSection

#Section "Device"
# Identifier "Card1"
# Driver "cirrus"
# VendorName "Cirrus Logic"
## BoardName "GD5446"
## BusID "PCI:0:11:0"
## ChipID 0x00B8
#EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "DEL"
ModelName "DELL D1025HE"
HorizSync 30.0-92.0
VertRefresh 50.0-150.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Peacock"
ModelName "Entrada 15"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

#Section "Screen"
# Identifier "Screen1"
# Device "Card1"
# Monitor "Monitor0"
# DefaultDepth 24
# SubSection "Display"
# Depth 1
# Modes "1024x768" "800x600" "640x480"
# EndSubSection
# SubSection "Display"
# Depth 4
# Modes "1024x768" "800x600" "640x480"
# EndSubSection
# SubSection "Display"
# Depth 8
# Modes "1024x768" "800x600" "640x480"
# EndSubSection
# SubSection "Display"
# Depth 15
# Modes "1024x768" "800x600" "640x480"
# EndSubSection
# SubSection "Display"
# Depth 16
# Modes "1024x768" "800x600" "640x480"
# EndSubSection
# SubSection "Display"
# Depth 24
# Modes "1024x768"
# EndSubSection
#EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen0"
# Screen "Screen1" LeftOf "Screen0"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
EndSection

Section "DRI"
Mode 0666
EndSection
Feb 19, 2004 a1k0n link
Hmm. Well, Vendetta gets the modes from X directly via the XVidmode extension. These are the same modes you get when you use Alt-Ctrl-Keypad+ or -. It seems that TwinView is overriding the modes specified in your configuration.

However, you can manually edit ~/.vendetta/config.ini. Change xres and yres under the [Vendetta] heading to whatever you want, and then change windowmode to 1 under the [refgl] heading. This will put Vendetta in a window, and you can put it wherever you want.
Feb 21, 2004 stephas link
Yea, it must be twinview. and even after following your advice, vendetta seems to check the xvidmode extension every start and overwrites the config.ini back to xres=2048 :((
when i put it in window mode, it shows up on my right monitor and only two of the four menu items are displayed until i moved it and discovered that the resolution in window mode was also set back to 2048*768!
any ideas?
thanks stephan
Feb 21, 2004 Smurfy link
Sure, this sounds like it should be fixable... appologies for any mistakes I make because I'm "emerge kde" in gentoo and so running this in lynx...
Anyway....
First, run vendetta and put it into window mode...
Close vendetta completely.
Open a console...
cd .vendetta
Then use your favorite editor to open your config file and edit the resolution to something reasonable that will run on 1 screen...

If that doesnt fix it your in trouble? :-D.... Used to work for bzflag when I used 2 monitors...
Nov 10, 2005 MobyDick link
I'm having the same problem.

Putting Vendetta in windowed mode and manually setting the resolution doesn't help. Vendetta goes into windowed mode just fine, but it reverts back to the desktop's resolution.

Any suggestions?
Jan 02, 2006 Solarin link
The 'metamodes' section of the XF86Config file for twinview actually sets the resolutions that you can use. I noticed you have:

Option "MetaModes" "1024x768, 1024x768"

This means, run 1024x768 on both montiors. However, if you want fullscreen graphics on only one monitor you'll have to have a metamode to account for that, eg:

Option "MetaModes" "1024x768, null"

This means, one display at 1024x768 and the other display off. You'll have to experiment to find out which value corresponds to which monitor, you might need "null, 1024x768" instead.

Hope that helps.
Jan 25, 2006 acehaven link
I had to play around with it (I'm still not quite done), but you have to combine the multiple modes on one MetaModes option:

Option "MetaModes" "1280x1024,1280x1024; 800x600,800x600; 800x600,null; 640x480,640x480; 640x480,null"

(All on one line though). Make sure those resolutions are available though. I think one way to tell is read through your /var/log/Xorg.0.log and see which resolutions are available for each monitor.

(**) NVIDIA(0): Validated modes for display device CRT-0:
(**) NVIDIA(0): Default mode "1280x1024": 108.0 MHz, 64.0 kHz, 60.0 Hz
(**) NVIDIA(0): Default mode "800x600": 94.5 MHz, 87.5 kHz, 70.0 Hz (D)
(**) NVIDIA(0): Default mode "640x480": 54.0 MHz, 60.0 kHz, 60.0 Hz (D)

Ok, so then manually edit the config.ini file to match one of the smaller ombined dual-screen sizes, two 640x480 screens, so:

xres=1280
yres=480

And also set Windowmode to 1. That allowed me to get to the video menu and scroll through the other available modes. I'm still trying to settle on one that will work best for me.
Jan 03, 2013 ricktimmis link
Hey everyone, I had the same trouble with this issue too.

I found that there is also another switch in the [refgl] section of config.ini

xf86vidmode=1

The above appears to tell VO to look up the Video Modes from Xorg, I set this to False i.e

xf86vidmode=0

I then changed the xres and windowmode as above, this allowed me to run it in a Window, and also gave me some default resolutions to run at.

Hope that helps.
Jan 04, 2013 abortretryfail link
Thread Necromancy!!!

Really though, there should be a sticky in this section for Linux-specific config file options such as the ones listed here.
Jan 10, 2013 AndySpades link
Yep, sticky would be welcome.

What used to work for me (silly hack, I know, but it works) on Gnome and LXDE with Arandr/Xrandr
* unplug the 2nd screen
* start VO
**set it to windowed mode and full screen resolution (only once, it keeps the settings)
* plug the screen back in, set it to dual view
* F11 to make VO fullscreen on one of the two.

I guess the advice given above is more to the point, but, you know.