zockz
Posts: 2
Joined: Wed Dec 13, 2017 8:26 am

Re: [Guide] Kodi on Raspbian Stretch

Wed Dec 13, 2017 9:12 am

I feel like I'm missing something trivial here, but it's driving me nuts...

Background: I updated my Raspbian based system (on a Raspi 2) to stretch a couple of days ago. In the past I've been using the piplware build of kodi (ancient 14.x version iirc) for quite some time without any problems. I'm using multiple kodi installations with a central MYSQL database, so I have to keep the versions (not all raspbian based) in sync. Now reading that 17.x versions should be usable out of the box I finally decided to upgrade.

Now on stretch I'm getting kodi version 2:17.1+dfsg1-3 (testing has 2:17.3+dfsg1-2+b1 but that doesn't change anything). It seems to me like this is no Raspberry specific build, but the standard OpenGL based build. I'm getting these errors:

Code: Select all

09:49:39.590 T:1842937872   ERROR: Failed to choose a config 12288
09:49:39.595 T:1842937872   ERROR: Failed to query native visual id
09:49:39.595 T:1842937872   ERROR: Failed to find matching visual
09:49:39.595 T:1842937872  NOTICE: GL_VENDOR = NULL
09:49:39.595 T:1842937872  NOTICE: GL_RENDERER = NULL
09:49:39.595 T:1842937872  NOTICE: GL_VERSION = NULL
09:49:39.596 T:1842937872  NOTICE: GL_SHADING_LANGUAGE_VERSION = NULL
09:49:39.596 T:1842937872  NOTICE: GL_EXTENSIONS = NULL
09:49:39.597 T:1842937872   ERROR: GL: Error compiling vertex shader
with lots of similar shader errors to follow.

My apt sources.list only has this line:

Code: Select all

deb http://archive.raspbian.org/raspbian stretch main contrib non-free rpi
I really don't feel compiling kodi myself or downgrading everything again. The piplware build is also broken, it doesn't find some GLES library,
which leads me to believe that the problem is somewhere deeper down. But still, shouldn't there be a more recent version of kodi on the repo? Madison also only shows 17.1 (17.3 on testing).

What am I doing wrong?

Rascas
Posts: 403
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: [Guide] Kodi on Raspbian Stretch

Wed Dec 13, 2017 10:33 am

zockz wrote:
Wed Dec 13, 2017 9:12 am
I feel like I'm missing something trivial here, but it's driving me nuts...

Background: I updated my Raspbian based system (on a Raspi 2) to stretch a couple of days ago. In the past I've been using the piplware build of kodi (ancient 14.x version iirc) for quite some time without any problems. I'm using multiple kodi installations with a central MYSQL database, so I have to keep the versions (not all raspbian based) in sync. Now reading that 17.x versions should be usable out of the box I finally decided to upgrade.

Now on stretch I'm getting kodi version 2:17.1+dfsg1-3 (testing has 2:17.3+dfsg1-2+b1 but that doesn't change anything). It seems to me like this is no Raspberry specific build, but the standard OpenGL based build. I'm getting these errors:

Code: Select all

09:49:39.590 T:1842937872   ERROR: Failed to choose a config 12288
09:49:39.595 T:1842937872   ERROR: Failed to query native visual id
09:49:39.595 T:1842937872   ERROR: Failed to find matching visual
09:49:39.595 T:1842937872  NOTICE: GL_VENDOR = NULL
09:49:39.595 T:1842937872  NOTICE: GL_RENDERER = NULL
09:49:39.595 T:1842937872  NOTICE: GL_VERSION = NULL
09:49:39.596 T:1842937872  NOTICE: GL_SHADING_LANGUAGE_VERSION = NULL
09:49:39.596 T:1842937872  NOTICE: GL_EXTENSIONS = NULL
09:49:39.597 T:1842937872   ERROR: GL: Error compiling vertex shader
with lots of similar shader errors to follow.

My apt sources.list only has this line:

Code: Select all

deb http://archive.raspbian.org/raspbian stretch main contrib non-free rpi
I really don't feel compiling kodi myself or downgrading everything again. The piplware build is also broken, it doesn't find some GLES library,
which leads me to believe that the problem is somewhere deeper down. But still, shouldn't there be a more recent version of kodi on the repo? Madison also only shows 17.1 (17.3 on testing).

What am I doing wrong?
I think you are missing the raspberrypi.org apt source, which is where the Kodi packages are. To correctly upgrade from Jessie to Stretch follow this:
https://www.raspberrypi.org/blog/raspbian-stretch/

After that just follow the instructions on the first post.

PS: The PiPplware build doesn't work on stretch probably because you still had the jessie repo also, not the stretch one.

zockz
Posts: 2
Joined: Wed Dec 13, 2017 8:26 am

Re: [Guide] Kodi on Raspbian Stretch

Wed Dec 13, 2017 1:51 pm

Rascas wrote: I think you are missing the raspberrypi.org apt source, which is where the Kodi packages are. To correctly upgrade from Jessie to Stretch follow this:
https://www.raspberrypi.org/blog/raspbian-stretch/

