Linux Kodi on Wayland (2020 edition)
#1
Hi, all,
I've been through some years old posts regarding running Kodi on Wayland and there are some hints out there suggesting that it is possible.
I have run Kodi standalone on X11 for a while with some hiccups and am testing Wayland as I have a little bit of time to do so.

Version is 18.7, Linux distro is Gentoo, hardware is a bit old (Intel Core 2 Duo, Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller).

While it all compiles successfully, my compositor (Hikari) works and everything else (e.g., mesa with egl) seems to be ok, I cannot launch Kodi, which fails with the following:
Code:
ERROR: Unable to create GUI. Exiting

The relevant bits in the logs are (ignore dates please, this is before NTP sync'ed, but the same is observed even with correct date/time):
Code:

2001-01-01 00:01:55.427 T:140149805861312  NOTICE: EGL_VERSION = 1.4
2001-01-01 00:01:55.427 T:140149805861312  NOTICE: EGL_VENDOR = Mesa Project
2001-01-01 00:01:55.427 T:140149805861312  NOTICE: EGL_EXTENSIONS = EGL_EXT_buffer_age EGL_EXT_swap_buffers_with_damage EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_KHR_swap_buffers_with_damage EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_query_driver EGL_WL_bind_wayland_display EGL_WL_create_wayland_buffer_from_image
2001-01-01 00:01:55.427 T:140149805861312  NOTICE: EGL_CLIENT_EXTENSIONS = EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless EGL_EXT_platform_device
2001-01-01 00:01:55.428 T:140149805861312  NOTICE: Checking resolution 16
2001-01-01 00:01:55.436 T:140149805861312   ERROR: EGL context creation failed
2001-01-01 00:01:55.436 T:140149805861312   FATAL: CApplication::Create: Unable to create window

eglinfo reports that EGL is compiled in, and shows info for X11 and Wayland, but I'm not sure what Kodi needs exactly, and am not familiar enough with EGL to figure it out from the code.
Starting Kodi with -d yields the same result, but I can't see any extra debugging in the code when the EGL context is requested.

Can anybody think what I'm missing? I may be hitting a hardware limitation too, but I haven't seen this in Kodi's wiki.

Thanks!


Gabriel
Reply
#2
(2020-06-17, 17:30)gabrielidok Wrote: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller
It's a hardware limitation. Your GPU is too old. That GPU only supports up to OpenGL 1.4. Kodi needs OpenGL 2.0+. See wiki. Look at Graphics under Linux.
Reply
#3
(2020-06-17, 18:24)yasij Wrote:
(2020-06-17, 17:30)gabrielidok Wrote: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller
It's a hardware limitation. Your GPU is too old. That GPU only supports up to OpenGL 1.4. Kodi needs OpenGL 2.0+. See wiki. Look at Graphics under Linux.
Thanks a lot for clarifying! Back to old X11 then.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi on Wayland (2020 edition)0