TRyan
Posts: 13
Joined: Thu Mar 26, 2015 7:27 am

Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 6:41 am

Hi,
I make a fresh install with raspbian-stretch-lite and install the PIXEL Desktop.
Everything is working fine, but I am not able to activate the OpenGL driver.

I install: xcompmgr libgl1-mesa-dri

Memory Split =256

glxgears looks every time the same.

I make several reboots, but noting change.

Thanks for your help.

Greetings Tobias

cjan
Posts: 737
Joined: Sun May 06, 2012 12:00 am

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 6:55 am

goto raspi-config to enable GL driver.

TRyan
Posts: 13
Joined: Thu Mar 26, 2015 7:27 am

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 7:05 am

Hi,

yes I did that and make a reboot. No change.

Thanks

Tobias

TRyan
Posts: 13
Joined: Thu Mar 26, 2015 7:27 am

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 7:54 am

Hi,

with the image raspbian-stretch with PIXEL there are no problems to enable the OpenGL Driver.

Are there "special" packed that I need?

Greetings Tobias

User avatar
rpiMike
Posts: 963
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 7:59 am

OpenGL is working fine for me on Stretch.

You don't need to install anything - just enable in raspi-config.

If you want glxgears (unless its already installed) use :

Code: Select all

sudo apt-get -y install mesa-utils

TRyan
Posts: 13
Joined: Thu Mar 26, 2015 7:27 am

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 8:12 am

Hi

Thanks for your help.

The Problem is:

image raspbian-stretch with PIXEL -> no problem with the OpenGL

image raspbian-stretch light and additional installed PiXEL -> I can not enable OpenGL

Greetings Tobias

runboy93
Posts: 352
Joined: Tue Feb 28, 2017 1:17 pm
Location: Finland
Contact: Website

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 8:37 am

Atleast now it's using Mesa "13.0.6-1", latest (final release, better move next to closest final release 17.1 branch) 13.x series build.
Last edited by runboy93 on Fri Aug 18, 2017 8:45 am, edited 2 times in total.

fruitoftheloom
Posts: 20934
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 8:40 am

TRyan wrote:
Fri Aug 18, 2017 8:12 am
Hi

Thanks for your help.

The Problem is:

image raspbian-stretch with PIXEL -> no problem with the OpenGL

image raspbian-stretch light and additional installed PiXEL -> I can not enable OpenGL

Greetings Tobias
How did you get the Pixel Desktop ?

It was retired 2 months ago and the standard desktop is Raspberry Pi Desktop:

viewtopic.php?f=63&t=186959
Retired disgracefully.....

TRyan
Posts: 13
Joined: Thu Mar 26, 2015 7:27 am

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 8:49 am

Hi,

thanks for your Help.

I write the raspbian-stretch light image on SDkarte

For the PIXEL GUI I installed:
sudo apt-get install --no-install-recommends xserver-xorg
sudo apt-get install --no-install-recommends xinit
sudo apt-get install raspberrypi-ui-mods
sudo apt-get install --no-install-recommends raspberrypi-ui-mods lxterminal gvfs

@runboy93
Sorry, but how can I install the 17.1 from Mesa?

Thanks for your Help.

Greetings Tobias

runboy93
Posts: 352
Joined: Tue Feb 28, 2017 1:17 pm
Location: Finland
Contact: Website

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 8:51 am

TRyan wrote:
Fri Aug 18, 2017 8:49 am
@runboy93
Sorry, but how can I install the 17.1 from Mesa?

Thanks for your Help.

Greetings Tobias
No no, don't yet move to 17.1. Wait until it's released via Raspberry Pi apts.

fruitoftheloom
Posts: 20934
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 8:54 am

TRyan wrote:
Fri Aug 18, 2017 8:49 am
Hi,

thanks for your Help.

I write the raspbian-stretch light image on SDkarte

