PINE64
Could not initialize OpenGL support - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: Could not initialize OpenGL support (/showthread.php?tid=18992)



Could not initialize OpenGL support - jojuma - 01-05-2024

I get the error named in "subject" above when trying to play a .mp4 file with the preinstalled video player.

Though I can use Clapper to watch these files, I'd like to learn and understand, what the problem here is. Is it app related or is it an OS issue?
Maybe someone can give me a short explanation?

Thanks!


RE: Could not initialize OpenGL support - anonymous - 01-17-2024

Hello

Personally, I use VLC which is far better (more reliable, supports many formats). The PinePhone should support OpenGL-ES flawlessly.


RE: Could not initialize OpenGL support - baptx - 07-03-2024

It looks like the app is trying to use hardware acceleration by default, which is not supported,.
Someone shared a workaround here:
https://www.reddit.com/r/pinephone/comments/vidy4c/help_with_running_opengl_applications/

You can start Phosh default video player like this:
LIBGL_ALWAYS_SOFTWARE=1 totem


RE: Could not initialize OpenGL support - Kevin Kofler - 07-03-2024

Well, OpenGL hardware acceleration is supported by the PinePhone. Video hardware acceleration is to some extent in some applications. But LIBGL_ALWAYS_SOFTWARE only turns off OpenGL hardware acceleration and does not touch video hardware acceleration at all. If that fixes your problem, you are running into a bug in the OpenGL driver (or in the application, e.g., it might assume an optional OpenGL extension to always be available), not a hardware limitation.


RE: Could not initialize OpenGL support - baptx - 07-05-2024

(07-03-2024, 09:15 PM)Kevin Kofler Wrote: Well, OpenGL hardware acceleration is supported by the PinePhone. Video hardware acceleration is to some extent in some applications. But LIBGL_ALWAYS_SOFTWARE only turns off OpenGL hardware acceleration and does not touch video hardware acceleration at all. If that fixes your problem, you are running into a bug in the OpenGL driver (or in the application, e.g., it might assume an optional OpenGL extension to always be available), not a hardware limitation.

It looks like the PinePhone only supports OpenGL ES 2.0 like mentioned here:
https://forum.pine64.org/showthread.php?tid=16710

And when forcing totem to use hardware acceleration with "GDK_GL=gles", there is an error saying it requires OpenGL ES 3.0:
https://salsa.debian.org/Mobian-team/devices/pinephone-tweaks/-/issues/3#note_504360


RE: Could not initialize OpenGL support - Kevin Kofler - 07-08-2024

The video driver used on the PinePhone actually supports desktop OpenGL 2.0 as well. Functionality which is not part of OpenGL ES will get little to no acceleration from the GPU (because the hardware was built with only OpenGL ES in mind), but the driver is supposed to handle it, e.g., Qt compiled (this is unfortunately a compile-time-only choice in Qt) for desktop OpenGL just works (which is why Manjaro ARM no longer ships the custom Qt GLES builds they used to ship, relying instead of the standard Arch Linux ARM Qt builds built for desktop OpenGL). I do not know what Totem is doing that crashes the driver, but it is either a bug in the driver or in Totem (or the libraries Totem uses, such as GTK/GDK).

If you are running Mobian stable, chances are the bug you are running into was fixed upstream eons ago. Mobian stable is a really really old distribution by mobile GNU/Linux standards.


RE: Could not initialize OpenGL support - biketool - 09-14-2024

I feel like non-systemic use of video acceleration is one of the reasons the PP and PPp burn some much electricity. a base mobian load with no apps running pulls 3amps from the battery!!