Author Topic: dual-screen display, resolutions and geometry  (Read 5699 times)

florin

  • Posts: 6
  • Turrets: +0/-0
    • http://florin.myip.org/
dual-screen display, resolutions and geometry
« on: February 09, 2007, 02:38:30 am »
I'm using two monitors on a GeForce 7800 with TwinView. Each monitor is at 1280x1024 for a total desktop size of 2560x1024.

If I configure Tremulous to run at 1280x1024, then it gets displayed in the middle of the dual desktop, so it's split across both monitors. It would be nice to be able to specify the location of the upper-left corner, so I can display the game entirely on one screen.
Or at least would be nice to have an option in the game to not span across multiple monitors in a TwinView setup - just keep the game on one monitor.

Another suggestion: if it does span, then allow it to use the full resolution of the desktop - in my case, 2560x1024. This might not be ideal in some cases, as the middle of the image will fall exactly on the edge between the two monitors (so it would be hard to shoot with precision), but it would be nice to have as an option.

Henners

  • Posts: 383
  • Turrets: +10/-5
dual-screen display, resolutions and geometry
« Reply #1 on: February 09, 2007, 02:49:46 am »
Thats odd - I never had this issue with my dual monitors. I was also running an app called ultramon (worth looking at if you havnt - adds some nice extra features).

But I cant see why that would change how full screen apps display. Any fullscreen apps only ever displayed on the primary monitor (though resolutions always went wonky on the secondary monitor whilst a full screen app was running).
Official Ace Forum Attorney. If your post is stupid I will object...

florin

  • Posts: 6
  • Turrets: +0/-0
    • http://florin.myip.org/
dual-screen display, resolutions and geometry
« Reply #2 on: February 09, 2007, 04:44:48 am »
Forgot to specify - the OS is Linux Fedora 7 test 1 (but same issue exists on Fedora Core 6).

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
dual-screen display, resolutions and geometry
« Reply #3 on: February 09, 2007, 05:51:54 am »
I cant remember the game, but there was a game where you played on the primary monitor, and could configure the 2ndary monitor to be a data display. You would still have the basic HUD on the main monitor, but on the secondary, you could set things up like a scoreboard, timer, network analyzer, etc, all within the game. It even had a widget platform you could download more for the other monitors.

∧OMG ENTROPY∧

Henners

  • Posts: 383
  • Turrets: +10/-5
dual-screen display, resolutions and geometry
« Reply #4 on: February 09, 2007, 09:04:48 am »
Ah, Linux. Theres the big difference then
Official Ace Forum Attorney. If your post is stupid I will object...

Caveman

  • Guest
dual-screen display, resolutions and geometry
« Reply #5 on: February 09, 2007, 10:47:40 am »
Last I looked... Fedora is a testing stage for RedHat, so try their forums :)

TinMan

  • Posts: 1019
  • Turrets: +49/-70
    • http://neonpulse.net
dual-screen display, resolutions and geometry
« Reply #6 on: February 09, 2007, 09:08:11 pm »
Quote from: "Henners"
Ah, Linux. Theres the big difference then

I haven't had this problem in Debian, so it doesn't relate to all Linux distros. Has anyone else using RHEL had this problem?
Code: [Select]
Linux: ~/.tremulous/base/
Mac: ~/Library/Application\ Support/Tremulous/base/
Windows: C:\Documents and Settings\username\Local Settings\Application Data\Tremulous\base\
NeonPulse
http://neonpulse.net/media/games/tremulous/base/autoexec.cfg

florin

  • Posts: 6
  • Turrets: +0/-0
    • http://florin.myip.org/
dual-screen display, resolutions and geometry
« Reply #7 on: February 09, 2007, 10:18:56 pm »
Quote from: "TinMan"
I haven't had this problem in Debian, so it doesn't relate to all Linux distros. Has anyone else using RHEL had this problem?

Interesting.
More details then:
Linux Fedora 7 Test 1
kernel-2.6.20-1.2922.fc7
kmod-nvidia-1.0.9746-1.2.6.20_1.2922.fc7
gnome-panel-2.17.91-1.svn20070207.fc7
compiz-0.3.6-2.fc7
07:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7600 GT] (rev a1)
Dual display (TwinView) at 1280x1024 each. Desktop Effects turned on.
AMD Athlon(tm) 64 X2 Dual Core Processor 5200+

It's still not clear to me how all the positioning happens. Does the application make a request to the OS, such as "place this window at coordinates X,Y"?

TinMan

  • Posts: 1019
  • Turrets: +49/-70
    • http://neonpulse.net
dual-screen display, resolutions and geometry
« Reply #8 on: February 09, 2007, 10:43:48 pm »
Try disabling compiz and doing it, compiz tends to throw off coordinates for some things.
Code: [Select]
Linux: ~/.tremulous/base/
Mac: ~/Library/Application\ Support/Tremulous/base/
Windows: C:\Documents and Settings\username\Local Settings\Application Data\Tremulous\base\
NeonPulse
http://neonpulse.net/media/games/tremulous/base/autoexec.cfg

florin

  • Posts: 6
  • Turrets: +0/-0
    • http://florin.myip.org/
dual-screen display, resolutions and geometry
« Reply #9 on: February 10, 2007, 02:13:31 am »
Quote from: "TinMan"
Try disabling compiz and doing it, compiz tends to throw off coordinates for some things.

Right. So, that is accomplished by turning off Desktop Effects, when Compiz gets replaced by Metacity.
I did that, I turned off Desktop Effects, I actually logged off just to be sure, then logged back in. In the process list, compiz was replaced by metacity.

Same problem, the game screen is positioned in the middle, straddling the edge between the two monitors. Compiz is not the cause.

Other ideas?

raf

  • Posts: 75
  • Turrets: +0/-0
dual-screen display, resolutions and geometry
« Reply #10 on: February 13, 2007, 10:42:46 am »
Have a look at the gentoo wiki[0], search for MetaModes.

regards

raf


florin

  • Posts: 6
  • Turrets: +0/-0
    • http://florin.myip.org/
dual-screen display, resolutions and geometry
« Reply #11 on: February 17, 2007, 02:11:09 am »
Quote from: "raf"
Have a look at the gentoo wiki[0], search for MetaModes.

regards

raf

That was it! I modified xorg.conf until it looked like this:

Code: [Select]
# Xorg configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules/extensions/nvidia"
        ModulePath   "/usr/lib64/xorg/modules"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        Option      "TwinView"
        Option      "AddARGBGLXVisuals" "True"
        Option      "ConnectedMonitor" "DFP,DFP"
        Option      "MetaModes" "1280x1024,1280x1024; 1280x1024; 1024x768,1024x768; 1024x768; 800x600,800x600; 800x600"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection


The key was the MetaModes option. I had to specify those single-monitor modes to trick the game into using only one monitor.

Case closed, thank you.