For the PIXEL GUI I installed:
sudo apt-get install --no-install-recommends xserver-xorg
sudo apt-get install --no-install-recommends xinit
sudo apt-get install raspberrypi-ui-mods
sudo apt-get install --no-install-recommends raspberrypi-ui-mods lxterminal gvfs

@runboy93
Sorry, but how can I install the 17.1 from Mesa?

Thanks for your Help.

Greetings Tobias
THAT IS NOT PIXEL DESKTOP, PLEASE READ THE LINK I POSTED :lol:
Retired disgracefully.....

TRyan
Posts: 13
Joined: Thu Mar 26, 2015 7:27 am

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 9:04 am

Sorry I am a little bit confused. :?

Maybe is better to say what I need:

Raspbian Stretch Lite with a Desktop and OpenGL support.



The Image Raspbian Stretch with desktop has to many programs, that I don't need

Thanks for your help.

Greetings

Tobias

fruitoftheloom
Posts: 20934
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 9:26 am

TRyan wrote:
Fri Aug 18, 2017 9:04 am
Sorry I am a little bit confused. :?

Maybe is better to say what I need:

Raspbian Stretch Lite with a Desktop and OpenGL support.



The Image Raspbian Stretch with desktop has to many programs, that I don't need

Thanks for your help.

Greetings

Tobias
You keep mentioning PIXEL Desktop that is confusing as there is no PIXEL Desktop as it no longer exists ;)
Retired disgracefully.....

TRyan
Posts: 13
Joined: Thu Mar 26, 2015 7:27 am

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 10:35 am

hmm... okay.

then I will use the Raspbian Stretch with desktop image for the Raspbbery Pi and delete everything that I don't use.

Thanks for your help

Greetings Tobias

fruitoftheloom
Posts: 20934
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspbian stretch No OpenGL driver

Fri Aug 18, 2017 10:50 am

TRyan wrote:
Fri Aug 18, 2017 10:35 am
hmm... okay.

then I will use the Raspbian Stretch with desktop image for the Raspbbery Pi and delete everything that I don't use.

Thanks for your help

Greetings Tobias
You seem not to be comprehending that you are calling the Desktop PIXEL when IT IS NOT PIXEL !
Retired disgracefully.....

loopmasta
Posts: 6
Joined: Fri Jan 20, 2012 3:02 pm

Re: Raspbian stretch No OpenGL driver

Sat Sep 02, 2017 3:30 pm

Hi Tobias,

I am having a similar problem. I am using 2017-08-16-raspbian-stretch.img and removed most of the desktop apps that I don't use.
Glxgears runs with 60FPS but I can not get webGl working in chromium. raspi-config does not seem to react to any GL-driver changes.
I added my glxinfo below.

