Bug#474740: sauerbraten: Hangs on the start on a dual-head system

Bruno Kleinert fuddl at tauware.de
Mon Apr 7 23:42:12 UTC 2008


Am Dienstag, den 08.04.2008, 01:48 +0400 schrieb Dmitry V. Rutsky:
> I've tried that, 'sauerbraten -t' works fine
ok, that means that the game basically runs on your system. that's
good! ;)

> ====
> rutsky at balto:~$ sauerbraten -t
> Using home directory: /home/rutsky/.sauerbraten
> init: sdl
> init: enet
> init: video: mode
> init: video: misc
> init: gl
> Renderer: GeForce 7950 GT/PCI/SSE2 (NVIDIA Corporation)
> Driver: 2.1.2 NVIDIA 169.09
> WARNING: Using NVIDIA texgen bug workaround. (use "/nvidia_texgen_bug 0" to 
> disable if unnecessary)
> init: console
> init: gl: effects
> init: world
> init: sound
> init: cfg
> init: localconnect
> init: mainloop
> read map packages/base/metl4.ogz (0.0 seconds)
> Mining Station by metlslime
> game mode is ffa/default
> ====
> However it hangs and goes blackscreen on the right monitor if I try to switch 
> to fullscreen.  I have to kill -9 it to get rid of it.
this sounds familiar to me: i guess that you're running the nvidia
driver in nvidia's proprietary "TwinView" mode, right?

> I use Nvidia GeForce 7950 graphics card with drivers built from package 
> nvidia-kernel-source 169.09-01.  The relevant section in the xorg.conf file 
> looks like this:
> ====
> Section "Device"
>         Identifier      "Head0D"
>         Driver          "nvidia"
>         Option          "nologo"        "true"
>         Option          "TwinView"
>         Option          "TwinViewOrientation"   "DFP-1 LeftOf CRT-0"
ah! yes you do! here we've got the potential culprit...

>         Option          "MetaModes"             "2560x1600,1152x864"
>         BusID           "PCI:7:0:0"
>    Option           "RenderAccel"              "true"  # render accel is 
> enabled by default
>    Option           "AllowGLXWithComposite"    "true"
>    Option           "backingstore"             "true"
> #   Option          "UseEDID"          "FALSE"
>    Option           "ModeValidation"   "NoMaxPClkCheck"
>    Option           "monitor-TMDS"   "DELL3007WFPHC"
> EndSection
in the past i've been using nvidia's "TwinView" mode for several years,
and i experienced the same "bug" as you do (and i guess you will
discover strange things in other games, too?). i wrote bug in
double-quotes because the strange behaviour is very likely to come from
a misconfigured - or let's say not fully configured - "TwinView"
configuration. to complete the configuration you need to set up
something nvidia calls "MetaModes" in your xorg.conf's "Screen" section
(as far as i know this is described in chapter 13A "X CONFIG TWINVIEW
OPTIONS" in /usr/share/doc/nvidia-glx/README.txt.gz). sorry, i cannot
help you here, because i apperently never understood that option
correctly and never managed to get full-screen working on my system...

as an alternative you can try to disable "TwinView" and instead use
X.Org's own "Xinerama" extension (see man 5 xorg.conf and search for
xinerama and LeftOf/RightOf; maybe it's also described
in /usr/share/doc/nvidia-glx/README.txt.gz). on my system in xinerama
mode, OpenGL applications worked correctly when rendering in fullscreen
mode, but i didn't manage to select on which screen the application
should appear. another disadvantage of the nvidia driver in xinerama
mode is, that you might lose some rendering performance and nvidia
didn't support DGA mouse input in xinerama mode, when i tried it the
last time, which is about 2 years ago. the lack of DGA mouse input
means, that you need to make your application use X.Org's mouse input -
for applications which use the SDL library that's easy: just set the
environment variable SDL_VIDEO_X11_DGAMOUSE=0 (for
example: SDL_VIDEO_X11_DGAMOUSE=0 sauerbraten).

perhaps you'll also find something in the BTS here:
http://bugs.debian.org/nvidia-glx

i personally decided to play everything in window mode, because it
appeared to be the least annoying workaround for the "full screen
problem" on nvidia.

cheers - fuddl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20080408/37a4d1a1/attachment.pgp 


More information about the Pkg-games-devel mailing list