dual monitor in Ubuntu

You are viewing a static copy of the old 2DBoy forum, which closed in 2010. It is preserved here for historical interest, but it is not possible to reply to topics. For more recent discussion about World of Goo, visit our new forum.
dual monitor in Ubuntuv_dragon10/23/2009 - 10:34

ok i did some searching in the forum and did not find much help for me...

what do i need to do to run the game on a dual monitor Ubuntu 9.04 rig?
i use TwinView.

Re: dual monitor in UbuntuDeathKitten10/23/2009 - 15:50

I haven't actually tried it yet, as I've been playing on my laptop since my friend bought me a copy, but I did notice a similar problem on my desktop system, running kubuntu w/ dual screens also, when I tried the demo previously. You might want to look at running the game in a windowed mode instead of full screen, at least until someone else can come up with a proper fix.

You can change your settings in ~/.WorldOfGoo/config.txt

You can change your display preferences in the section labeled Graphics display. Just set the display resolution to something that's suitable to the resolutions you're running on your monitors, and put the fullscreen parameter to false. Alternatively, you should be able to toggle between fullscreen and windowed mode with Alt+Enter once you've loaded the game, if you don't want to mess with settings and just want to play.

Hope that helps.

Re: dual monitor in UbuntuDeathKitten10/23/2009 - 16:14

And I just took the time to install on my desktop. Starting it normally, and then toggling to windowed mode once the game has started doesn't work out so well, it still screws with the display, but starting in a windowed mode by way of changing the fullscreen parameter to false seems to do the trick and it runs happy as a clam. :)

Re: dual monitor in UbuntuSoultaker10/23/2009 - 16:56

I've run the game with TwinView myself by defining a meta-mode for using only a single monitor. The game can then run full-screen on one monitor while the other is off (this is less than ideal, of course, but much better than having the game centered over two monitors). It may take a little work to set this up in a way that you like.

For example in my setup I have a primary TFT screen and a secondary CRT monitor and my Xorg.conf this looks something like this:
[pre]
Section "Device"
        # NVIDIA stuff:
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName  "GeForce FX 5900XT"
        BusID      "PCI:1:0:0"
        Option      "NoLogo" "1"
        Option      "CoolBits" "1"
        Option      "AddARGBGLXVisuals" "1"
        Option      "ModeValidation" "DFP-0: NoXServerModes"
        Option      "FlatPanelProperties" "Scaling=aspect-scaled"

        # TwinView set-up:
        Option    "TwinView"
        Option    "TwinViewOrientation" "LeftOf"
        Option    "HorizSync" "CRT-0: 30-107; DFP-0: 30-81"
        Option    "VertRefresh" "CRT-0: 50-150; DFP-0: 56-75"
        Option    "MetaModes" "DFP-0:1680x1050,CRT-0:1400x1050; DFP-0:1680x1050,CRT-0:NULL; DFP-0:NULL,CRT-0:1400x1050; DFP-0:960x600,CRT-0:NULL; DFP-0:1024x768,CRT-0:NULL; DFP-0:800x600,CRT-0:NULL"
        Option    "UseEdidDpi" "DFP-0"
        Option    "TwinViewXineramaInfoOrder" "DFP-0,CRT-0"
EndSection
[/pre]

The important thing is to ensure that the resolution set in the game's config.txt matches one of the (meta)modes configured for X, otherwise the game will automatically select another resolution and center the window on that, which is usually not what you want.

Re: dual monitor in Ubuntuv_dragon10/23/2009 - 23:02