After that just follow the instructions on the first post.

PS: The PiPplware build doesn't work on stretch probably because you still had the jessie repo also, not the stretch one.
You're right, that was it... Cheers mate!

I missed that bit. Has been some time when I Installed the Raspi, so I removed everything but the raspbian repo because I couldn't remember what I added them for. Read several howtos and troubleshooting articles, but the raspberypi repo wasn't mentioned anywhere (well, it was in somewhere this post but I ddin't see it's really not raspbian).

I had switched the piplware location to stretch earlier though, and only later I had removed everything except raspbian...

User avatar
NickT
Posts: 272
Joined: Mon May 21, 2012 10:43 am
Location: UK

Re: [Guide] Kodi on Raspbian Stretch

Wed Dec 13, 2017 2:28 pm

I have been unsuccessfully attempting to run kodi on a Raspberry Pi 2 with the latest stretch (download 29-11-17). I have update/dist-upgraded it. I have installed kodi kodi is already the newest version (2:17.6-1~stretch). I am trying to run it only by VNC Viewer ( I have ssh command line interface). I have tried to autostart it and run it from the app menu. I can see it running
ps -e | grep kodi
811 ? 00:00:00 kodi
833 ? 00:01:07 kodi_v7.bin
but there is nothing visible to indicate this. I've also tried kodi-standalone, with the same result - nothing shows.
I had kodi working fine when I installed it under Jessie and I still have that load on a card which shows up fine on my Pi 2. Kodi produces a crashlog if I select the experimental GL driver and only runs with the legacy (3rd option under advanced settings). I installed following this guide. For what it's worth I show the kodi.log below (For some reason I can't add it as an attachment?)

Any ideas as to why I can't see kodi?

