Pi4 gbm needs 'sudo' ?
Posted: Thu Feb 20, 2020 1:04 pm
I am currently updating a program using openGL2 using dispmanx from the pi3 to openGL3 using DRM.
Everything was going generally ok, until I hit a brick wall.
The problem was gbm_surface_lock_front_buffer always returning NULL after eglSwapBuffers.
So after going through the code and checking all the formats, encoder, connectors and resources stuff ( many hours ) I decided to try running as 'sudo'.
Then it worked.
I know the 'make a cup a tea' thing can apply to this, but I was wondering it this is a problem or if I have to run as sudo as a matter of fact.
The opengl2 version could be run without sudo, as a normal user.
This is for a full screen, non X-win framebuffer setup.
Any suggestions?
Everything was going generally ok, until I hit a brick wall.
The problem was gbm_surface_lock_front_buffer always returning NULL after eglSwapBuffers.
So after going through the code and checking all the formats, encoder, connectors and resources stuff ( many hours ) I decided to try running as 'sudo'.
Then it worked.
I know the 'make a cup a tea' thing can apply to this, but I was wondering it this is a problem or if I have to run as sudo as a matter of fact.
The opengl2 version could be run without sudo, as a normal user.
This is for a full screen, non X-win framebuffer setup.
Any suggestions?