[quote author=DeathKitten link=topic=2149.msg14851#msg14851 date=1256331035]
I haven't actually tried it yet, as I've been playing on my laptop since my friend bought me a copy, but I did notice a similar problem on my desktop system, running kubuntu w/ dual screens also, when I tried the demo previously. You might want to look at running the game in a windowed mode instead of full screen, at least until someone else can come up with a proper fix.

You can change your settings in ~/.WorldOfGoo/config.txt

You can change your display preferences in the section labeled Graphics display. Just set the display resolution to something that's suitable to the resolutions you're running on your monitors, and put the fullscreen parameter to false. Alternatively, you should be able to toggle between fullscreen and windowed mode with Alt+Enter once you've loaded the game, if you don't want to mess with settings and just want to play.

Hope that helps.


...i dont have a config.txt ...just LastRun.txt, pers2.dat, WorldOfGoo.log .. ???
*edit* i found it ... opt/worldofgoo/properties


Last modified Fri, 10/23/2009 - 23:05 by v_dragon
Re: dual monitor in UbuntuDeathKitten10/24/2009 - 04:07

[quote author=v_dragon link=topic=2149.msg14864#msg14864 date=1256356920]
[quote author=DeathKitten link=topic=2149.msg14851#msg14851 date=1256331035]
I haven't actually tried it yet, as I've been playing on my laptop since my friend bought me a copy, but I did notice a similar problem on my desktop system, running kubuntu w/ dual screens also, when I tried the demo previously. You might want to look at running the game in a windowed mode instead of full screen, at least until someone else can come up with a proper fix.

You can change your settings in ~/.WorldOfGoo/config.txt

You can change your display preferences in the section labeled Graphics display. Just set the display resolution to something that's suitable to the resolutions you're running on your monitors, and put the fullscreen parameter to false. Alternatively, you should be able to toggle between fullscreen and windowed mode with Alt+Enter once you've loaded the game, if you don't want to mess with settings and just want to play.

Hope that helps.


...i dont have a config.txt ...just LastRun.txt, pers2.dat, WorldOfGoo.log .. ???
*edit* i found it ... opt/worldofgoo/properties


Sorry about that. I forgot I'd copied it over from the main location, as the files itself recommends against editing it there and instead suggests coping the file over to ~/.WorldOfGoo to edit on a user by user basis.

Re: dual monitor in Ubuntuubuntu.addict12/06/2010 - 20:50

Hi all

I've got the same problem, I'd like to run World Of Goo on only one screen but when I start the game, it's in the middle of the two screens. If i want to play on only one screen I have to deactivate the other screen in nvidia-settings first. It's a little bit annoying to do it every time I want to play. I don't know what to add in my config.txt, Could someone help me..?

Thank you very much.

ps : please excuse my English, I'm French.

Re: dual monitor in UbuntuSoultaker12/07/2010 - 08:07

Have you tried setting the resolution for the game to match that of one of your screens? Does that work?

I have run World of Goo with Twinview myself, but I had to define separate meta-modes in the X server configuration so only one monitor is used (then the game would run on one monitor and the other one would go blank). Unfortunately I'm not very familiar with Ubuntu, so I don't know precisely how to set that up there.

Re: dual monitor in Ubuntuubuntu.addict12/07/2010 - 09:15

[quote author=Soultaker link=topic=2149.msg20275#msg20275 date=1291727239]
Have you tried setting the resolution for the game to match that of one of your screens? Does that work?
No, it does not work, the game uses the two screens.

Quote:

I have run World of Goo with Twinview myself, but I had to define separate meta-modes in the X server configuration so only one monitor is used (then the game would run on one monitor and the other one would go blank). Unfortunately I'm not very familiar with Ubuntu, so I don't know precisely how to set that up there.

hat do you mean when you say "blank" ? Is the screen black? Could you tell me how you did this?

Re: dual monitor in UbuntuSoultaker12/07/2010 - 09:43

I configured it directly in Xorg.conf:
<br />Section "Device"<br />        Driver      "nvidia"<br /><br /># some other options here<br /><br />        Option     "TwinView"<br />        Option     "TwinViewOrientation" "LeftOf"<br />        Option     "HorizSync" "CRT-0: 30-107; DFP-0: 30-81"<br />        Option     "VertRefresh" "CRT-0: 50-150; DFP-0: 56-75"<br />        Option     "MetaModes" "DFP-0:1680x1050,CRT-0:1400x1050; DFP-0:1680x1050,CRT-0:NULL; DFP-0:NULL,CRT-0:1400x1050; DFP-0:960x600,CRT-0:NULL; DFP-0:1024x768,CRT-0:NULL; DFP-0:800x600,CRT-0:NULL"<br />        Option     "UseEdidDpi" "DFP-0"<br />        Option     "TwinViewXineramaInfoOrder" "DFP-0,CRT-0"<br />EndSection<br />
This is highly specific to my set-up, of course, but the point is these meta-modes. For example, "DFP-0:800x600,CRT-0:NULL" defines a mode where the screen has resolution 800x600 which goes entirely on DFP-0 (my TFT monitor) and CRT-0 (an old CRT monitor) is off. If I then configure the game to run at 800x600 too, I'm fairly sure it used one of these meta-modes, because the desired full-screen resolution matches exactly.

In Ubuntu there may be a way to configure this without editing xorg.conf manually, but as I said, I don't know how. If you do plan to edit Xorg.conf, I recommend you read the documentation that comes with the Nvidia driver. All of these options are actually nicely documented in there.


Last modified Wed, 12/08/2010 - 09:40 by Soultaker