You are not logged in.

#1 2014-09-10 14:45:30

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Relationship between SDL and Xorg?

I had some issues setting up my X environment which I'm not completely sure were ever fixed...but I would try to do:

"Xorg :0 -configure"  and I'd get an error saying the number of screens didn't match the number of output devices.

Eventually, I copied the skel xorg configuration file into the right directory following along with the documentation at  https://wiki.archlinux.org/index.php/xorg

I still get the same error when doing "Xorg :0 -configure" but now my opengl/sdl applicaitons produce different errors than before.

I'm using an intel X3100 gpu built into a laptop (lenovo X61 tablet), which after installing the intel 2d and 3d drivers, still can't produce an opengl target.

Basically,  I tried to install Xorg, SDL, SDL2, and a window manager, and it seems like the applications can't determine screen settings.  I'm not sure what I broke.

Offline

#2 2014-09-10 16:33:34

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Relationship between SDL and Xorg?

Hold on a minute... What's the "real" issue? Why are you creating an "xorg.conf" file? The X server should just work without one. How did you install the Intel drivers? Did you install the "xf86-video-intel-2.0" package for your video card? What are the error messages?

volumetricsteve wrote:

I'm not sure what I broke.

Is this something that was working correctly in the past then then recently stopped working? What did you change?

Looking at your other thread, it looks like you have some strange configuration settings. You really shouldn't need to compile ANYTHING yourself in Arch Linux. What are the "Intel 3D drivers" you are referring to?

Offline

#3 2014-09-10 17:26:23

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Re: Relationship between SDL and Xorg?

drcouzelis wrote:

Hold on a minute... What's the "real" issue? Why are you creating an "xorg.conf" file? The X server should just work without one. How did you install the Intel drivers? Did you install the "xf86-video-intel-2.0" package for your video card? What are the error messages?

I guess you could say the real issue is that SDL can't figure out what my opengl renderer is, which I thought it tries to gather from Xorg somehow.  From my SDL application, I get "No Video Devices Available" and then the application panics, but I think the panic would go away if it could find a screen to render to. 
I'm creating an Xorg.conf because I thought I was supposed to, but...I guess I'm not?  Good to know.
I installed the intel video drives with "pacman -S xf86-video-intel" and "pacman -S lib32-intel-dri"
I didn't realize there was a 2.0 package....looking in the arch package database, I don't see a "xf86-video-intel-2.0" package
The exact error I get with Xorg when I do "Xorg :0 -configure" is:
"Number of created screens does not match number of detected devices"

drcouzelis wrote:

Is this something that was working correctly in the past then then recently stopped working? What did you change?

