Kodi Error

Good evening. I took some of the ideas for a spin:

  • Installed DietPI ARM64 on a new card. Kodi Autostart works fine but only as root. If I remember correctly it says something like /dev/tty0 permission denied during xinit() for dietpi user.
  • I also did not get CEC-Module (TV remote to control Kodi) working. Historically, such issues have been resolved by unplugging pi & TV for 10 minutes. Did not get the chance to test myself but suggest to the user above who had the same issue.

Back to ARMv7 (Dietpi 32bit):

  • Tried running Kodi from autostart as root on arm32. Still the same problem.
  • Tried starting up as normal, and then switch the HDMI cable to port 2 when the Libva message occur. Nothing on the TV.
  • Tried vcgenmod display_power 0 7. from terminal and restart Kodi. Same issue.
  • Tried hdmi_ignore_hotplug:1=0 and hdmi_force_hotplug:0=1 in /boot/config.txt. Same issue.

While it has been an unsuccessful day, it is good to see it nothing wrong with my particular dietpi installation as other are experiencing the same problem.

A bit on the side. Is It worth changing to the ARM64 image for my RPI4 4GB? I did a extensive backup this morning in case it was my DietPi it was something wrong with, and it appeals to make the shift now when everything is ready and setup.

usually there is no real benefit of 64bit over 32bit.

Good evening,

Just for clarification although I have a Pi3 and a Pi4 I am running Kodi on the Pi3. I have not tried running Kodi on my Pi4 although if it helps for testing I can because I backed it up only this morning and wiped the SD card for a fresh install of Bullseye. I decided to take the fresh install approach and reconfig/restore files manually rather than try and update to Bullseye.

So on my Pi3 (which I also wiped and installed Bullseye) I do get an error message when loading Kodi but its interface is displayed on the TV. I have not yet tried to play any video yet as I am unable to get the TV controller to work with Kodi, this was working prior to installing Bullseye.

Exatic Thanks for the tip about unplugging the pi & TV for 10 minutes I will give this a try. It is probably just some setting I have set wrong but you never know it is worth a go. As for switching to 64bit, personally on my Pi4 (8 gig) I am taking the advice of DietPi support (Joulinar) along with MichaIng and sticking with 32bit at least until there is a stable final release of Raspberry Pi OS.

ISquishWorms.

Same error here. I did a fresh install.

  • RPI 4 (8GB)
  • ARMv7 32-bit image (bullseye)

I tried a fresh install using ARMv8 64-bit image and Kodi worked. However, CEC doesn’t work and we know 32-bit is more stable.

I have been using DietPi arm7 (buster) for a year and I have zero problems. I decided to upgrade to the bullseye, and I can’t run Kodi anymore. Feeling that regret… :cry:

it doesn’t make sense to post the same into 2 different topics, even if we have multiple of them open.

Hello I cant get Kodi working. I installed it via the dietpi-config script and when I try to launch it it just says ā€œerror: unable to create GUIā€

I am running a fresh install of dietpi on a raspberry pi4, connected to hdmi 1 (if I plug into hdmi0 I dont see a picture at all)

I ran commands like I saw earlier in this thread to get some info. This is all off a fresh install. If Kodi doesnt work from a fresh install I guess I will have to leave dietpi as I am trying to setup a kodi box

root@DietPi:~# kodi
ERROR: Unable to create GUI. Exiting
root@DietPi:~# apt policy kodi
kodi:
  Installed: 3:19.1-dietpi3
  Candidate: 3:19.1-dietpi3
  Version table:
 *** 3:19.1-dietpi3 100
        100 /var/lib/dpkg/status
     2:19.3-1~bullseye 500
        500 https://archive.raspberrypi.org/debian bullseye/main armhf Packages
root@DietPi:~# apt policy kodi-bin
kodi-bin:
  Installed: (none)
  Candidate: 2:19.3-1~bullseye
  Version table:
     2:19.3-1~bullseye 500
        500 https://archive.raspberrypi.org/debian bullseye/main armhf Packages
root@DietPi:~# startkodi
ERROR: Unable to create GUI. Exiting
root@DietPi:~#

Hi,

you could try following

/boot/dietpi/func/dietpi-set_hardware rpi-opengl vc4-fkms-v3d
reboot

and afterwards

echo 'deb https://archive.raspberrypi.org/debian/ bullseye main untested' > /etc/apt/sources.list.d/raspi.list
apt update
apt install --reinstall --allow-downgrades kodi

The ā€œuntestedā€ repository is not required anymore as the build has been moved to the regular RPi repository now. Als full KMS ā€œvc4-kms-v3dā€ should be working and recommended now.

Please try it with the DietPi v7.9 beta: https://github.com/MichaIng/DietPi/issues/5019
It installs the new RPi Kodi build on all architectures, enables full KMS and 4k support on RPi 4 (increased CMA size). So after applying the beta, you can reinstall Kodi to apply the new one:

dietpi-software reinstall 31

The ā€œunable to create GUIā€ e.g. shows up when the same screen is already used by another application. E.g. our build could not start from desktop for this reason. The RPi Kodi build works around this by switching to a different display/TTY.

Similar problem here: I wanted to install kodi on my RP 4b/Waveshare DSI 5" display with DietPi 8.8. The first setup steps are allright, then I install kodi via dietpi-software and set it to autolaunch as user root. However, on rebooting I get the error as above: Unable to create GUI. Exiting.
The display is working, the CLI is displayed and the correct resolution (800x480) is entered via dietpi-config.

Anything else I could try?

did you already tried to switch between vc4-fkms-v3d and vc4-kms-v3d?

/boot/dietpi/func/dietpi-set_hardware rpi-opengl vc4-fkms-v3d
reboot

or

/boot/dietpi/func/dietpi-set_hardware rpi-opengl vc4-kms-v3d
reboot
1 Like

Yes, after rebooting three times while changing the video mode it finally worked and kodi started in the touchscreen. Thanks!