14:00:31.266 T:1911095296 NOTICE: special://profile/ is mapped to: special://masterprofile/
14:00:31.267 T:1911095296 NOTICE: -----------------------------------------------------------------------
14:00:31.267 T:1911095296 NOTICE: Starting Kodi (17.6 Git:20171115-d69a54a). Platform: Linux ARM 32-bit
14:00:31.267 T:1911095296 NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
14:00:31.267 T:1911095296 NOTICE: Kodi compiled Nov 23 2017 by GCC 6.3.0 for Linux ARM 32-bit version 4.9.53 (264501)
14:00:31.267 T:1911095296 NOTICE: Running on Raspbian GNU/Linux 9 (stretch), kernel: Linux ARM 32-bit version 4.9.59-v7+
14:00:31.274 T:1911095296 NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
14:00:31.274 T:1911095296 NOTICE: Host CPU: ARMv7 Processor rev 5 (v7l), 4 cores available
14:00:31.274 T:1911095296 NOTICE: ARM Features: Neon enabled
14:00:31.274 T:1911095296 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
14:00:31.274 T:1911095296 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi
14:00:31.274 T:1911095296 NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi/addons
14:00:31.275 T:1911095296 NOTICE: special://masterprofile/ is mapped to: /home/pi/.kodi/userdata
14:00:31.275 T:1911095296 NOTICE: special://envhome/ is mapped to: /home/pi
14:00:31.275 T:1911095296 NOTICE: special://home/ is mapped to: /home/pi/.kodi
14:00:31.275 T:1911095296 NOTICE: special://temp/ is mapped to: /home/pi/.kodi/temp
14:00:31.275 T:1911095296 NOTICE: special://logpath/ is mapped to: /home/pi/.kodi/temp
14:00:31.275 T:1911095296 NOTICE: The executable running is: /usr/lib/arm-linux-gnueabihf/kodi/kodi_v7.bin
14:00:31.275 T:1911095296 NOTICE: Local hostname: kodipistretch
14:00:31.275 T:1911095296 NOTICE: Log File is located: /home/pi/.kodi/temp//kodi.log
14:00:31.275 T:1911095296 NOTICE: -----------------------------------------------------------------------
14:00:31.355 T:1911095296 ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
14:00:31.600 T:1911095296 NOTICE: load settings...
14:00:31.860 T:1911095296 NOTICE: Found 2 Lists of Devices
14:00:31.860 T:1911095296 NOTICE: Enumerated PI devices:
14:00:31.860 T:1911095296 NOTICE: Device 1
14:00:31.861 T:1911095296 NOTICE: m_deviceName : HDMI
14:00:31.861 T:1911095296 NOTICE: m_displayName : HDMI
14:00:31.861 T:1911095296 NOTICE: m_displayNameExtra:
14:00:31.861 T:1911095296 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
14:00:31.861 T:1911095296 NOTICE: m_channels : FL,FR
14:00:31.861 T:1911095296 NOTICE: m_sampleRates : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
14:00:31.862 T:1911095296 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_RAW
14:00:31.862 T:1911095296 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_EAC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_512
14:00:31.862 T:1911095296 NOTICE: Device 2
14:00:31.862 T:1911095296 NOTICE: m_deviceName : Analogue
14:00:31.862 T:1911095296 NOTICE: m_displayName : Analogue
14:00:31.862 T:1911095296 NOTICE: m_displayNameExtra:
14:00:31.862 T:1911095296 NOTICE: m_deviceType : AE_DEVTYPE_PCM
14:00:31.862 T:1911095296 NOTICE: m_channels : FL,FR
14:00:31.862 T:1911095296 NOTICE: m_sampleRates : 48000
14:00:31.862 T:1911095296 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
14:00:31.862 T:1911095296 NOTICE: m_streamTypes : No passthrough capabilities
14:00:31.862 T:1911095296 NOTICE: Device 3
14:00:31.862 T:1911095296 NOTICE: m_deviceName : Both
14:00:31.862 T:1911095296 NOTICE: m_displayName : HDMI and Analogue
14:00:31.862 T:1911095296 NOTICE: m_displayNameExtra:
14:00:31.863 T:1911095296 NOTICE: m_deviceType : AE_DEVTYPE_PCM
14:00:31.863 T:1911095296 NOTICE: m_channels : FL,FR
14:00:31.863 T:1911095296 NOTICE: m_sampleRates : 48000
14:00:31.863 T:1911095296 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
14:00:31.863 T:1911095296 NOTICE: m_streamTypes : No passthrough capabilities
14:00:31.863 T:1911095296 NOTICE: Enumerated ALSA devices:
14:00:31.863 T:1911095296 NOTICE: Device 1
14:00:31.863 T:1911095296 NOTICE: m_deviceName : @
14:00:31.863 T:1911095296 NOTICE: m_displayName : Default (bcm2835 ALSA bcm2835 ALSA)
14:00:31.863 T:1911095296 NOTICE: m_displayNameExtra:
14:00:31.863 T:1911095296 NOTICE: m_deviceType : AE_DEVTYPE_PCM
14:00:31.863 T:1911095296 NOTICE: m_channels : FL,FR
14:00:31.863 T:1911095296 NOTICE: m_sampleRates : 8000,11025,16000,22050,32000,44100,48000
14:00:31.863 T:1911095296 NOTICE: m_dataFormats : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
14:00:31.863 T:1911095296 NOTICE: m_streamTypes : No passthrough capabilities
14:00:31.863 T:1911095296 NOTICE: Device 2
14:00:31.863 T:1911095296 NOTICE: m_deviceName : @:CARD=CD002,DEV=0
14:00:31.863 T:1911095296 NOTICE: m_displayName : CD002
14:00:31.864 T:1911095296 NOTICE: m_displayNameExtra: Analog
14:00:31.864 T:1911095296 NOTICE: m_deviceType : AE_DEVTYPE_PCM
14:00:31.864 T:1911095296 NOTICE: m_channels : FL,FR
14:00:31.864 T:1911095296 NOTICE: m_sampleRates : 48000
14:00:31.864 T:1911095296 NOTICE: m_dataFormats : AE_FMT_S16NE,AE_FMT_S16LE
14:00:31.864 T:1911095296 NOTICE: m_streamTypes : No passthrough capabilities
14:00:31.864 T:1911095296 NOTICE: Device 3
14:00:31.864 T:1911095296 NOTICE: m_deviceName : iec958:CARD=CD002,DEV=0
14:00:31.864 T:1911095296 NOTICE: m_displayName : CD002
14:00:31.864 T:1911095296 NOTICE: m_displayNameExtra: S/PDIF
14:00:31.864 T:1911095296 NOTICE: m_deviceType : AE_DEVTYPE_IEC958
14:00:31.864 T:1911095296 NOTICE: m_channels : FL,FR
14:00:31.864 T:1911095296 NOTICE: m_sampleRates : 48000
14:00:31.864 T:1911095296 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S16NE,AE_FMT_S16LE
14:00:31.864 T:1911095296 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512
14:00:31.887 T:1911095296 NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
14:00:31.887 T:1911095296 NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
<?xml version="1.0" encoding="UTF-8" ?>
<advancedsettings>
<fanartres>720</fanartres>
<imageres>540</imageres>
<video>
<busydialogdelayms>750</busydialogdelayms>
</video>
<samba>
<clienttimeout>30</clienttimeout>
</samba>
<cache>
<memorysize>31457280</memorysize>
</cache>
</advancedsettings>
14:00:31.889 T:1911095296 NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
14:00:31.889 T:1911095296 NOTICE: Default Video Player: VideoPlayer
14:00:31.889 T:1911095296 NOTICE: Default Audio Player: paplayer
14:00:31.889 T:1911095296 NOTICE: Disabled debug logging due to GUI setting. Level 0.
14:00:31.890 T:1911095296 NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
14:00:31.890 T:1911095296 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
14:00:31.892 T:1911095296 NOTICE: Loaded playercorefactory configuration
14:00:31.892 T:1911095296 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
14:00:31.893 T:1911095296 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
14:00:31.988 T:1911095296 NOTICE: Running database version Addons27
14:00:32.539 T:1911095296 NOTICE: ADDONS: Using repository repository.xbmc.org
14:00:32.694 T:1911095296 NOTICE: Raspberry PI firmware version: Oct 24 2017 17:13:32
Copyright (c) 2012 Broadcom
version a3d7660e6749e75e2c4ce4d377846abd3b3be283 (clean) (release)
14:00:32.694 T:1911095296 NOTICE: ARM mem: 864MB GPU mem: 160MB MPG2:0 WVC1:0
14:00:32.694 T:1911095296 NOTICE: cache.memorysize: 30MB libass.cache: 0MB
14:00:32.694 T:1911095296 NOTICE: Config:
arm_freq=900
audio_pwm_mode=1
config_hdmi_boost=5
disable_commandline_tags=2
disable_l2cache=1
enable_uart=1
force_eeprom_read=1
force_pwm_open=1
framebuffer_ignore_alpha=1
framebuffer_swap=1
hdmi_channel_map=8
hdmi_force_cec_address=65535
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=16
init_uart_clock=0x2dc6c00
lcd_framerate=60
over_voltage_avs=0x1b774
over_voltage_avs_boost=0x1cfde
pause_burst_frames=1
program_serial_random=1
sdram_freq=450
temp_limit=85
14:00:32.694 T:1911095296 NOTICE: Config:
device_tree=-
14:00:32.694 T:1911095296 NOTICE: InitWindowSystem: Using EGL Implementation: raspberrypi
14:00:32.701 T:1911095296 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 60.000000 Hz
14:00:32.701 T:1911095296 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 59.940063 Hz
14:00:32.702 T:1911095296 NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 60.000000 Hz
14:00:32.702 T:1911095296 NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 59.940063 Hz
14:00:32.702 T:1911095296 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
14:00:32.702 T:1911095296 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940063 Hz
14:00:32.702 T:1911095296 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
14:00:32.702 T:1911095296 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.940063 Hz
14:00:32.702 T:1911095296 NOTICE: Found ([email protected]) at 18, setting to RES_DESKTOP at 16
14:00:32.702 T:1911095296 NOTICE: Checking resolution 16
14:00:33.029 T:1911095296 NOTICE: GL_VENDOR = Broadcom
14:00:33.029 T:1911095296 NOTICE: GL_RENDERER = VideoCore IV HW
14:00:33.029 T:1911095296 NOTICE: GL_VERSION = OpenGL ES 2.0
14:00:33.029 T:1911095296 NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.00
14:00:33.029 T:1911095296 NOTICE: GL_EXTENSIONS = GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_texture_npot GL_OES_depth24 GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_discard_framebuffer GL_OES_rgb8_rgba8 GL_OES_depth32 GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_APPLE_rgb_422 GL_EXT_debug_marker
14:00:34.658 T:1890579200 NOTICE: Running database version Addons27
14:00:34.665 T:1890579200 NOTICE: Running database version ViewModes6
14:00:34.672 T:1890579200 NOTICE: Running database version Textures13
14:00:34.688 T:1890579200 NOTICE: Running database version MyMusic60
14:00:34.715 T:1890579200 NOTICE: Running database version MyVideos107
14:00:34.724 T:1890579200 NOTICE: Running database version TV29
14:00:34.731 T:1890579200 NOTICE: Running database version Epg11
14:00:34.740 T:1911095296 NOTICE: start dvd mediatype detection
14:00:34.904 T:1773859584 NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001)
14:00:35.680 T:1911095296 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
14:00:36.253 T:1911095296 NOTICE: initialize done
14:00:36.253 T:1911095296 NOTICE: Running the application...
14:00:36.269 T:1911095296 NOTICE: starting zeroconf publishing
14:00:36.269 T:1911095296 NOTICE: starting upnp client
14:00:36.335 T:1628181248 NOTICE: ES: Starting UDP Event server on port 9777
14:00:36.339 T:1628181248 NOTICE: UDP: Listening on port 9777 (ipv6 : false)