Sorry, this is kind of a first "dry run" of getting my feet wet in arch and setting up my own X environment.  So far, I can only get 2D stuff to work - but it works pretty well.  What DOES work is the dedicated server application, which makes no calls to opengl, sdl, xorg, oss, or alsa.  To explain from the top, I compiled the yamagi quake 2 client which I think compiled without error.  (there was no arch package for yamagi quake 2, which I wasn't surprised to find)  The dedicated server executable works fine, but the quake 2 client that makes all the opengl/sdl/alsa calls does not.  The quake 2 client is my "SDL application" that produced the error mentioned above.  "No Video Devices Available"

To date:  I have TWM working....I do not have sound or 3d acceleration working but for now I'm focused on resolving the 3d issue.

drcouzelis wrote:

Looking at your other thread, it looks like you have some strange configuration settings. You really shouldn't need to compile ANYTHING yourself in Arch Linux. What are the "Intel 3D drivers" you are referring to?

Honestly, I might, but I'm not sure what would count as strange...though if you're suggesting I shouldn't need to make a configuration for Xorg, I probably messed up by trying to configure it at all.  I had to compile the yamagi quake 2 client since a package did not exist for it in the arch-linux package database...that I could find.  Color me tickled-pink if there's one out there.

The intel 3d drivers would have been the "pacman -S lib32-intel-dri" package.


Thanks for your interest and sorry if I missed something incredibly obvious.

Offline

#4 2014-09-10 18:01:34

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Relationship between SDL and Xorg?

The "yamagi-quake2" package for Arch Linux is right here, in the AUR: https://aur.archlinux.org/packages/yamagi-quake2/

After starting X, what is the output of "glxinfo" (from the package "mesa-demos")? And the output of "lspci"? And "xrandr"?

Oops, I guess you should be using "xf86-video-intel" like you already are. It looks like some info in the wiki is a bit outdated. tongue

Last edited by drcouzelis (2014-09-10 18:03:22)

Offline

#5 2014-09-10 18:19:39

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Re: Relationship between SDL and Xorg?

How....how the hell did I miss that.  I must have done 30 different searches in the past 48 hours for yamagi quake 2....anyway, thanks for the find, I'll give that a try!

I'll have to try glxinfo and "mesa-demos" and the others when I get home, but I look forward to trying them.

I was tempted to wipe the drive, reinstall from scratch and start over (this time without dicking around with xorg) to see if that helps...do you think that'd be worthwhile?

Thanks again.

Last edited by volumetricsteve (2014-09-10 18:20:59)

Offline

#6 2014-09-10 20:20:54

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Relationship between SDL and Xorg?

Reinstalling might be a good learning experience... Other than that, just deleting the "xorg.conf" file should put everything back to normal.

My only concern is that your hardware (tablet) is particularly weird and is giving Linux some trouble, but a video card is a video card. Your X3100 should work just as well with Linux as anyone else's. tongue

Offline

#7 2014-09-10 22:43:18

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Re: Relationship between SDL and Xorg?

ok, these are going to be gigantic, so here goes:

glxinfo:
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
    GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_swap_control
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample,
    GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile,
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB,
    GLX_ARB_get_proc_address, GLX_ARB_multisample,
    GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control, GLX_SGI_video_sync
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) 965GM x86/MMX/SSE2
OpenGL version string: 2.1 Mesa 10.2.7
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_3DFX_texture_compression_FXT1, GL_AMD_seamless_cubemap_per_texture,
    GL_AMD_shader_trinary_minmax, GL_ANGLE_texture_compression_dxt3,
    GL_ANGLE_texture_compression_dxt5, GL_APPLE_object_purgeable,
    GL_APPLE_packed_pixels, GL_APPLE_vertex_array_object,
    GL_ARB_ES2_compatibility, GL_ARB_buffer_storage,
    GL_ARB_clear_buffer_object, GL_ARB_color_buffer_float, GL_ARB_copy_buffer,
    GL_ARB_debug_output, GL_ARB_depth_buffer_float, GL_ARB_depth_clamp,
    GL_ARB_depth_texture, GL_ARB_draw_buffers,
    GL_ARB_draw_elements_base_vertex, GL_ARB_draw_instanced,
    GL_ARB_explicit_attrib_location, GL_ARB_fragment_coord_conventions,
    GL_ARB_fragment_program, GL_ARB_fragment_program_shadow,
    GL_ARB_fragment_shader, GL_ARB_framebuffer_object,
    GL_ARB_framebuffer_sRGB, GL_ARB_get_program_binary,
    GL_ARB_half_float_pixel, GL_ARB_half_float_vertex,
    GL_ARB_instanced_arrays, GL_ARB_internalformat_query,
    GL_ARB_invalidate_subdata, GL_ARB_map_buffer_alignment,
    GL_ARB_map_buffer_range, GL_ARB_multi_bind, GL_ARB_multisample,
    GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_occlusion_query2,
    GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_provoking_vertex, GL_ARB_robustness, GL_ARB_sampler_objects,
    GL_ARB_seamless_cube_map, GL_ARB_separate_shader_objects,
    GL_ARB_shader_bit_encoding, GL_ARB_shader_objects,
    GL_ARB_shader_texture_lod, GL_ARB_shading_language_100, GL_ARB_shadow,
    GL_ARB_sync, GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
    GL_ARB_texture_compression_rgtc, 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_mirror_clamp_to_edge,
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
    GL_ARB_texture_rectangle, GL_ARB_texture_rg, GL_ARB_texture_rgb10_a2ui,
    GL_ARB_texture_storage, GL_ARB_texture_swizzle, GL_ARB_transpose_matrix,
    GL_ARB_vertex_array_bgra, GL_ARB_vertex_array_object,
    GL_ARB_vertex_attrib_binding, GL_ARB_vertex_buffer_object,
    GL_ARB_vertex_program, GL_ARB_vertex_shader,
    GL_ARB_vertex_type_10f_11f_11f_rev, GL_ARB_vertex_type_2_10_10_10_rev,
    GL_ARB_window_pos, GL_ATI_blend_equation_separate, GL_ATI_draw_buffers,
    GL_ATI_envmap_bumpmap, GL_ATI_separate_stencil,
    GL_ATI_texture_env_combine3, GL_ATI_texture_float, GL_EXT_abgr,
    GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_equation_separate,
    GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, GL_EXT_draw_buffers2,
    GL_EXT_draw_instanced, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
    GL_EXT_framebuffer_blit, GL_EXT_framebuffer_object,
    GL_EXT_framebuffer_sRGB, GL_EXT_gpu_program_parameters,
    GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,
    GL_EXT_packed_float, GL_EXT_packed_pixels, GL_EXT_pixel_buffer_object,
    GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_provoking_vertex,
    GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_subtexture,
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_array,
    GL_EXT_texture_compression_dxt1, GL_EXT_texture_compression_rgtc,
    GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_integer,
    GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_texture_rectangle,
    GL_EXT_texture_sRGB, GL_EXT_texture_sRGB_decode,
    GL_EXT_texture_shared_exponent, GL_EXT_texture_snorm,
    GL_EXT_texture_swizzle, GL_EXT_vertex_array, GL_EXT_vertex_array_bgra,
    GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate, GL_KHR_debug,
    GL_MESA_pack_invert, GL_MESA_texture_signed_rgba, GL_MESA_window_pos,
    GL_NV_blend_square, GL_NV_conditional_render, GL_NV_depth_clamp,
    GL_NV_light_max_exponent, GL_NV_packed_depth_stencil,
    GL_NV_primitive_restart, GL_NV_texgen_reflection,
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle, GL_OES_EGL_image,
    GL_OES_read_format, GL_S3_s3tc, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

