dudmuck
Posts: 11
Joined: Mon Feb 29, 2016 8:54 pm

Re: Kodi on bookworm RPiOS

Mon Nov 13, 2023 9:05 pm

I have a pi4 running bookworm. Kodi-20.2-2 works fine, but after i quit kodi, and return back to watching youtube on chromium, the youtube playback wont start, and i must reboot to watch youtube in chromium.

I havent touched my config.txt, but it has
dtoverlay=vc4-kms-v3d
max_framebuffers=2

is it a chromium problem or kodi problem?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7180
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kodi on bookworm RPiOS

Tue Nov 14, 2023 10:47 am

dudmuck wrote:
Mon Nov 13, 2023 9:05 pm
I have a pi4 running bookworm. Kodi-20.2-2 works fine, but after i quit kodi, and return back to watching youtube on chromium, the youtube playback wont start, and i must reboot to watch youtube in chromium.
Are you running kodi fullscreen or in windowed mode?
Is kodi quit before launching chromium?

what's the minimum sequence of events from boot required to see the issue?
e.g. does:
boot bookworm image
launch kodi fullscreen
quit kodi (without playing anything)
launch chromium
attempt to play youtube

work or fail?

Rosedalelad
Posts: 11
Joined: Fri Nov 09, 2018 6:30 pm

Re: Kodi on bookworm RPiOS

Tue Nov 14, 2023 1:56 pm

I have this exact same problem with kodi 20.2.0 and both Chromium & Firefox. E.g. Iplayer works fine on browser but if I start kodi and then return to the browser, iplayer (and all the other Internet tv websites) just won't play. I have to reboot to get Iplayer working again.

I'm using an 8gb Pi 4B and a fresh install of Bookworm

dudmuck
Posts: 11
Joined: Mon Feb 29, 2016 8:54 pm

Re: Kodi on bookworm RPiOS

Tue Nov 14, 2023 2:50 pm

dom wrote:
Tue Nov 14, 2023 10:47 am
dudmuck wrote:
Mon Nov 13, 2023 9:05 pm
I have a pi4 running bookworm. Kodi-20.2-2 works fine, but after i quit kodi, and return back to watching youtube on chromium, the youtube playback wont start, and i must reboot to watch youtube in chromium.
Are you running kodi fullscreen or in windowed mode?
Is kodi quit before launching chromium?

what's the minimum sequence of events from boot required to see the issue?
e.g. does:
boot bookworm image
launch kodi fullscreen
quit kodi (without playing anything)
launch chromium
attempt to play youtube

work or fail?
i attempted that procedure myself, and now youtube doesnt play. Thanks, now i need to reboot again to get it back.

(its not necessary to play a video in kodi to try this)

aBUGSworstnightmare
Posts: 9277
Joined: Tue Jun 30, 2015 1:35 pm

Kodi on Bookworm - windowed on 2.8in TFT

Wed Nov 15, 2023 1:56 pm

let me tease you on what's possible ...
kodi_vlc_pi5.jpg
kodi_vlc_pi5.jpg (66.53 KiB) Viewed 5101 times
https://youtu.be/IXw_4sJY518

Rosedalelad
Posts: 11
Joined: Fri Nov 09, 2018 6:30 pm

Re: Kodi on bookworm RPiOS

Fri Nov 17, 2023 11:27 am

Has anyone else had a similar problem to this - I can't believe that I am the only one who has this interference between Kodi and Chromium/Firefox browsers (for Internet tv). It's a deal breaker for me and it was working perfectly with Bullseye before.
It's a fresh install of Bookworm and a fresh install of Kodi from the pi repository - I don't have the knowledge to do anything other than fiddle with obvious things so any help would be much appreciated
Thanks

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7180
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kodi on bookworm RPiOS

Fri Nov 17, 2023 11:44 am

Does kodi/firefox have the same issue?

Rosedalelad
Posts: 11
Joined: Fri Nov 09, 2018 6:30 pm

Re: Kodi on bookworm RPiOS

Fri Nov 17, 2023 2:38 pm

Yes, exactly the same problem

Rosedalelad
Posts: 11
Joined: Fri Nov 09, 2018 6:30 pm

