Author Topic: Not able to set video mode?  (Read 6901 times)

Vincent

  • Guest
Not able to set video mode?
« on: 31 January 2006, 14:07:32 »
Hey, I managed to compile Glest from the Linux port (I'm so proud ;) ) however, when trying to run it, it gives the following error:

Quote from: "xfce4-terminal"
$ ./glest
Exception: Couldn't set video mode 1024x768 (32bpp 0 stencil 32 depth-buffer). SDL Error is: Couldn't find matching GLX visual


I don't know what this means, my screen resolution just is 1024x768 so that shouldn't be the problem.

Thanks in advance.
« Last Edit: 1 January 1970, 00:00:00 by Vincent »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #1 on: 31 January 2006, 20:12:07 »
I don´t have much idea of how graphics stuff works on Linux, but you could try changing the color and depth values in glest.ini, they both default to 32, maybe your video card doesn´t support it but it supports other modes like 16 bit.
« Last Edit: 1 January 1970, 00:00:00 by martiño »

VIN100

  • Guest
(No subject)
« Reply #2 on: 1 February 2006, 02:45:07 »
(I'm not an expert in Linux, I'm just using it.  Also sorry for my English)

I think you will need the "glx" module to be loaded by X, and maybe an up-to-date driver for your graphic card wich support glx (opengl).  If you have a nVidia card, use the "nvidia" driver instead of the default "nv" one.

The way you will achieve this may depend on your distribution!  Do a search about it, it's a very common procedure.

Usually, you will have to modify, as a root, the conf. file of the X server.  It should be in /etc/X11/ and may be xorg.conf or xfree86.conf.  Do a backup of it!  After you'll have to add the line "load "glx"" in the "module" section, and maybe to change your card driver (after it have been installed).

I can only recommend you to search about activing GLX on your distribution before doing such a thing if you are not sure of what you are doing  ;)  Especially if you are not comfortable about using a shell without any graphical interface.

[Edit]
For the curious people,  GLX means opengl for X.  X (X Window system) is the "display" server in Linux.  X.org and XFree86 are the two major implementations of X system.
If you want to use OpenGL in Linux, with a X server, you'll need to support GLX.
« Last Edit: 1 January 1970, 00:00:00 by VIN100 »

Vincent

  • Guest
(No subject)
« Reply #3 on: 1 February 2006, 15:42:44 »
I already have the nVidia drivers, so that's not the problem.

I tried to change the color value to 16, but then it said that it couldn't open the file glest.ini ...
« Last Edit: 1 January 1970, 00:00:00 by Vincent »

MatzeB

  • Guest
(No subject)
« Reply #4 on: 19 November 2007, 20:03:04 »
You have to use the glest.ini which you can find in the mk/linux port. The one that comes with the data files only works on windows (it contains other font settings, and the default depth buffer size is 32 which isn't support by most cards but doesn't provoke a fatal error on win32 but does so on linux it seems).
« Last Edit: 1 January 1970, 00:00:00 by MatzeB »

 

anything