PDA

View Full Version : How can I get a proper display with UT2004 and dual monitors enabled?


ThatOneGuy
June 21st, 2006, 02:26 PM
Hello, first post, after reading many threads, etc., I got Ubuntu installed and figured out a fancontrol script, modified the xorg.conf file for dual monitors, and now installed UT2004 last night. I have no linux experience and have only been dabbling in Ubuntu recently.

Anyway, when I start ut2004 the main menu comes out looking all crazy. On my left monitor I see a blank windowed screen, and on my right I see about half of the UT2004 menu on the right hand side, and the left hand side of the right monitor is blank/black.

What I'd like is what I get in Windows when I play games - the game window maximizes to one screen or the other (in Windows it chooses my left monitor) and then the other monitor is just whatever I have open on it (desktop or a webpage, etc).

Here's my xorg.conf if it's needed. Nvidia 6800 and I think I have the drivers installed correctly... *i think*. Thanks for any help, I really appreciate it. Ubuntu is pretty fun.

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "NVIDIA Corporation NV40 [GeForce 6800]"
Driver "nvidia"
BusID "PCI:2:0:0"
Option "UseFBDev" "true"
Option "TwinView" "on"
Option "MetaModes" "1280x1024, 1280x1024; 1024x768, 1024x768"
Option "SecondMonitorHorizSync" "30-85"
Option "SecondMonitorVertRefresh" "50-160"
Option "TwinViewOrientation" "LeftOf"
EndSection

Section "Monitor"
Identifier "SyncMaster 930B"
Option "DPMS"
HorizSync 30-100
VertRefresh 50-160
EndSection

Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV40 [GeForce 6800]"
Monitor "SyncMaster 930B"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection

Section "DRI"
Mode 0666
EndSection

ZylGadis
June 22nd, 2006, 12:31 AM
What I usually do with such cases is simply switch X to only using one monitor, then play the game on that monitor (the other one remains blank). You can do that by including resolutions like "1280x1024,NULL" in your MetaModes option in xorg.conf. Then, before playing the game, switch your resolution from 2560x1024 to 1280x1024 and you have it.
I also tend to call such games by a small script, which switches the resolution back and forth as needed through xrandr.

xrandr -s 1280x1024; my-game-bin; xrandr -s 2560x1024;

does the trick.