Rascas
Posts: 403
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: [Guide] Kodi on Raspbian Stretch

Wed Dec 13, 2017 2:41 pm

NickT wrote:
Wed Dec 13, 2017 2:28 pm
I have been unsuccessfully attempting to run kodi on a Raspberry Pi 2 with the latest stretch (download 29-11-17). I have update/dist-upgraded it. I have installed kodi kodi is already the newest version (2:17.6-1~stretch). I am trying to run it only by VNC Viewer ( I have ssh command line interface). I have tried to autostart it and run it from the app menu. I can see it running
ps -e | grep kodi
811 ? 00:00:00 kodi
833 ? 00:01:07 kodi_v7.bin
but there is nothing visible to indicate this. I've also tried kodi-standalone, with the same result - nothing shows.
I had kodi working fine when I installed it under Jessie and I still have that load on a card which shows up fine on my Pi 2. Kodi produces a crashlog if I select the experimental GL driver and only runs with the legacy (3rd option under advanced settings). I installed following this guide. For what it's worth I show the kodi.log below (For some reason I can't add it as an attachment?)

Any ideas as to why I can't see kodi?
Kodi won't run with experimental GL driver, so won't bother trying it, it is compiled against OpenGL ES. If it was compiled against OpenGL it would run only with the experimental OpenGL driver but it would be slower, without hardware acceleration.
And since it is compiled against OpenGL ES, there is no X server support, so it won't work with a "normal" VNC protocol. But you can make it work under VNC by following this guide and enabling the "experimental direct capture mode":
https://www.raspberrypi.org/documentati ... ccess/vnc/

