SDL_SetVideoMode() failed

Hi,

I am new for the SUSE and really love it.
I play a 3D-tetris game Blockout for many years and I want to play it on SUSE as well. I tried Ubuntu before and Blockout II ran just fine. When I tried to install it on SUSE I had to install some libs before (libSDL_mixer is one of them). After that the game was installed but it doesn’t start. When it runs in terminal it give an error “SDL_SetVideoMode() failed”.

My comuter:
CPU Duron 750+
Video ASUS (with Nvidia FX5200 chip)
Video drivers version 96.43.07-0.1

Please help to start the game.

Thanks

What is your color resolution, you will get that error if you have set your desktop to 16 bit color rather than 24 bit?

Slammer 64, thank you for the suggestion. The number of colors is 24 bit, but the game still give the same error. Several bays ago I played with the 16-bit color scheme. May be some trace remain somewhere?

Could you post the full output of the error message?

Hi,
Here it is the error message:

username@linux-kss5:~> BL2_HOME=/usr/share/BlockOutII blockout
SDL_SetVideoMode() failed.

On Mon, 18 Aug 2008 00:06:03 GMT
EvgK <EvgK@no-mx.forums.opensuse.org> wrote:

>
> Hi,
> Here it is the error message:
>
> Code:
> --------------------
> username@linux-kss5:~> BL2_HOME=/usr/share/BlockOutII blockout
> SDL_SetVideoMode() failed.
>
> --------------------
>
>

The Blockout II defaults to 800x600x32, windowed.

Please check to see what bit depth your current setup is running at. I know
you checked previously… please check again using this command:

xdpyinfo | grep depths

It should return something like this:

depths (7): 24, 1, 4, 8, 15, 16, 32

This shows that my Xwindows can support 7 bit depths, and I’m currently at
bit-depth 24.

If yours reports something different, please check your settings again for
bit depth.

Easiest way is to edit the file /etc/X11/xorg.conf, you’ll need to be root.

Look for a line saying

DefaultDepth xx

and verify that it is 24.

If you change that file, you’ll need to log out and back in again to reset
the Xserver so it changes bit-depths. (or reboot)

The game runs well on my little machine… both the binary and the compiled
source. Getting around 442 fps with a standard 800x600x32 window. {Grin}

Loni


L R Nix
lornix@lornix.com