Re: Kodi on bookworm RPiOS

Sun Nov 26, 2023 10:24 am

Anyone able to help???

timothyjward
Posts: 10
Joined: Wed Jan 20, 2021 9:10 pm

Re: Kodi on bookworm RPiOS

Tue Nov 28, 2023 1:34 pm

I've just put a fresh install of Raspberry Pi OS Lite (64 bit) on an SD card for my Pi 4. I've installed kodi using

Code: Select all

sudo apt-get install kodi
and tried to set up a systemd service to auto-launch on boot.

Unfortunately I don't actually seem to be able to start kodi. I've tried as the `kodi` user I created and as the `pi` user. In both cases launching fails and I get the following error log

Code: Select all

2023-11-28 13:16:21.705 T:3148     info <general>: -----------------------------------------------------------------------
2023-11-28 13:16:21.706 T:3148     info <general>: Starting Kodi (20.2 (20.2.0) Git:20230720-ca483168bf). Platform: Linux ARM 64-bit
2023-11-28 13:16:21.706 T:3148     info <general>: Using Release Kodi x64
2023-11-28 13:16:21.706 T:3148     info <general>: Kodi compiled 2023-07-20 by GCC 12.2.0 for Linux ARM 64-bit version 6.1.21 (393493)
2023-11-28 13:16:21.706 T:3148     info <general>: Running on BCM2835 with Debian GNU/Linux 12 (bookworm), kernel: Linux ARM 64-bit version 6.1.0-rpi6-rpi-v8
2023-11-28 13:16:21.706 T:3148     info <general>: FFmpeg version/source: 5.1.4-0+rpt1+deb12u1
2023-11-28 13:16:21.706 T:3148     info <general>: 4 CPU cores available
2023-11-28 13:16:21.706 T:3148     info <general>: ARM Features: Neon enabled
2023-11-28 13:16:21.706 T:3148     info <general>: special://xbmc/ is mapped to: /usr/share/kodi
2023-11-28 13:16:21.706 T:3148     info <general>: special://xbmcbin/ is mapped to: /usr/lib/aarch64-linux-gnu/kodi
2023-11-28 13:16:21.706 T:3148     info <general>: special://xbmcbinaddons/ is mapped to: /usr/lib/aarch64-linux-gnu/kodi/addons
2023-11-28 13:16:21.706 T:3148     info <general>: special://masterprofile/ is mapped to: /home/kodi/.kodi/userdata
2023-11-28 13:16:21.706 T:3148     info <general>: special://envhome/ is mapped to: /home/kodi
2023-11-28 13:16:21.706 T:3148     info <general>: special://home/ is mapped to: /home/kodi/.kodi
2023-11-28 13:16:21.706 T:3148     info <general>: special://temp/ is mapped to: /home/kodi/.kodi/temp
2023-11-28 13:16:21.706 T:3148     info <general>: special://logpath/ is mapped to: /home/kodi/.kodi/temp
2023-11-28 13:16:21.706 T:3148     info <general>: Webserver extra whitelist paths: 
2023-11-28 13:16:21.706 T:3148     info <general>: The executable running is: /usr/lib/aarch64-linux-gnu/kodi/kodi.bin
2023-11-28 13:16:21.706 T:3148     info <general>: Local hostname: pi-living-room
2023-11-28 13:16:21.706 T:3148     info <general>: Log File is located: /home/kodi/.kodi/temp/kodi.log
2023-11-28 13:16:21.707 T:3148     info <general>: -----------------------------------------------------------------------
2023-11-28 13:16:21.707 T:3148     info <general>: loading settings
2023-11-28 13:16:21.709 T:3148     info <general>: special://profile/ is mapped to: special://masterprofile/
2023-11-28 13:16:21.752 T:3148     info <general>: No settings file to load (special://xbmc/system/advancedsettings.xml)
2023-11-28 13:16:21.753 T:3148     info <general>: No settings file to load (special://masterprofile/advancedsettings.xml)
2023-11-28 13:16:21.753 T:3148     info <general>: Default Video Player: VideoPlayer
2023-11-28 13:16:21.753 T:3148     info <general>: Default Audio Player: paplayer
2023-11-28 13:16:21.753 T:3148     info <general>: Disabled debug logging due to GUI setting. Level 0.
2023-11-28 13:16:21.753 T:3148     info <general>: Log level changed to "info"
2023-11-28 13:16:21.756 T:3148     info <general>: creating subdirectories
2023-11-28 13:16:21.756 T:3148     info <general>: userdata folder: special://masterprofile/
2023-11-28 13:16:21.756 T:3148     info <general>: recording folder: 
2023-11-28 13:16:21.756 T:3148     info <general>: screenshots folder: 
2023-11-28 13:16:21.764 T:3148     info <general>: Running database version Addons33
2023-11-28 13:16:21.767 T:3148    error <general>: GetDirectory - Error getting /usr/lib/aarch64-linux-gnu/kodi/addons
2023-11-28 13:16:21.767 T:3148    error <general>: GetDirectory - Error getting special://xbmcbin/addons
2023-11-28 13:16:21.848 T:3148     info <general>: CAddonMgr::FindAddons: audioencoder.kodi.builtin.aac v1.0.2 installed
2023-11-28 13:16:21.848 T:3148     info <general>: CAddonMgr::FindAddons: audioencoder.kodi.builtin.wma v1.0.2 installed
2023-11-28 13:16:21.849 T:3148     info <general>: CAddonMgr::FindAddons: game.controller.default v1.0.39 installed
2023-11-28 13:16:21.849 T:3148     info <general>: CAddonMgr::FindAddons: game.controller.keyboard v1.1.27 installed
2023-11-28 13:16:21.850 T:3148     info <general>: CAddonMgr::FindAddons: game.controller.mouse v1.0.22 installed
2023-11-28 13:16:21.850 T:3148     info <general>: CAddonMgr::FindAddons: game.controller.snes v1.0.37 installed
2023-11-28 13:16:21.850 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.global.audioengine v1.1.1 installed
2023-11-28 13:16:21.851 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.global.filesystem v1.1.8 installed
2023-11-28 13:16:21.851 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.global.general v1.0.5 installed
2023-11-28 13:16:21.852 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.global.gui v5.15.0 installed
2023-11-28 13:16:21.852 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.global.main v2.0.2 installed
2023-11-28 13:16:21.852 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.global.network v1.0.4 installed
2023-11-28 13:16:21.853 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.global.tools v1.0.4 installed
2023-11-28 13:16:21.853 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.audiodecoder v4.0.0 installed
2023-11-28 13:16:21.854 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.audioencoder v3.0.0 installed
2023-11-28 13:16:21.854 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.game v3.0.0 installed
2023-11-28 13:16:21.854 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.imagedecoder v3.0.1 installed
2023-11-28 13:16:21.855 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.inputstream v3.2.0 installed
2023-11-28 13:16:21.855 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.peripheral v2.0.0 installed
2023-11-28 13:16:21.855 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.pvr v8.2.0 installed
2023-11-28 13:16:21.856 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.screensaver v2.2.0 installed
2023-11-28 13:16:21.856 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.vfs v3.0.1 installed
2023-11-28 13:16:21.857 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.videocodec v2.0.3 installed
2023-11-28 13:16:21.857 T:3148     info <general>: CAddonMgr::FindAddons: kodi.binary.instance.visualization v4.0.0 installed
2023-11-28 13:16:21.857 T:3148     info <general>: CAddonMgr::FindAddons: kodi.resource v1.0.0 installed
2023-11-28 13:16:21.858 T:3148     info <general>: CAddonMgr::FindAddons: metadata.album.universal v3.1.4 installed
2023-11-28 13:16:21.858 T:3148     info <general>: CAddonMgr::FindAddons: metadata.artists.universal v4.3.3 installed
2023-11-28 13:16:21.858 T:3148     info <general>: CAddonMgr::FindAddons: metadata.common.allmusic.com v3.2.2 installed
2023-11-28 13:16:21.859 T:3148     info <general>: CAddonMgr::FindAddons: metadata.common.fanart.tv v3.6.3 installed
2023-11-28 13:16:21.859 T:3148     info <general>: CAddonMgr::FindAddons: metadata.common.musicbrainz.org v2.2.4 installed
2023-11-28 13:16:21.860 T:3148     info <general>: CAddonMgr::FindAddons: metadata.common.theaudiodb.com v2.0.3 installed
2023-11-28 13:16:21.860 T:3148     info <general>: CAddonMgr::FindAddons: metadata.generic.albums v1.0.14 installed
2023-11-28 13:16:21.860 T:3148     info <general>: CAddonMgr::FindAddons: metadata.generic.artists v1.0.14 installed
2023-11-28 13:16:21.861 T:3148     info <general>: CAddonMgr::FindAddons: metadata.local v1.0.1 installed
2023-11-28 13:16:21.861 T:3148     info <general>: CAddonMgr::FindAddons: metadata.themoviedb.org.python v1.3.1+matrix.1 installed
2023-11-28 13:16:21.861 T:3148     info <general>: CAddonMgr::FindAddons: metadata.tvshows.themoviedb.org.python v1.6.0 installed
2023-11-28 13:16:21.862 T:3148     info <general>: CAddonMgr::FindAddons: repository.xbmc.org v3.3.1 installed
2023-11-28 13:16:21.862 T:3148     info <general>: CAddonMgr::FindAddons: resource.images.weathericons.default v1.1.9 installed
2023-11-28 13:16:21.863 T:3148     info <general>: CAddonMgr::FindAddons: resource.language.en_gb v2.0.2 installed
2023-11-28 13:16:21.863 T:3148     info <general>: CAddonMgr::FindAddons: resource.uisounds.kodi v1.0.1 installed
2023-11-28 13:16:21.863 T:3148     info <general>: CAddonMgr::FindAddons: screensaver.xbmc.builtin.black v1.0.34 installed
2023-11-28 13:16:21.864 T:3148     info <general>: CAddonMgr::FindAddons: screensaver.xbmc.builtin.dim v1.0.66 installed
2023-11-28 13:16:21.864 T:3148     info <general>: CAddonMgr::FindAddons: script.module.pil v5.1.0 installed
2023-11-28 13:16:21.865 T:3148     info <general>: CAddonMgr::FindAddons: script.module.pycryptodome v3.4.3 installed
2023-11-28 13:16:21.865 T:3148     info <general>: CAddonMgr::FindAddons: service.xbmc.versioncheck v0.5.19+matrix.1 installed
2023-11-28 13:16:21.865 T:3148     info <general>: CAddonMgr::FindAddons: skin.estouchy v3.0.8 installed
2023-11-28 13:16:21.866 T:3148     info <general>: CAddonMgr::FindAddons: skin.estuary v3.0.10 installed
2023-11-28 13:16:21.866 T:3148     info <general>: CAddonMgr::FindAddons: webinterface.default v19.x-2.4.8 installed
2023-11-28 13:16:21.866 T:3148     info <general>: CAddonMgr::FindAddons: xbmc.addon v20.2.0 installed
2023-11-28 13:16:21.867 T:3148     info <general>: CAddonMgr::FindAddons: xbmc.core v0.1.0 installed
2023-11-28 13:16:21.867 T:3148     info <general>: CAddonMgr::FindAddons: xbmc.gui v5.16.0 installed
2023-11-28 13:16:21.868 T:3148     info <general>: CAddonMgr::FindAddons: xbmc.json v13.0.0 installed
2023-11-28 13:16:21.868 T:3148     info <general>: CAddonMgr::FindAddons: xbmc.metadata v2.1.0 installed
2023-11-28 13:16:21.868 T:3148     info <general>: CAddonMgr::FindAddons: xbmc.python v3.0.1 installed
2023-11-28 13:16:21.869 T:3148     info <general>: CAddonMgr::FindAddons: xbmc.webinterface v1.0.0 installed
2023-11-28 13:16:21.876 T:3148     info <general>: Selected Logind/UPower as PowerSyscall
2023-11-28 13:16:21.877 T:3148    error <general>: DBus error: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
2023-11-28 13:16:21.877 T:3148     info <general>: LogindUPowerSyscall - UPower not found, battery information will not be available
2023-11-28 13:16:22.128 T:3148     info <general>: CKeyboardLayoutManager: loading keyboard layouts from special://xbmc/system/keyboardlayouts...
2023-11-28 13:16:22.309 T:3148     info <general>: RetroPlayer[RENDER]: Registering renderer factory for DMA
2023-11-28 13:16:22.310 T:3148     info <general>: RetroPlayer[RENDER]: Registering renderer factory for OpenGLES
2023-11-28 13:16:22.315 T:3148    error <general>: CWinSystemGbm::InitWindowSystem - failed to initialize Atomic DRM
2023-11-28 13:16:22.319 T:3148    error <general>: CWinSystemGbm::InitWindowSystem - failed to initialize Legacy DRM
2023-11-28 13:16:22.331 T:3148    error <general>: CGBMUtils::CreateDevice - failed to create device: No such file or directory
2023-11-28 13:16:22.699 T:3148  critical <general>: CApplication::CreateGUI - unable to init windowing system
2023-11-28 13:16:22.699 T:3148     info <general>: Stopping the application...
2023-11-28 13:16:22.699 T:3148     info <general>: Stopping player
2023-11-28 13:16:22.699 T:3148     info <general>: Storing total System Uptime
2023-11-28 13:16:22.700 T:3148     info <general>: Saving settings
2023-11-28 13:16:22.703 T:3150     info <general>: Loading special://xbmc/system/Lircmap.xml
2023-11-28 13:16:22.705 T:3150     info <general>: * Adding remote mapping for device 'mceusb'
2023-11-28 13:16:22.705 T:3150     info <general>: * Adding remote mapping for device 'XboxDVDDongle'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'Microsoft_Xbox'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'PinnacleSysPCTVRemote'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'anysee'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'iMON-PAD'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'Antec_Veris_RM200'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'MCE_via_iMON'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'TwinHanRemote'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'linux-input-layer'
2023-11-28 13:16:22.706 T:3150     info <general>: * Linking remote mapping for 'linux-input-layer' to 'cx23885_remote'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'mediacenter'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'devinput'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'devinput-32'
2023-11-28 13:16:22.706 T:3150     info <general>: * Adding remote mapping for device 'devinput-64'
2023-11-28 13:16:22.707 T:3148     info <general>: Saving skin settings
2023-11-28 13:16:22.707 T:3148     info <general>: Stopping all
2023-11-28 13:16:22.711 T:3148     info <general>: Application stopped
2023-11-28 13:16:22.912 T:3148     info <general>: unload skin
2023-11-28 13:16:22.912 T:3148     info <general>: Unloaded skin
2023-11-28 13:16:22.912 T:3148     info <general>: unload sections
2023-11-28 13:16:22.912 T:3148     info <general>: CWSDiscoveryListenerUDP::Stop - Stopped
The problem seems to be here, but I have no idea why:

Code: Select all

error <general>: CWinSystemGbm::InitWindowSystem - failed to initialize Atomic DRM
error <general>: CWinSystemGbm::InitWindowSystem - failed to initialize Legacy DRM
error <general>: CGBMUtils::CreateDevice - failed to create device: No such file or directory

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7180
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kodi on bookworm RPiOS

Tue Nov 28, 2023 1:43 pm

Does kodi run when launched from console?

timothyjward
Posts: 10
Joined: Wed Jan 20, 2021 9:10 pm

Re: Kodi on bookworm RPiOS

Tue Nov 28, 2023 1:54 pm

dom wrote:
Tue Nov 28, 2023 1:43 pm
Does kodi run when launched from console?
I get the same error log generated for both the CLI and systemctl

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7180
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kodi on bookworm RPiOS

Tue Nov 28, 2023 2:03 pm

Rosedalelad wrote:
Fri Nov 17, 2023 11:27 am
Has anyone else had a similar problem to this - I can't believe that I am the only one who has this interference between Kodi and Chromium/Firefox browsers (for Internet tv). It's a deal breaker for me and it was working perfectly with Bullseye before.
It's a fresh install of Bookworm and a fresh install of Kodi from the pi repository - I don't have the knowledge to do anything other than fiddle with obvious things so any help would be much appreciated
I think the issue is pulseaudio/pipewire related. Can you edit:

Code: Select all

sudo nano /usr/share/applications/kodi-fs.desktop
and change:

Code: Select all

Exec=kodi --standalone -fs
to

Code: Select all

Exec=kodi --standalone -fs --pulse

timothyjward
Posts: 10
Joined: Wed Jan 20, 2021 9:10 pm

Re: Kodi on bookworm RPiOS

Thu Nov 30, 2023 8:36 pm

In case it helps people in future I was eventually able to solve this.

Firstly, you need to have HDMI 0 (not HDMI 1) connected to an HDCP capable device. That allows the DRM to start.

Once that was done I foundnd some errors displayed (but not logged) indicating missing MESA DRI files. They are only visible for less than a second so hard to spot. I fixed this with

Code: Select all

sudo apt-get install libgl1-mesa-dri
After this Kodi started successfully

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7180
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kodi on bookworm RPiOS

Fri Dec 01, 2023 11:46 am

timothyjward wrote:
Thu Nov 30, 2023 8:36 pm
Firstly, you need to have HDMI 0 (not HDMI 1) connected to an HDCP capable device. That allows the DRM to start.
Yes, kodi only supports HDMI0. HDCP is not required (or used).

kodi works with a freshly installed RPiOS bookworm (or bullseye) desktop image after installing with apt, without requiring any other installs.
What image are you running on that requires libgl1-mesa-dri to be installed?

timothyjward
Posts: 10
Joined: Wed Jan 20, 2021 9:10 pm

Re: Kodi on bookworm RPiOS

Fri Dec 01, 2023 9:52 pm

dom wrote: kodi works with a freshly installed RPiOS bookworm (or bullseye) desktop image after installing with apt, without requiring any other installs.
What image are you running on that requires libgl1-mesa-dri to be installed?
timothyjward wrote: I've just put a fresh install of Raspberry Pi OS Lite (64 bit) on an SD card for my Pi 4.
I used Raspberry Pi Imager 1.8.1 to flash a brand new SD card with the 64 bit Lite OS. I selected it in the menu, so I assume it is the official supported version of the OS. I don't need a desktop version as this Pi 4 will be used as a media player and file server and will have no mouse or keyboard, just HDMI CEC through my TV remote, and the occasional SSH session.

I'm guessing that one of the packages somewhere in the Kodi dependency graph is missing a dependency on libgl1-mesa-dri, but that the library is included by default in the desktop version of the OS.

Rosedalelad
Posts: 11
Joined: Fri Nov 09, 2018 6:30 pm

Re: Kodi on bookworm RPiOS

Sun Dec 03, 2023 1:00 pm

dom wrote:
Tue Nov 28, 2023 2:03 pm
Rosedalelad wrote:
Fri Nov 17, 2023 11:27 am
Has anyone else had a similar problem to this - I can't believe that I am the only one who has this interference between Kodi and Chromium/Firefox browsers (for Internet tv). It's a deal breaker for me and it was working perfectly with Bullseye before.
It's a fresh install of Bookworm and a fresh install of Kodi from the pi repository - I don't have the knowledge to do anything other than fiddle with obvious things so any help would be much appreciated
I think the issue is pulseaudio/pipewire related. Can you edit:

Code: Select all

sudo nano /usr/share/applications/kodi-fs.desktop
and change:

Code: Select all

Exec=kodi --standalone -fs
to

Code: Select all

Exec=kodi --standalone -fs --pulse
Shame - I was hopeful but it has not made any difference - Internet TV won't play after Kodi has been used and a full reboot is required to fix it. Thanks for your suggestion though

Rosedalelad
Posts: 11
Joined: Fri Nov 09, 2018 6:30 pm

Re: Kodi on bookworm RPiOS

Thu Dec 07, 2023 4:20 pm

Update:- OK so as I said before, Kodi 20.2 on Bookworm interferes with internet TV (on both Firefox and Chromium) and necessitates a reboot to get Internet TV working again. BUT I've since stumbled on the fact that if I play Kodi in 'windowed' mode then there is no interference with the Internet TV - now don't you think that's a bit strange??

I still cannot replace my Bullseye based media server with Bookworm as I need both Kodi and a browser-based Internet TV that works together

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7180
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kodi on bookworm RPiOS

Thu Dec 07, 2023 5:11 pm

Rosedalelad wrote:
Thu Dec 07, 2023 4:20 pm
- now don't you think that's a bit strange??
Nope. fullscreen mode leaves pulseaudio/pipewire running which in my testing was the cause of the hang.
--pulse was the solution in my case to also leave pulseaudio/pipewire running.

Rosedalelad
Posts: 11
Joined: Fri Nov 09, 2018 6:30 pm

Re: Kodi on bookworm RPiOS

Fri Dec 08, 2023 11:55 am

OK, I've tried --pulse again and it works with Kodi Fullscreen. That's good for me ATM so thanks for your input. There's still a problem with Kodi in windowed mode but I can live with using just Kodi Fullscreen
Thanks again

ovecka
Posts: 5
Joined: Mon Mar 15, 2021 3:58 pm

Re: Kodi on bookworm RPiOS

Sat Dec 23, 2023 5:23 pm

What's the process to get Kodi working properly on Bookworm with HW acceleration?

I got my Pi 5 yesterday, installed latest Raspberry OS using Imager from the website and launched

Code: Select all

apt update
apt upgrade
apt install kodi
to get Kodi (it got me version 20.2).
I noticed that there's some Prime decoder disabled in Kodi's settings, so I enabled it. And that's what should be enough from reading various forums I stumbled upon on Google (discussing Pi 4 or older though).

But h264 videos in Kodi play using SW acceleration. (//edit: HEVC says it uses HW decoder! But I still get 100% of one CPU core utilization, unlike in VLC)
Another fun thing is that I'm testing that on an old 5:4 monitor and the video just freeze after 5 seconds there, but if I connect Pi to my TV, it plays okay (except the fan goes like crazy because of the SW decoding).

Did I do something wrong? Or is this normal?

armyofme
Posts: 75
Joined: Sat Jan 12, 2013 11:28 am
Location: York, UK

Re: Kodi on bookworm RPiOS

Sat Dec 23, 2023 10:12 pm

Only the Kodi Fullscreen option works for me. The windowed mode doesn't show my audio devices (IQAudio and my Denon amp). It's probably my fault because I don't know how to set up up Pulse Audio. Anyway...I'm trying to edit the Kodi service entry so that it will start the Fullscreen version but I'm falling dismally and can't find any advice when I search. Basically the entry is:

Code: Select all

ExecStart=/usr/bin/kodi-standalone
What do I need to add so it executes Kodi fullscreen? Thanks in advance :)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7180
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kodi on bookworm RPiOS

Sun Dec 24, 2023 1:02 pm

ovecka wrote:
Sat Dec 23, 2023 5:23 pm
Did I do something wrong? Or is this normal?
Sounds normal. Pi5 doesn't include h264 hw decode (it can decode it in software with low cpu).
You should see hw decode with hevc video.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7180
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kodi on bookworm RPiOS

Sun Dec 24, 2023 1:04 pm

armyofme wrote:
Sat Dec 23, 2023 10:12 pm
Only the Kodi Fullscreen option works for me. The windowed mode doesn't show my audio devices (IQAudio and my Denon amp). It's probably my fault because I don't know how to set up up Pulse Audio. Anyway...I'm trying to edit the Kodi service entry so that it will start the Fullscreen version but I'm falling dismally and can't find any advice when I search. Basically the entry is:

Code: Select all

ExecStart=/usr/bin/kodi-standalone
What do I need to add so it executes Kodi fullscreen? Thanks in advance :)
Kodi on bookworm should create two desktop menu options. A windowed and fullscreen option. You don't need to edit anything.

When using pulse kodi should just inherit the pulse desktop settings. Was you IQAudio device working in desktop (e.g. with browser) before launching kodi?

aBUGSworstnightmare
Posts: 9277
Joined: Tue Jun 30, 2015 1:35 pm

Re: Kodi on bookworm RPiOS

Sun Dec 24, 2023 1:17 pm

Just tested Kodi this morning in Fullscreen and Windowed Mode a Pi5 . Nice an smooth playback of different file formats (on a 2560x1440pixels display).

Return to “Media centres”