project-navigation
Personal tools

Author Topic: Exit to Desktop Problem with Ati 9800 (Linux x86_64)  (Read 3099 times)

swodah77

  • Guest
Exit to Desktop Problem with Ati 9800 (Linux x86_64)
« on: May 09, 2007, 03:17:58 pm »
Hi to you all and thanks for the great game.

I managed to compile the game version 2.1 under Ubuntu 7.04 AMD64 using the latest build tools etc ( gcc 4.1.2 ...) and the instructions at http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux  (and Debian section...)

The game runs nice and smooth but there's one minor problem when exiting the game. The game resolution is preserved so that if I play the game with 1024x768 and have desktop of 1600x1200 the desktop remains as 1024x768 but is scrollable at 1600x1200. So the original resolution is not fully recovered.  As said only a minor annoyance to switch desktop resolution back and forth after game, but still...

I'm using:

Gnome desktop
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9800 Pro
OpenGL version string: 2.0.6334 ( 8.34.8 )

 ~S~

The console messages are as follows:

Quote

sami@Nenuial:~/ufoai_2.1$ ./ufo
Adding game dir: ./base
using /home/sami/.ufoai/2.1.1/base for writing
Adding game dir: /home/sami/.ufoai/2.1.1/base
execing default.cfg
execing config.cfg
execing keys.cfg
Hostname: Nenuial
IP: 127.0.1.1
..added 3 maps to the mapcycle
...using language: en_US.UTF-8
Console initialized.

------- sound initialization -------
Loading snd_sdl sound driver
...library search path: '.'
Soundsystem: SDL.
SDL version: 1.2.11
SDL audio driver is "alsa".
Bits: 16
Frequency: 48000
Samples: 4096
Channels: 2
sound sampling rate: 48000
------- Loading ref_glx.so -------
LoadLibrary ("./ref_glx.so")
ref_gl version: GL 0.12
LoadLibrary ("libGL.so.1")
Initializing OpenGL display
...setting fullscreen mode 6: 1024 768
...using XFree86-VidModeExtension Version 2.2
I: got 8 bits of stencil
I: got 8 bits of red
I: got 8 bits of blue
I: got 8 bits of green
I: got 24 bits of depth
I: got 8 bits of alpha
...using hardware gamma
GL_VENDOR: ATI Technologies Inc.
GL_RENDERER: RADEON 9800 Pro
GL_VERSION: 2.0.6334 (8.34.8)
GL_EXTENSIONS: GL_ARB_multitexture GL_EXT_texture_env_add GL_EXT_compiled_vertex_array GL_S3_s3tc GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_multisample GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_blend GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ARB_draw_buffers GL_ATI_draw_buffers GL_ATI_element_array GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_map_object_buffer GL_ATI_separate_stencil GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once GL_ATI_vertex_array_object GL_ATI_vertex_attrib_array_object GL_ATI_vertex_streams GL_ATIX_texture_env_combine3 GL_ATIX_texture_env_route GL_ATIX_vertex_shader_output_point_size GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_vertex_array GL_EXT_vertex_shader GL_HP_occlusion_test GL_NV_blend_square GL_NV_occlusion_query GL_NV_texgen_reflection GL_SGI_color_matrix GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays
...ignoring GL_EXT_LockArrays
...using GL_EXT_point_parameters
...using GL_ARB_multitexture
...using GL_EXT_texture_env_combine
...GL_SGIS_multitexture not found
...ignoring GL_ARB_texture_compression
...using GL_EXT_texture_filter_anisotropic [16 max] [ 1 selected]
...using GL_EXT_texture_lod_bias
...using GL_EXT_stencil_wrap
...using GL_EXT_fog_coord
...using GL_ARB_fragment_program
...using GL_ARB_shading_language_100
...using GL_ATI_separate_stencil
...GL_EXT_stencil_two_side not found
...max texture size:
......detected 2048
...SDL_ttf version 2.0.8 - we need at least 2.0.7
...SDL_ttf inited
------------------------------------
CDAudio_Init: No CD in drive.
CDAudio_Init: CD contains no audio tracks.
CD Audio Initialized.
Init saving subsystems
...added base subsystem (check 0)
...added campaign subsystem (check 1)
...added hospital subsystem (check 2)
...added market subsystem (check 3)
...added research subsystem (check 4)
...added employee subsystem (check 5)
...added aliencont subsystem (check 6)
...added production subsystem (check 7)
...added aircraft subsystem (check 8)
...added messagesystem subsystem (check 9)
...added stats subsystem (check a)
...added nations subsystem (check b)
execing autoexec.cfg
"version" is "UFO: Alien Invasion 2.1.1 Unknown May  5 2007 Linux"
Shared Client/Server Info loaded
====== UFO Initialized ======

Warning: XLookupString failed on KeySym 65515
Warning: XLookupString failed on KeySym 65515
Save user settings to /home/sami/.ufoai/2.1.1/base/config.cfg
SDL audio device shut down.
X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 135li
  Minor opcode of failed request: 10
  Serial number of failed request: 276i
recursive shutdown
sami@Nenuial:~/ufoai_2.1$

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools

swodah77

  • Guest
Exit to Desktop Problem with Ati 9800 (Linux x86_64)
« Reply #2 on: May 10, 2007, 09:24:25 am »
I applied the changes suggested above ( [ 1626363 ] remove endless loop in main / also fixes a segfault ) - but unfortunately no improvement on this problem...

I'll try to find some time to dig a bit deeper...
       ~S~

swodah77

  • Guest
Exit to Desktop Problem with Ati 9800 (Linux x86_64)
« Reply #3 on: May 27, 2007, 10:08:02 am »
Dug a bit and found out the origin of the following error:
Quote

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  135 (XFree86-VidModeExtension)
  Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)


Bug hunt led finally to call  of XCloseDisplay(dpy) in GLimp_Shutdown() (gl_glx.c) (started from call of VID_Shutdown() in CL_Shutdown (cl_main.c)...
Might be that dpy is not valid display or smthing is not released before trying to release the current display (or the initial state of X is lost)...

I'm not experienced enough to do much more (and if this is strictly xlib related...) so my current fixes are following:

Play the game at the desktop resolution
or
make a startup script that calls xrandr  after the execution of ufo. Eg in my case there is only two lines in the script "run_ufo" (remember to: chmod 755 run_ufo ):
Code: [Select]

./ufo
xrandr -s 1

the "1" is the screen mode I want to change to after the game (invoke simply xrandr to see the available modes...)

Hope that this helps if some one has the same problem...

 ~S~