But keep in mind that VNC protocol was not made for live streaming, so it won't be good of watching videos, only to control it or configure it remotely.
Another option is to use dispmanx_vnc, which is a similar approach, search this forums for more info about that.

User avatar
NickT
Posts: 272
Joined: Mon May 21, 2012 10:43 am
Location: UK

Re: [Guide] Kodi on Raspbian Stretch

Wed Dec 13, 2017 3:22 pm

Rascas wrote:
Wed Dec 13, 2017 2:41 pm
NickT wrote:
Wed Dec 13, 2017 2:28 pm
I have been unsuccessfully attempting to run kodi on a Raspberry Pi 2 with the latest stretch (download 29-11-17). I have update/dist-upgraded it. I have installed kodi kodi is already the newest version (2:17.6-1~stretch). I am trying to run it only by VNC Viewer ( I have ssh command line interface). I have tried to autostart it and run it from the app menu. I can see it running
ps -e | grep kodi
811 ? 00:00:00 kodi
833 ? 00:01:07 kodi_v7.bin
but there is nothing visible to indicate this. I've also tried kodi-standalone, with the same result - nothing shows.
I had kodi working fine when I installed it under Jessie and I still have that load on a card which shows up fine on my Pi 2. Kodi produces a crashlog if I select the experimental GL driver and only runs with the legacy (3rd option under advanced settings). I installed following this guide. For what it's worth I show the kodi.log below (For some reason I can't add it as an attachment?)

Any ideas as to why I can't see kodi?
Kodi won't run with experimental GL driver, so won't bother trying it, it is compiled against OpenGL ES. If it was compiled against OpenGL it would run only with the experimental OpenGL driver but it would be slower, without hardware acceleration.
And since it is compiled against OpenGL ES, there is no X server support, so it won't work with a "normal" VNC protocol. But you can make it work under VNC by following this guide and enabling the "experimental direct capture mode":
https://www.raspberrypi.org/documentati ... ccess/vnc/

But keep in mind that VNC protocol was not made for live streaming, so it won't be good of watching videos, only to control it or configure it remotely.
Another option is to use dispmanx_vnc, which is a similar approach, search this forums for more info about that.
Thanks, that 'direct capture mode' does ring a bell with me. I don't think VNC Server was part of Jessie, I think I installed it separately. Unfortunately there is no GUI via menu as mentioned in the guide for it in Stretch that I can see when I VNC into my Pi. Is there a way to start it and turn on the direct capture? Or maybe do it on the command line?

Update: OK, found it via Google, Kodi is now running, thanks once again for reminding me about direct capture

Rascas
Posts: 403
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: [Guide] Kodi on Raspbian Stretch

Thu Dec 14, 2017 6:31 pm

xSunshin3x wrote:
Fri Dec 08, 2017 12:42 pm
hey guys,

Kodi doesn't start on my RPi 0 W after upgrading from 17.4 to 17.6 via apt upgrade.

Error log is on pastebin: https://pastebin.com/airB17ks

Already uninstalled and reinstalled kodi via apt, still doesn't work.

No modifications were made while/after the upgrade to 17.6


Can you help me pls?


Greetings
It should be fixed now, you just need to update Kodi or the system.

titou43
Posts: 3
Joined: Mon Dec 11, 2017 10:10 pm

Re: [Guide] Kodi on Raspbian Stretch

Thu Dec 14, 2017 10:02 pm

@ xSunshin3x

Hi
I have try your solutions and it function OK
Many thanks

there is only one note (if you know the solution.....)
At the boot KODI appear on the screen OK it is perfect

If I want to shutdown the raspi so I need to close KODI and after I could stop the raspi

But the screen of Raspbian stay blocked (pb graphic ???) during one or two minutes ...
So wat is the pb ?

cjan
Posts: 575
Joined: Sun May 06, 2012 12:00 am

Re: [Guide] Kodi on Raspbian Stretch

Thu Dec 14, 2017 11:52 pm

cjan wrote:
Wed Dec 06, 2017 10:42 pm
sorry, my bad.
reboot after update everything back to normal, anyone confirm(need reboot)?
17.6-2 this time no need to reboot, thanks.

xSunshin3x
Posts: 5
Joined: Fri Dec 08, 2017 12:35 pm

Re: [Guide] Kodi on Raspbian Stretch

Mon Dec 18, 2017 4:40 pm