glxinfo
name of display: :0.0
libGL error: MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
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_create_context_es_profile,
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_libglvnd, 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_make_current_read, 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_create_context_es_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_buffer_age,
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_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
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Broadcom (0x14e4)
Device: VC4 V3D 2.1 (0xffffffff)
Version: 13.0.6
Accelerated: yes
Video memory: 875MB
Unified memory: yes
Preferred profile: compat (0x2)
Max core profile version: 0.0
Max compat profile version: 2.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 2.0
OpenGL vendor string: Broadcom
OpenGL renderer string: Gallium 0.4 on VC4 V3D 2.1
OpenGL version string: 2.1 Mesa 13.0.6
OpenGL shading language version string: 1.20
OpenGL extensions:
GL_AMD_shader_trinary_minmax, 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_compressed_texture_pixel_storage,
GL_ARB_copy_buffer, GL_ARB_debug_output, GL_ARB_depth_texture,
GL_ARB_draw_buffers, GL_ARB_draw_elements_base_vertex,
GL_ARB_explicit_attrib_location, GL_ARB_explicit_uniform_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_get_texture_sub_image,
GL_ARB_half_float_pixel, GL_ARB_half_float_vertex,
GL_ARB_internalformat_query, GL_ARB_internalformat_query2,
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_program_interface_query, GL_ARB_provoking_vertex,
GL_ARB_robustness, GL_ARB_sampler_objects, GL_ARB_separate_shader_objects,
GL_ARB_shader_objects, GL_ARB_shading_language_100, GL_ARB_shadow,
GL_ARB_sync, 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_mirrored_repeat,
GL_ARB_texture_multisample, GL_ARB_texture_non_power_of_two,
GL_ARB_texture_rectangle, GL_ARB_texture_storage,
GL_ARB_texture_storage_multisample, GL_ARB_texture_swizzle,
GL_ARB_transpose_matrix, 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_window_pos,
GL_ATI_blend_equation_separate, GL_ATI_draw_buffers,
GL_ATI_fragment_shader, GL_ATI_separate_stencil,
GL_ATI_texture_env_combine3, 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_range_elements, GL_EXT_fog_coord, GL_EXT_framebuffer_blit,
GL_EXT_framebuffer_multisample, GL_EXT_framebuffer_multisample_blit_scaled,
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_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_shader_integer_mix, 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_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_lod_bias, GL_EXT_texture_object,
GL_EXT_texture_rectangle, GL_EXT_texture_sRGB, GL_EXT_texture_sRGB_decode,
GL_EXT_texture_swizzle, GL_EXT_vertex_array, GL_IBM_multimode_draw_arrays,
GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
GL_INGR_blend_func_separate, GL_KHR_context_flush_control, GL_KHR_debug,
GL_MESA_pack_invert, GL_MESA_window_pos, GL_NV_blend_square,
GL_NV_fog_distance, GL_NV_light_max_exponent, GL_NV_packed_depth_stencil,
GL_NV_texgen_reflection, GL_NV_texture_env_combine4,
GL_NV_texture_rectangle, GL_OES_EGL_image, GL_OES_read_format,
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 13.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
GL_APPLE_texture_max_level, GL_EXT_blend_minmax,
GL_EXT_discard_framebuffer, GL_EXT_draw_buffers,
GL_EXT_draw_elements_base_vertex, GL_EXT_map_buffer_range,
GL_EXT_multi_draw_arrays, GL_EXT_read_format_bgra,
GL_EXT_separate_shader_objects, GL_EXT_texture_border_clamp,
GL_EXT_texture_format_BGRA8888, GL_EXT_texture_type_2_10_10_10_REV,
GL_EXT_unpack_subimage, GL_KHR_context_flush_control, GL_KHR_debug,
GL_NV_draw_buffers, GL_NV_fbo_color_attachments, GL_NV_read_buffer,
GL_NV_read_depth, GL_NV_read_depth_stencil, GL_NV_read_stencil,
GL_OES_EGL_image, GL_OES_EGL_image_external, GL_OES_EGL_sync,
GL_OES_compressed_ETC1_RGB8_texture, GL_OES_depth24, GL_OES_depth_texture,
GL_OES_draw_elements_base_vertex, 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_stencil8,
GL_OES_surfaceless_context, GL_OES_texture_3D,
GL_OES_texture_border_clamp, GL_OES_texture_npot,
GL_OES_vertex_array_object

runboy93
Posts: 352
Joined: Tue Feb 28, 2017 1:17 pm
Location: Finland
Contact: Website

Re: Raspbian stretch No OpenGL driver

Sat Sep 02, 2017 5:23 pm

Code: Select all

libGL error: MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
Have you updated / upgraded, and then activated VC4?

loopmasta
Posts: 6
Joined: Fri Jan 20, 2012 3:02 pm

Re: Raspbian stretch No OpenGL driver

Sun Sep 03, 2017 12:58 pm

runboy93 wrote:
Sat Sep 02, 2017 5:23 pm

Code: Select all

libGL error: MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
Have you updated / upgraded, and then activated VC4?
Yes I have updated / upgraded and set the GL drivers in the raspi-config / Advanced Options / GL Driver / to GL (Full KMS).
But webGL in chromium seems to be broken

