Kodi Error - Kodi not starting

A reboot is required when the display driver is switched:

/boot/dietpi/func/dietpi-set_hardware rpi-opengl vc4-kms-v3d
reboot
# after reboot
startkodi

After reboot I tried to connect via ssh to the local machine. The following code was shown:

ssh root@192.168.178.40
ssh: connect to host 192.168.178.40 port 22: No route to host

I can not connect anymore.

Also the Pihole and Nginx Server are unreachable. This is not funny.

You have a screen that could be attached to see what happens?

Okay. Server works now.

startkodi
failed to open zone.tab
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 1.10.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

Screen shows only blank screen. Seems to be no connection from Kodi.

Did you already tried to set Kodi as autostart option? Do you have any HDMI output while the Pi is booting or is the screen staying black? Usually you should see the command line, even without Kodi. Isn’t it?

I will try tomorrow.

Okay, I can now see Kodi on the screen.

How can I connect via the kodi remote app to Kodi app? Maybe I need a port number?

I researched a bit. Port 8080 should the right one? But the manually connection and the automatically connection not working.

This is because Kodi changed the default webserver settings to be more secure, and since v19 web server is disabled by default. You simply need to activate the web server settings to permit remote control and to access Kodi.

To do that go to Settings > Services > Control and either confirm that you want to allow external access to the web server without authentication and password (it will warn against this) or enter a password, and then enable allow remote control via HTTP.

Where and how to do? I can not connect to Kodi via App remote.

connect a mouse to your Pi and use it to navigate in Kodi

Yes, you are right. :rofl: :roll_eyes:

Hi guys,

I just got a PI 400 (as my daughter doesn’t like it :roll_eyes: ) so I plan to reinstall it with Kodi, so we can have a mediacenter plugged on the TV.
I already have two PI with dietpi installed: a PI3 with 32bits version for pihole and a PI4 with 64bits for Rocket.chat and nextcloud) and it is working just great.

Can you please tell me if I can now install the PI 400 with dietpi 64 bits and set kodi to autostart?
Cheers

theoretically it should work.

When using the current beta or DietPi v7.9 after its release at December 11, you will get an even better experience with the new Kodi build from the RPi firmware engineers :slight_smile:.