Running kodi with GBM display backend (no X or Wayland)

Currently I am trying to launch kodi from the TTY with: kodi-standalone --windowing=gbm. However I am getting ERROR: Unable to create GUI. Exiting

My user is in the video group. Nothing shows up in the kodi log, and nothing in dmesg either. Is there anybody who has run kodi with GBM as a display backend and got it to work? What is necessary for it to work? As there appears to be no log I don't know what the exact problem even is, so anywhere to look for errors would help too.
 
What graphics cards do you have ? You will need to have a driver that works with drm.
In my case, it is an integrated amd gpu. I was able to go a little further (I guess ?), so it show that it is loading vaapi. but then get stuck.
Looking at the log in dmesg, I see a lot of
drm_gem_plane_helper_prepare_fb: explicit fence not handled
So I guess that we need to have explicit fence handled.
 
Perhaps --windowing is only intended for Linux, at least that's what kodi-standalone help states:
Code:
 % kodi-standalone -h

...

Linux Specific Arguments:
  --windowing=<system>  Select which windowing method to use.
                          Available window systems are: gbm, wayland, x11
 
Currently using the radeonkms module from drm-kmod. I have tried with or without the windowing argument, and in any case I think it should autodetect gbm as a backend if you run it from tty.

What graphics cards do you have ? You will need to have a driver that works with drm.
In my case, it is an integrated amd gpu. I was able to go a little further (I guess ?), so it show that it is loading vaapi. but then get stuck.
Looking at the log in dmesg, I see a lot of

So I guess that we need to have explicit fence handled.
Was there anything special you had to do to get it to find a display backend? Maybe set some permissions or anything?
In any case, it seems like the display backend doesn't handle the events needed anyway, so might need to settle with installing a minimal display server and running it for now.
 
If you still want to try GBM, try adding patch under "files" directory of port from Bug 282659 multimedia/kodi: fix run in GBM mode. Exclude the Makefile diff.

On a Ryzen 7 5700U, running drm-61-kmod (amdgpu), execution of kodi-standalone spammes system console with
Code:
drm_gem_plane_helper_prepare_fb: explicit fence not handled
messages, same as reported by the bug author (comment 6).
 
Alright thanks, just tried it with the patch, and yeah getting the same error.
Hoped to run it through gbm so I could do hdr but seems like it requires some additions in the drm driver, but guess will settle with it through xinit for now.
 
Back
Top