runboy93
Posts: 352
Joined: Tue Feb 28, 2017 1:17 pm
Location: Finland
Contact: Website

Re: Raspbian stretch No OpenGL driver

Sun Sep 03, 2017 2:21 pm

And you are sure it worked on Jessie build?

Then it could be buggy Chromium (V60 #89, introduced lot of regressions that were mostly fixed on #113), or GL drivers bug on Raspbian Lite. Have you reported this bug on github websites or just here and wait something happen?

https://raspberrypi.stackexchange.com/q ... -on-jessie (for Jessie, but could work on Stretch, if that "--disable-gpu" switch is activated in there and you are trying to use GL drivers)

And I see you are using Lite version of Raspbian (Desktop installed later), and you said that it works with standard Desktop version, why not use it?

Maybe you could include "Lite" to topic header?

And also add screenshot from Chromium page "chrome:gpu", what does it say there?

User avatar
Wayne Keenan
Posts: 14
Joined: Tue Nov 20, 2012 6:01 pm
Location: Cambridge, UK
Contact: Website

Re: Raspbian stretch No OpenGL driver

Sun Oct 29, 2017 3:54 pm

I had the same problem on Stretch (full fat, not Lite) and the chromium on Jessie was working.

After playing with a number of settings in chrome://flags and command line values I found the key to get it to work on Stretch was to:

1. use raspi-config to enable OpenGL (Full KMS)
2. remove "--disable-gpu-compositing'' from /etc/chromium-browser/customizations/00-rpi-var

After that I reset all chrome://flags values to default (the button in the top right of that page) and when launching chromium from the desktop icon (i.e. no user flags) I can see the spinning cube at: https://get.webgl.org

For ref: rpi-update firmware hash is: a6b3e852ca70f2a12850b4542438583cc3b29788

A snippet of output of my [url]chrome://gpu/[/url] is below. The resetting of flags (or something else) changed Video encode/decode from Hardware accelerated to software, so maybe it's possible to get that back to HW Accel.

For my app I also upped the GPU mem split on my Pi3 to 512Mb, ymmv.

Code: Select all

Graphics Feature Status
Canvas: Hardware accelerated
CheckerImaging: Disabled
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Rasterization: Software only. Hardware acceleration disabled
Video Decode: Software only, hardware acceleration unavailable
Video Encode: Software only, hardware acceleration unavailable
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Driver Bug Workarounds
clear_uniforms_before_first_program_use
count_all_in_varyings_packing
decode_encode_srgb_for_generatemipmap
disable_framebuffer_cmaa
disable_post_sub_buffers_for_onscreen_surfaces
scalarize_vec_and_mat_constructor_args

User avatar
Wayne Keenan
Posts: 14
Joined: Tue Nov 20, 2012 6:01 pm
Location: Cambridge, UK
Contact: Website

Re: Raspbian stretch No OpenGL driver

Sun Oct 29, 2017 5:25 pm

I just retested and wanted to share that on a stock 2017-09-07 Stretch ( without 'rpi-update' or 'apt-get update' being run) on a Pi3, then the performing the following steps:

1. use raspi-config to enable OpenGL (Full KMS)
2. remove "--disable-gpu-compositing'' from /etc/chromium-browser/customizations/00-rpi-var

is all you need to do to get the https://get.webgl.org cube spinning.

User avatar
antiriad
Posts: 143
Joined: Sun Nov 17, 2013 7:38 pm
Location: Italy
Contact: Twitter

Re: Raspbian stretch No OpenGL driver

Tue Aug 21, 2018 10:42 pm

Hello,
aside from the fact that PIXEL Desktop is now Raspbian Desktop, it would be useful to know how to activate OpenGL acceleration on Raspbian Stretch LITE with manually-installed UI.

Thanks

Return to “Troubleshooting”