OpenGL ES profile version string: OpenGL ES 2.0 Mesa 10.2.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
    GL_ANGLE_texture_compression_dxt3, GL_ANGLE_texture_compression_dxt5,
    GL_APPLE_texture_max_level, GL_EXT_blend_minmax,
    GL_EXT_discard_framebuffer, GL_EXT_map_buffer_range,
    GL_EXT_multi_draw_arrays, GL_EXT_read_format_bgra,
    GL_EXT_separate_shader_objects, GL_EXT_texture_compression_dxt1,
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_format_BGRA8888,
    GL_EXT_texture_rg, GL_EXT_texture_type_2_10_10_10_REV,
    GL_EXT_unpack_subimage, GL_NV_draw_buffers, GL_NV_fbo_color_attachments,
    GL_NV_read_buffer, GL_OES_EGL_image, GL_OES_EGL_image_external,
    GL_OES_compressed_ETC1_RGB8_texture, GL_OES_depth24, GL_OES_depth_texture,
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,
    GL_OES_get_program_binary, GL_OES_mapbuffer, GL_OES_packed_depth_stencil,
    GL_OES_rgb8_rgba8, GL_OES_standard_derivatives, GL_OES_stencil8,
    GL_OES_surfaceless_context, GL_OES_texture_3D, GL_OES_texture_npot,
    GL_OES_vertex_array_object

12 GLX Visuals
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x020 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x021 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x074 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x075 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x076 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x077 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
0x078 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x079 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x07a 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x07b 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x07c 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
0x05b 32 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None

24 GLXFBConfigs:
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x05c  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x05d  0 tc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x05e  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x05f  0 tc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x060 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x061 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x062 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x063 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x064  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x065  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
0x066 32 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x067 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
0x068  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x069  0 dc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x06a  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x06b  0 dc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x06c 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x06d 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x06e 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x06f 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x070  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x071  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
0x072 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x073 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow

