{"id":358,"date":"2013-06-20T14:16:31","date_gmt":"2013-06-20T19:16:31","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=358"},"modified":"2013-06-20T14:16:31","modified_gmt":"2013-06-20T19:16:31","slug":"opengl-acceleration-in-debianubuntu","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2013\/06\/20\/opengl-acceleration-in-debianubuntu\/","title":{"rendered":"OpenGL acceleration in Debian\/Ubuntu"},"content":{"rendered":"<p>Getting &#8220;<strong>Error:\u00a0 couldn&#8217;t get an RGB, Double-buffered visual<\/strong>&#8220;?<\/p>\n<p>1) Install video driver<\/p>\n<p>Example:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get install xserver-xorg-video-intel # or whatever nvidia package for your card\r\n<\/pre>\n<p>2) Install OpenGL and related libraries\/tools:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get install libgl1-mesa-dri libgl1-mesa-glx mesa-utils\r\n<\/pre>\n<p>3) Restart X server or restart computer:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo shutdown now -r\r\n<\/pre>\n<p>4) Test acceleration:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nglxgears\r\nglxinfo\r\n<\/pre>\n<p>Sample working output:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nname of display: :0\r\ndisplay: :0  screen: 0\r\ndirect rendering: Yes\r\nserver glx vendor string: SGI\r\nserver glx version string: 1.4\r\nserver glx extensions:\r\n    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,\r\n    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,\r\n    GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGIS_multisample,\r\n    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,\r\n    GLX_INTEL_swap_event\r\nclient glx vendor string: Mesa Project and SGI\r\nclient glx version string: 1.4\r\nclient glx extensions:\r\n    GLX_ARB_create_context, GLX_ARB_create_context_profile,\r\n    GLX_ARB_create_context_robustness, GLX_ARB_framebuffer_sRGB,\r\n    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,\r\n    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB,\r\n    GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer,\r\n    GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,\r\n    GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read,\r\n    GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample,\r\n    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,\r\n    GLX_EXT_texture_from_pixmap, GLX_INTEL_swap_event\r\nGLX version: 1.4\r\nGLX extensions:\r\n    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,\r\n    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,\r\n    GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,\r\n    GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read,\r\n    GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample,\r\n    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,\r\n    GLX_EXT_texture_from_pixmap, GLX_INTEL_swap_event\r\nOpenGL vendor string: Intel Open Source Technology Center\r\nOpenGL renderer string: Mesa DRI Intel(R) 915GM x86\/MMX\/SSE2\r\nOpenGL version string: 1.4 Mesa 9.1.3\r\nOpenGL extensions:\r\n    GL_ARB_multisample, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,\r\n    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_copy_texture,\r\n    GL_EXT_polygon_offset, GL_EXT_subtexture, GL_EXT_texture_object,\r\n    GL_EXT_vertex_array, GL_EXT_compiled_vertex_array, GL_EXT_texture,\r\n    GL_EXT_texture3D, GL_IBM_rasterpos_clip, GL_ARB_point_parameters,\r\n    GL_EXT_draw_range_elements, GL_EXT_packed_pixels, GL_EXT_point_parameters,\r\n    GL_EXT_rescale_normal, GL_EXT_separate_specular_color,\r\n    GL_EXT_texture_edge_clamp, GL_SGIS_generate_mipmap,\r\n    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,\r\n    GL_SGIS_texture_lod, GL_ARB_multitexture, GL_IBM_multimode_draw_arrays,\r\n    GL_IBM_texture_mirrored_repeat, GL_3DFX_texture_compression_FXT1,\r\n    GL_ARB_texture_cube_map, GL_ARB_texture_env_add, GL_ARB_transpose_matrix,\r\n    GL_EXT_blend_func_separate, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,\r\n    GL_EXT_secondary_color, GL_EXT_texture_env_add,\r\n    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,\r\n    GL_INGR_blend_func_separate, GL_NV_blend_square, GL_NV_light_max_exponent,\r\n    GL_NV_texgen_reflection, GL_NV_texture_env_combine4, GL_S3_s3tc,\r\n    GL_SUN_multi_draw_arrays, GL_ARB_texture_border_clamp,\r\n    GL_ARB_texture_compression, GL_EXT_framebuffer_object,\r\n    GL_EXT_texture_compression_s3tc, GL_EXT_texture_env_combine,\r\n    GL_EXT_texture_env_dot3, GL_MESA_window_pos, GL_NV_packed_depth_stencil,\r\n    GL_NV_texture_rectangle, GL_ARB_depth_texture, GL_ARB_shadow,\r\n    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,\r\n    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,\r\n    GL_ARB_window_pos, GL_EXT_stencil_two_side, GL_EXT_texture_cube_map,\r\n    GL_APPLE_packed_pixels, GL_APPLE_vertex_array_object, GL_ARB_draw_buffers,\r\n    GL_ARB_fragment_program, GL_ARB_fragment_shader, GL_ARB_shader_objects,\r\n    GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ATI_draw_buffers,\r\n    GL_ATI_texture_env_combine3, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,\r\n    GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_ARB_half_float_pixel,\r\n    GL_ARB_point_sprite, GL_ARB_shading_language_100, GL_ARB_sync,\r\n    GL_ARB_texture_non_power_of_two, GL_ARB_vertex_buffer_object,\r\n    GL_ATI_blend_equation_separate, GL_EXT_blend_equation_separate,\r\n    GL_OES_read_format, GL_ARB_pixel_buffer_object, GL_ARB_texture_rectangle,\r\n    GL_EXT_pixel_buffer_object, GL_EXT_texture_compression_dxt1,\r\n    GL_EXT_texture_rectangle, GL_ARB_framebuffer_object,\r\n    GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,\r\n    GL_EXT_packed_depth_stencil, GL_APPLE_object_purgeable,\r\n    GL_ARB_vertex_array_object, GL_ATI_separate_stencil,\r\n    GL_EXT_gpu_program_parameters, GL_OES_EGL_image, GL_ARB_copy_buffer,\r\n    GL_ARB_map_buffer_range, GL_EXT_separate_shader_objects,\r\n    GL_ARB_ES2_compatibility, GL_ARB_debug_output,\r\n    GL_ARB_draw_elements_base_vertex, GL_ARB_explicit_attrib_location,\r\n    GL_ARB_provoking_vertex, GL_ARB_sampler_objects, GL_EXT_provoking_vertex,\r\n    GL_ARB_get_program_binary, GL_ARB_robustness,\r\n    GL_ANGLE_texture_compression_dxt3, GL_ANGLE_texture_compression_dxt5,\r\n    GL_ARB_internalformat_query, GL_ARB_texture_storage,\r\n    GL_ARB_invalidate_subdata\r\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>Getting &#8220;Error:\u00a0 couldn&#8217;t get an RGB, Double-buffered visual&#8220;? 1) Install video driver Example: 2) Install OpenGL and related libraries\/tools: 3) Restart X server or restart computer: 4) Test acceleration: Sample working output:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[831,29,830],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/358"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=358"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/358\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=358"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}