Rascas wrote: It should be fixed now, you just need to update Kodi or the system.
Thank your very much. Just upgraded from 17.4 to 17.6.2 without any issues. Works like a charm.

titou43 wrote:
Thu Dec 14, 2017 10:02 pm
@ xSunshin3x

Hi
I have try your solutions and it function OK
Many thanks

there is only one note (if you know the solution.....)
At the boot KODI appear on the screen OK it is perfect

If I want to shutdown the raspi so I need to close KODI and after I could stop the raspi

But the screen of Raspbian stay blocked (pb graphic ???) during one or two minutes ...
So wat is the pb ?

tbh i don't know.
my kodi installation is running 24/7 since i got a dedicated pi0w behind my tv; there's no need to kill kodi in my setup.

Hammerhead
Posts: 3
Joined: Wed Dec 13, 2017 9:31 am

Re: [Guide] Kodi on Raspbian Stretch

Tue Dec 19, 2017 8:53 am

Hello, first of all I want to thank you for the guide.

Nevertheless i think there is a thing little unclear in the attached part.
AUTO-STARTING KODI AT BOOT:

Option 1:
If you want to auto-start Kodi automatically at boot, go to rc-gui on Raspbian desktop or raspi-config on a virtual terminal, and choose the option to boot to CLI/console.
Then copy/paste the following to a virtual termianl to create a systemd service for auto start:
Code: Select all