lspci:
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (secondary) (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
00:1a.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M-E) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
05:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
05:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
05:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)

xrandr:
Screen 0: minimum 8 x 8, current 1400 x 1050, maximum 32767 x 32767
LVDS1 connected 1400x1050+0+0 (normal left inverted right x axis y axis) 245mm x 184mm
   1400x1050     50.00*+
   1280x1024     60.02 
   1280x960      60.00 
   1024x768      60.00 
   800x600       60.32    56.25 
   640x480       60.00    59.94 
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Offline

#8 2014-09-10 23:21:14

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Re: Relationship between SDL and Xorg?

And this just in from the AUR yamagi-quake2 build...it also looked successful, but different, the output I get from the client is now:


Yamagi Quake II v5.23
=====================

Client build options:
+ SDL2
- CD audio
+ OGG/Vorbis
+ OpenAL audio
+ Zip file support
Platform: Linux
Architecture: i386
Byte ordering: little endian

Using /usr/share/yamagi-quake2/baseq2/ to fetch paks
Using '/home/vsteve/.yq2/baseq2' for writing.
couldn't exec default.cfg
couldn't exec yq2.cfg
couldn't exec config.cfg
Console initialized.

------- sound initialization -------
LoadLibrary(libopenal.so.1)
...opening OpenAL device:ERROR: OpenAL failed to initialize.
Starting SDL audio callback.
SDL audio driver is "alsa".
SDL_OpenAudio() failed: ALSA: Couldn't open audio device: No such file or directory
----- refresher initialization -----
Input initialized.
Byte ordering: little endian

Refresher build options:
+ Retexturing support
- Gamma via X11
Refresh: Yamagi Quake II OpenGL Refresher
Input shut down.
Cmd_RemoveCommand: modellist not added
Cmd_RemoveCommand: screenshot not added
Cmd_RemoveCommand: imagelist not added
Cmd_RemoveCommand: gl_strings not added
recursive shutdown



It seems like this time it's smart enough to detect a recursive shutdown where it just says "recursive shutdown" instead of crashing and dumping.  Thanks again for your guidance.

Offline

#9 2014-09-11 16:37:20

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Relationship between SDL and Xorg?

First of all, please use "code" tags around your output on the forums. wink

The output looks great. It looks like you have the correct video driver installed and accelerated 3D graphics is working correctly. Is that the case?

Does this mean your hardware / video issues are resolved? Is this now a question about getting Quake to run?

Offline

#10 2014-09-11 16:46:36

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Re: Relationship between SDL and Xorg?

Edit:

Do you know of some 3d tech-demo type thing I could grab with pacman and try to run it?  I'm thinking it'd be nice if I could isolate just the 3d capability and test just that before proceeding.  Maybe an opengl screensaver?   Edit-Edit:  I've discovered glxgears and it works perfectly!

Also, sorry about the code thing,I just figured it out.

/Edit


Perhaps it is working but still just having audio/gamedata issues...particularly when it comes to finding the audio device(s)

------- sound initialization -------
LoadLibrary(libopenal.so.1)
...opening OpenAL device:ERROR: OpenAL failed to initialize.
Starting SDL audio callback.
SDL audio driver is "alsa".
SDL_OpenAudio() failed: ALSA: Couldn't open audio device: No such file or directory
----- refresher initialization -----
Input initialized.
Byte ordering: little endian

Is there a preliminary configuration I need to do with OpenAL/OSS/Alsa?  I don't understand the relationship between those three things, I'm not sure if they're dependent on one another or if they're independent.


Refresher build options:
+ Retexturing support
- Gamma via X11
Refresh: Yamagi Quake II OpenGL Refresher
Input shut down.
Cmd_RemoveCommand: modellist not added
Cmd_RemoveCommand: screenshot not added
Cmd_RemoveCommand: imagelist not added
Cmd_RemoveCommand: gl_strings not added
recursive shutdown

For these I think I need to move the game data files into the right directories....it's just weird because I'm not entirely sure where my AUR quake2 install actually resides...I think it ended up in /home/vsteve/ but I don't know how it all worked, or if it's all centralized in one spot.  I did immediately notice that yamagi-quake2 is now part of my path variable, so I can execute it from anywhere.  I need to hunt down where path variable data is stored in Arch.


Thanks again!

Last edited by volumetricsteve (2014-09-11 23:02:41)

Offline

#11 2014-09-12 12:23:48

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Relationship between SDL and Xorg?

volumetricsteve wrote:

Do you know of some 3d tech-demo type thing I could grab with pacman and try to run it?

Install "extremetuxracer"! Then start it with "etr". big_smile

Is there a preliminary configuration I need to do with OpenAL/OSS/Alsa?

Does your computer play sounds (like, MP3 or video files)? If yes, then audio is all setup.

For these I think I need to move the game data files into the right directories....it's just weird because I'm not entirely sure where my AUR quake2 install actually resides...I think it ended up in /home/vsteve/ but I don't know how it all worked, or if it's all centralized in one spot.  I did immediately notice that yamagi-quake2 is now part of my path variable, so I can execute it from anywhere.  I need to hunt down where path variable data is stored in Arch.

Use "pacman -Ql yamagi-quake2" to see what was installed and where it was installed to. It should very much NOT be in your home directory. tongue

As for the data files, do the comments on the AUR page for that package help? The most recent comment should show you were the data files should go.

Offline

#12 2014-09-12 14:47:17

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Re: Relationship between SDL and Xorg?

I discovered glxgears, but I do miss tuxracer smile

My computer plays no sound, i'm not sure that I even get PC speaker beeps. 

Interesting about the install directory...I'll have to fix that.  Is there any reason I shouldn't just move it all to /q2 ?  (placing it in the root directory)

This will eventually be used to build a system that *only* plays quake 2, essentially for an arcade machine, so there are really no major concerns of security or most desktop considerations.  Once I get everything to work, I'll start stripping down what I don't need.  Thanks again!

Offline

#13 2014-09-12 15:15:59

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Relationship between SDL and Xorg?

volumetricsteve wrote:

My computer plays no sound, i'm not sure that I even get PC speaker beeps.

This issue is getting pretty... wide. I think I'd recommend starting a new thread for sound issues (with all the relevant hardware and configuration notes).

Interesting about the install directory...I'll have to fix that.  Is there any reason I shouldn't just move it all to /q2 ?  (placing it in the root directory)

This confuses me. If you installed in from the AUR then there shouldn't be anything to fix. Did you do a proper AUR installation? It involves two steps: first, use the "makepkg" command to download and compile everything into a package, and second, using "pacman" to install the package.

To answer your question more specifically, is there any reason you SHOULD move it all to "/q2"? Just let pacman take care of all the files for you!

Offline

#14 2014-09-12 17:02:15

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Re: Relationship between SDL and Xorg?

I agree about the sound issues, I'll open a new thread for that one.  Do you think I just need to post lspci for that one?  Do you suggest posting any other specific items?


I did install it from AUR and followed the package instructions to the letter...I think...  I'd just move it to /q2 for simplicity's sake and trying to shorten paths.
The thing with the install for this is..it didn't give me an output path.  I recall it just told me it was done, and now 'yamagi-quake2' is part of my path variable, so it opens no matter where I am.  I just have more to hunt down, I suspect trying to compile it from source on my own with no experience likely put something in the wrong place, so then when I redid it with the AUR package, some mistake I made is lingering. 

Thanks again for your help!

Offline

#15 2014-09-12 18:19:18

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Relationship between SDL and Xorg?

volumetricsteve wrote:

The thing with the install for this is..it didn't give me an output path.  I recall it just told me it was done, and now 'yamagi-quake2' is part of my path variable, so it opens no matter where I am.

Of course you can run it from anywhere. The AUR package installed it in "/usr/bin". It also installed a nice icon, so if you used something like KDE or GNOME you can just click on it from the Applications menu. smile

Offline

#16 2014-09-13 16:05:50

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Re: Relationship between SDL and Xorg?

You are truly the bees knees, thanks for all your help, once I get back from vacation I'll chip away at the audio issues in another thread.  Thanks again!

Offline

Board footer

Powered by FluxBB