sudo tee -a /lib/systemd/system/kodi.service <<_EOF_
[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target

[Service]
User = pi
Group = pi
Type = simple
ExecStart = /usr/bin/kodi
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target
_EOF_
Press Enter after paste. Then enable the service:
Code: Select all

sudo systemctl enable kodi.service
I do not know if I have to use "sudo tee -a /lib/systemd/system/kodi.service << _ EOF_" to create the service for autostart and then copy / paste the following, or if on the other hand I have to access by other means (I do not know how) and copy paste all of it. I think it's the first one but I'm not sure abaut it. I have not tried it yet, I would like to know it before try it.
Thank you in advanced.

Rascas
Posts: 403
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: [Guide] Kodi on Raspbian Stretch

Wed Dec 20, 2017 11:35 pm

Hammerhead wrote:
Tue Dec 19, 2017 8:53 am
Hello, first of all I want to thank you for the guide.

Nevertheless i think there is a thing little unclear in the attached part.
AUTO-STARTING KODI AT BOOT:

Option 1:
If you want to auto-start Kodi automatically at boot, go to rc-gui on Raspbian desktop or raspi-config on a virtual terminal, and choose the option to boot to CLI/console.
Then copy/paste the following to a virtual termianl to create a systemd service for auto start:
Code: Select all

sudo tee -a /lib/systemd/system/kodi.service <<_EOF_
[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target

[Service]
User = pi
Group = pi
Type = simple
ExecStart = /usr/bin/kodi
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target
_EOF_
Press Enter after paste. Then enable the service:
Code: Select all

sudo systemctl enable kodi.service
I do not know if I have to use "sudo tee -a /lib/systemd/system/kodi.service << _ EOF_" to create the service for autostart and then copy / paste the following, or if on the other hand I have to access by other means (I do not know how) and copy paste all of it. I think it's the first one but I'm not sure abaut it. I have not tried it yet, I would like to know it before try it.
Thank you in advanced.
You just need to copy the code, whats in the code box, all of it at once, into a terminal and it will create the file.

Rascas
Posts: 403
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: [Guide] Kodi on Raspbian Stretch

Thu Dec 21, 2017 12:13 am

Updated first post with information about source code at the end.

ArcAiN6
Posts: 10
Joined: Sat Apr 02, 2016 12:42 am

Re: [Guide] Kodi on Raspbian Stretch

Tue Dec 26, 2017 8:21 pm

I seem to be having an issue. Mainly due to the fact that Kodi needs to be run as root in order to utelize reboot / restart functionality from within kodi. If kodi crashes, or you need to reboot for whatever reason, you'll end up staring at a blank black screen (assuming, like me, you use this thing headless, and attached to your television)

Now, short of wiping the flash card, and reinstalling everything. is there a method to edit the service and tell it to run as root instead of as pi?

[EDIT]
Nevermind, just figured it out... Just needed to edit /lib/systemd/system/kodi.service and replace user = pi, with user = root

Rascas
Posts: 403
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: [Guide] Kodi on Raspbian Stretch

Tue Dec 26, 2017 10:03 pm

ArcAiN6 wrote:
Tue Dec 26, 2017 8:21 pm
I seem to be having an issue. Mainly due to the fact that Kodi needs to be run as root in order to utelize reboot / restart functionality from within kodi. If kodi crashes, or you need to reboot for whatever reason, you'll end up staring at a blank black screen (assuming, like me, you use this thing headless, and attached to your television)

Now, short of wiping the flash card, and reinstalling everything. is there a method to edit the service and tell it to run as root instead of as pi?

[EDIT]
Nevermind, just figured it out... Just needed to edit /lib/systemd/system/kodi.service and replace user = pi, with user = root
Running Kodi as root is not recommended. You have instructions on the first post to enable reboot/shutdown options as a normal user if you are auto-starting it.

zoidberg
Posts: 5
Joined: Tue Jan 29, 2013 12:32 am

Re: [Guide] Kodi on Raspbian Stretch

Fri Dec 29, 2017 3:06 pm

Any idea on how to use a bluetooth headphones with kodi? they are paired on stretch and working when selected on the audio menu, but on kodi I only have the option to use audio from analog or hdmi .. is this possible?

thanks!

Rascas
Posts: 403
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: [Guide] Kodi on Raspbian Stretch

Fri Dec 29, 2017 3:42 pm

zoidberg wrote:
Fri Dec 29, 2017 3:06 pm
Any idea on how to use a bluetooth headphones with kodi? they are paired on stretch and working when selected on the audio menu, but on kodi I only have the option to use audio from analog or hdmi .. is this possible?

thanks!
Please post your Kodi log:
http://kodi.wiki/view/Log_file

dingo35
Posts: 14
Joined: Sat Oct 26, 2013 8:09 am

Re: [Guide] Kodi on Raspbian Stretch

Sun Dec 31, 2017 1:14 pm

Small improvement on initial post, for those who are running kodi from a newly initialized chroot/schroot environment:

There is also a dependency on libraspberrypi0; on most raspberry pi's this is already there, but to make this manual 110%, please add this package to the apt-get install line in the opening post ...

Some goes for fbset and libraspberrypi-bin packages, although, if you leave them out, kodi still runs, but at start it complains about missing fbset and tvservice respectively.

titou43
Posts: 3
Joined: Mon Dec 11, 2017 10:10 pm

Re: [Guide] Kodi on Raspbian Stretch

Mon Jan 08, 2018 4:32 pm

titou43 wrote:
Thu Dec 14, 2017 10:02 pm
@ xSunshin3x

.......
......
.....
.....
...
If I want to shutdown the raspi so I need to close KODI and after I could stop the raspi

But the screen of Raspbian stay blocked (pb graphic ???) during one or two minutes ...
So wat is the pb ?
Hi at all

It seems (like all I have find) that the "graphic problem" is know.... but I have not find a solution at this time...

I have install my raspi with kodi in my car with a UPS Board who pilot the power (with a battery LiPo) and the sutdown of the raspi

In the sequence of shutdown it is possible to put a line command (id terminal command) for to shut application before shutdown. I would like to quit properly Kodi before shutdown raspbian strech....
So my question :
What is the command lien to put into a terminal ?

Many thanks

PS : have a good year 2018

zero-one
Posts: 2
Joined: Wed Jan 17, 2018 2:56 pm

Re: [Guide] Kodi on Raspbian Stretch

Wed Jan 17, 2018 3:14 pm

Rascas wrote:
Tue Nov 28, 2017 2:10 pm

Kodi uses udisks instead of udisks2 used by the Pixel desktop to mount disks. So for Kodi to mount/automount disks, without the desktop loaded, you have to install udisks first:

Code: Select all

sudo apt-get install udisks
You also need to use "kodi-standalone" instead of "kodi" in the systemd script, replace the respective line by this:

Code: Select all

ExecStart = /usr/bin/kodi-standalone
Reboot after that, and you should be allowed to mount/unmount/access/etc disks and also reboot and shutdown directly in Kodi.
Thank you Rascas. Your guide worked like charm.
My only question is, because i'm not familliar with policykit: With udisks, how can mounted disks be accessed by every user or at least user pi and not only by user kodi? Permission to access e.g /media/exampleusbdrive is denied for user pi. Of course i can sudo umount&mount the drive "the normal way" again to grant permission, but that would be unnecessary with the right polkit settings, but i don't know, how to do this.

Rascas
Posts: 403
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: [Guide] Kodi on Raspbian Stretch

Wed Jan 17, 2018 9:21 pm

zero-one wrote:
Wed Jan 17, 2018 3:14 pm
Rascas wrote:
Tue Nov 28, 2017 2:10 pm

Kodi uses udisks instead of udisks2 used by the Pixel desktop to mount disks. So for Kodi to mount/automount disks, without the desktop loaded, you have to install udisks first:

Code: Select all

sudo apt-get install udisks
You also need to use "kodi-standalone" instead of "kodi" in the systemd script, replace the respective line by this:

Code: Select all

ExecStart = /usr/bin/kodi-standalone
Reboot after that, and you should be allowed to mount/unmount/access/etc disks and also reboot and shutdown directly in Kodi.
Thank you Rascas. Your guide worked like charm.
My only question is, because i'm not familliar with policykit: With udisks, how can mounted disks be accessed by every user or at least user pi and not only by user kodi? Permission to access e.g /media/exampleusbdrive is denied for user pi. Of course i can sudo umount&mount the drive "the normal way" again to grant permission, but that would be unnecessary with the right polkit settings, but i don't know, how to do this.
I personally don't use udisks (first version), I generally configure disks/drives/partitions through fstab or use udevil (configured to run with udisks2) for automounting. So the following is untested although it should work.
In the polkit rule mentioned here (viewtopic.php?f=66&t=192499&start=50#p1240007) add the following at the end:

Code: Select all

[Allow udisks]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
Save and reboot. Keep in mind that every user in the group plugdev will be able to controll drives/disks!

zero-one
Posts: 2
Joined: Wed Jan 17, 2018 2:56 pm

Re: [Guide] Kodi on Raspbian Stretch

Thu Jan 18, 2018 5:30 pm

Thank you, Rascas! The tip with udevil did it :-)

I already tried adding [Allow udisks] rules to a 55-storage.pkla similar to your suggestion which i already found on another site, but that did not work, so as your suggestion. I assume, but maybe i'm wrong, this is due to the settings in /usr/share/polkit-1/actions/org.freedesktop.udisks.policy . As mentioned, i'm not familiar with polkit.

Nevertheless, i ended up removing udisks (not udisks2!), installed udevil (thank you for your tip) and added my static ntfs-partition on the sdcard to fstab "as normal".
To automount attached usb-disks, since udevil comes with devmon, i simply added

Code: Select all

devmon 2>&1 >> /var/log/devmon &
to /etc/rc.local (found here: https://superuser.com/a/617241 ).

Now every disk is mounted for every user in console or within Kodi itself and can be restricted in udevil.conf. Thank you again Rascas for your tip with udevil.

viktor6
Posts: 27
Joined: Sun Aug 27, 2017 7:10 pm

Re: [Guide] Kodi on Raspbian Stretch

Sat Feb 03, 2018 9:16 pm

Rascas wrote:
Tue Dec 26, 2017 10:03 pm
ArcAiN6 wrote:
Tue Dec 26, 2017 8:21 pm
I seem to be having an issue. Mainly due to the fact that Kodi needs to be run as root in order to utelize reboot / restart functionality from within kodi. If kodi crashes, or you need to reboot for whatever reason, you'll end up staring at a blank black screen (assuming, like me, you use this thing headless, and attached to your television)

Now, short of wiping the flash card, and reinstalling everything. is there a method to edit the service and tell it to run as root instead of as pi?

[EDIT]
Nevermind, just figured it out... Just needed to edit /lib/systemd/system/kodi.service and replace user = pi, with user = root
Running Kodi as root is not recommended. You have instructions on the first post to enable reboot/shutdown options as a normal user if you are auto-starting it.
Tell me how to make the reset menu appear?

Code: Select all

[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target

[Service]
User = pi
Group = pi
Type = simple
ExecStart = /usr/bin/kodi
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target

Rascas
Posts: 403
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: [Guide] Kodi on Raspbian Stretch

Sun Feb 04, 2018 3:38 am

viktor6 wrote:
Sat Feb 03, 2018 9:16 pm
Rascas wrote:
Tue Dec 26, 2017 10:03 pm
ArcAiN6 wrote:
Tue Dec 26, 2017 8:21 pm
I seem to be having an issue. Mainly due to the fact that Kodi needs to be run as root in order to utelize reboot / restart functionality from within kodi. If kodi crashes, or you need to reboot for whatever reason, you'll end up staring at a blank black screen (assuming, like me, you use this thing headless, and attached to your television)

Now, short of wiping the flash card, and reinstalling everything. is there a method to edit the service and tell it to run as root instead of as pi?

[EDIT]
Nevermind, just figured it out... Just needed to edit /lib/systemd/system/kodi.service and replace user = pi, with user = root
Running Kodi as root is not recommended. You have instructions on the first post to enable reboot/shutdown options as a normal user if you are auto-starting it.
Tell me how to make the reset menu appear?

Code: Select all

[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target

[Service]
User = pi
Group = pi
Type = simple
ExecStart = /usr/bin/kodi
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target
You have the instructions on the first post! Just do as explained here:
viewtopic.php?f=66&t=192499&start=50#p1240007
What do you not understand ?

viktor6
Posts: 27
Joined: Sun Aug 27, 2017 7:10 pm

Re: [Guide] Kodi on Raspbian Stretch

Sun Feb 04, 2018 2:30 pm

Rascas wrote:
Sun Feb 04, 2018 3:38 am
viktor6 wrote:
Sat Feb 03, 2018 9:16 pm
Rascas wrote:
Tue Dec 26, 2017 10:03 pm


Running Kodi as root is not recommended. You have instructions on the first post to enable reboot/shutdown options as a normal user if you are auto-starting it.
Tell me how to make the reset menu appear?

Code: Select all

[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target

[Service]
User = pi
Group = pi
Type = simple
ExecStart = /usr/bin/kodi
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target
You have the instructions on the first post! Just do as explained here:
viewtopic.php?f=66&t=192499&start=50#p1240007
What do you not understand ?
not what does not work.
Can you count on the points and how?

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 21 guests