calanor
Posts: 31
Joined: Wed Feb 24, 2016 1:30 pm

Re: [Guide] Kodi on Raspbian Buster

Sun Jan 26, 2020 5:50 pm

Rascas wrote: Kodi updated to 18.5 and all binary addons also updated to latest stable version.
No specific Raspbian changes.

Just update and upgrade the packages has you normally do.*

*Note that this packages are not yet available on Raspberry Pi repos, you have to wait a little bit.
Hello Rascas,
I have 18.4 installed from pipplware repo. Can I simply remove pipplware.list from soucce.list, and do a update/upgrade from raspbian buster repo?

Thanks

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

Re: [Guide] Kodi on Raspbian Buster

Sun Jan 26, 2020 6:30 pm

calanor wrote:
Sun Jan 26, 2020 5:50 pm
Rascas wrote: Kodi updated to 18.5 and all binary addons also updated to latest stable version.
No specific Raspbian changes.

Just update and upgrade the packages has you normally do.*

*Note that this packages are not yet available on Raspberry Pi repos, you have to wait a little bit.
Hello Rascas,
I have 18.4 installed from pipplware repo. Can I simply remove pipplware.list from soucce.list, and do a update/upgrade from raspbian buster repo?

Thanks
Yes, the Kodi versions are the same.

Lipown
Posts: 86
Joined: Sun Oct 13, 2019 8:32 am

Re: [Guide] Kodi on Raspbian Buster

Wed Feb 05, 2020 12:20 pm

I am not able to download youtube plugin since updated Kodi. Any solution please?

derders
Posts: 22
Joined: Sun Apr 02, 2017 5:26 pm

Re: [Guide] Kodi on Raspbian Buster

Fri Feb 07, 2020 8:25 pm

Lipown wrote:
Wed Feb 05, 2020 12:20 pm
I am not able to download youtube plugin since updated Kodi. Any solution please?
youtube for Kodi is a normal python addon and not a binary addon so normally it should work.

what are your steps?
download? it was installed and if you click on update youtube addon it doesen't work? you got an addon failure?
Kodi log after update/install?

you tried to delete .kodi/addons/plugin.video.youtube / restart / reinstall?

Lipown
Posts: 86
Joined: Sun Oct 13, 2019 8:32 am

Re: [Guide] Kodi on Raspbian Buster

Sun Feb 09, 2020 10:28 am

derders wrote:
Fri Feb 07, 2020 8:25 pm
Lipown wrote:
Wed Feb 05, 2020 12:20 pm
I am not able to download youtube plugin since updated Kodi. Any solution please?
youtube for Kodi is a normal python addon and not a binary addon so normally it should work.

what are your steps?
download? it was installed and if you click on update youtube addon it doesen't work? you got an addon failure?
Kodi log after update/install?

you tried to delete .kodi/addons/plugin.video.youtube / restart / reinstall?
I tried to install it yesterday and it worked without any issues. Unfortunately I don't know what happened. Did cleared the cache, deleted the folder you mentioned, restarted and it did not worked. Probably some update fixed it.

KjetilK
Posts: 5
Joined: Sun Dec 15, 2019 11:56 pm

Re: [Guide] Kodi on Raspbian Buster

Mon Feb 10, 2020 6:33 pm

I really love that Kodi works so well on Raspbian, it is really valuable to be able to run it on an OS that is very close to what I use on all my other computers. Thanks a lot for that!

Since upgrading audio and CEC remote broke for me. The whole thing is pretty weird, it started since I didn't have DTS passthrough working, but everything else was working perfectly. Reading this thread, I did an upgrade. I just checked the movie that didn't work, and it looked OK, and then went to bed, and then, the next morning, things weren't working. :?

I have an RPi4, with this config:

Code: Select all

2020-02-10 18:04:46.539 T:2973367392  NOTICE: Raspberry PI firmware version: Jan 30 2020 13:50:45 
                                            Copyright (c) 2012 Broadcom
                                            version 8f792e011c8a0ea3c5d47e7cc10172cc10b93c09 (clean) (release) (start)
2020-02-10 18:04:46.539 T:2973367392  NOTICE: ARM mem: 864MB GPU mem: 160MB MPG2:0 WVC1:0
2020-02-10 18:04:46.539 T:2973367392  NOTICE: Config:
                                            arm_freq=1500
                                            audio_pwm_mode=514
                                            config_hdmi_boost=5
                                            core_freq=500
                                            core_freq_min=200
                                            disable_commandline_tags=2
                                            disable_l2cache=1
                                            display_hdmi_rotate=-1
                                            display_lcd_rotate=-1
                                            enable_gic=1
                                            force_eeprom_read=1
                                            force_pwm_open=1
                                            framebuffer_ignore_alpha=1
                                            framebuffer_swap=1
                                            gpu_freq=500
                                            gpu_freq_min=250
                                            hdmi_channel_map=8
                                            init_uart_clock=0x2dc6c00
                                            lcd_framerate=60
                                            mask_gpu_interrupt0=1024
                                            mask_gpu_interrupt1=0x10000
                                            max_framebuffers=2
                                            over_voltage_avs=-23750
                                            pause_burst_frames=1
                                            program_serial_random=1
                                            total_mem=1024
                                            hdmi_force_cec_address:0=65535
                                            hdmi_force_cec_address:1=65535
                                            hdmi_pixel_freq_limit:0=0x11e1a300
                                            hdmi_pixel_freq_limit:1=0x11e1a300
2020-02-10 18:04:46.539 T:2973367392  NOTICE: Config:
                                            device_tree=-
                                            overlay_prefix=overlays/
                                            hdmi_cvt:0=
                                            hdmi_cvt:1=
                                            hdmi_edid_filename:0=
                                            hdmi_edid_filename:1=
                                            hdmi_timings:0=
                                            hdmi_timings:1=
For the remote, I see the CEC plugin starting. Usually, something reports that RC remote is enabled shortly thereafter, but that usually doesn't happen now. I have seen it happening if I connect an USB keyboard. But it seems unstable. Sometimes, I see permission errors on /var/run/lirc/lircd , something I don't. It doesn't seem to be created, though. Sometimes it works for a few minutes, then stops working again.

This what I see in the logs:

Code: Select all

root@stua:/home/pi/.kodi/temp# grep -i cec kodi.log 
2020-02-10 18:04:50.375 T:2973367392   DEBUG: LoadMappings - loaded node "CEC Adapter"
2020-02-10 18:04:50.375 T:2973367392   DEBUG: LoadMappings - loaded node "Pulse-Eight CEC Adapter"
2020-02-10 18:04:50.380 T:2722091216   DEBUG: Thread PeripBusCEC start, auto delete: false
2020-02-10 18:04:50.838 T:2722091216   DEBUG: GetMappingForDevice - device (2708:1001) mapped to CEC Adapter (type = cec)
2020-02-10 18:04:50.840 T:2722091216   DEBUG: InitialiseFeature - using libCEC v4.0.4
2020-02-10 18:04:50.842 T:2722091216  NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001)
2020-02-10 18:04:50.842 T:2722091216   DEBUG: Thread PeripBusCEC 2722091216 terminating
2020-02-10 18:04:50.842 T:2555375824   DEBUG: Thread CECAdapter start, auto delete: false
2020-02-10 18:04:50.842 T:2555375824   DEBUG: OpenConnection - opening a connection to the CEC adapter: RPI
2020-02-10 18:09:36.844 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 0
2020-02-10 18:09:42.846 T:2555375824   DEBUG: OpenConnection - connection to the CEC adapter opened
2020-02-10 18:09:42.846 T:2555375824   DEBUG: SetConfigurationFromLibCEC - settings updated by libCEC
2020-02-10 18:09:42.846 T:2688520400   DEBUG: Thread CECAdapterUpdate start, auto delete: false
2020-02-10 18:09:51.849 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 15005
2020-02-10 18:11:17.906 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 0
2020-02-10 18:11:26.912 T:2688520400   DEBUG: UpdateAudioSystemStatus - no CEC capable amplifier found
2020-02-10 18:11:29.915 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 0
2020-02-10 18:11:37.418 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 0
I'm not seeing any more recent keypresses.

I have little to go on with regards to the audio. I use HDMI, with an audio splitter with optical SPDIF. I used to have only HDMI output, now I have analog+HDMI and analog audio is working, so right now, I'm sending analog to the speakers, but it is a 5.1 setup, so I rather want that.

I'm not getting sound on HDMI with speaker-test.

This is what I get when grepping logs:

Code: Select all

root@stua:/home/pi/.kodi/temp# grep -i audio kodi.log 
2020-02-10 18:04:45.912 T:2973367392  NOTICE: Default Audio Player: paplayer
2020-02-10 18:04:46.023 T:2973367392  NOTICE: PulseAudio: Server not running
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.flac v2.0.5 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.kodi.builtin.aac v1.0.0 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.kodi.builtin.wma v1.0.0 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.lame v2.0.3 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.vorbis v2.0.3 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: kodi.binary.global.audioengine v1.0.1 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: kodi.binary.instance.audiodecoder v2.0.0 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: kodi.binary.instance.audioencoder v2.0.0 installed
2020-02-10 18:04:46.281 T:2973367392  NOTICE: ADDON: metadata.common.theaudiodb.com v2.0.3 installed
2020-02-10 18:04:46.472 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
2020-02-10 18:04:46.473 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae203180
2020-02-10 18:04:46.474 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_splitter input port 261 output port 262 m_handle 0xae202788
2020-02-10 18:04:46.475 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae200668
2020-02-10 18:04:46.476 T:2931814608   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_splitter) - port(261), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(17664), nBufferAlignment(32)
                                            audio_pwm_mode=514
2020-02-10 18:04:49.606 T:2973367392   DEBUG: LocalizeStrings: loaded 2 strings from file /usr/share/kodi/addons/audioencoder.flac/resources/language/resource.language.en_gb/strings.po
2020-02-10 18:04:49.608 T:2973367392   DEBUG: LocalizeStrings: loaded 1 strings from file /usr/share/kodi/addons/audioencoder.kodi.builtin.aac/resources/language/English/strings.po
2020-02-10 18:04:49.611 T:2973367392   DEBUG: LocalizeStrings: loaded 1 strings from file /usr/share/kodi/addons/audioencoder.kodi.builtin.wma/resources/language/English/strings.po
2020-02-10 18:04:49.613 T:2973367392   DEBUG: LocalizeStrings: loaded 9 strings from file /usr/share/kodi/addons/audioencoder.lame/resources/language/resource.language.en_gb/strings.po
2020-02-10 18:04:49.616 T:2973367392   DEBUG: LocalizeStrings: loaded 9 strings from file /usr/share/kodi/addons/audioencoder.vorbis/resources/language/resource.language.en_gb/strings.po
2020-02-10 18:04:50.262 T:2973367392   DEBUG: CDirectoryProvider[addons://sources/audio/]: refreshing..
2020-02-10 18:04:50.423 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
2020-02-10 18:04:50.423 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
2020-02-10 18:10:05.763 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
2020-02-10 18:10:05.764 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
2020-02-10 18:10:05.867 T:2503995600    INFO: ffmpeg[953FF0D0]:     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
2020-02-10 18:10:05.884 T:2503995600  NOTICE: Finding audio codec for: 86018
2020-02-10 18:10:05.885 T:2503995600  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-02-10 18:10:05.885 T:2503995600  NOTICE: Creating audio thread
2020-02-10 18:10:05.892 T:2478817488   DEBUG: Thread VideoPlayerAudio start, auto delete: false
2020-02-10 18:10:05.892 T:2478817488  NOTICE: running thread: CVideoPlayerAudio::Process()
2020-02-10 18:10:05.892 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_PAUSE: 0
2020-02-10 18:10:05.892 T:2478817488   DEBUG: CDVDAudio::Pause - pausing audio stream
2020-02-10 18:10:05.894 T:2478817488  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
2020-02-10 18:10:05.894 T:2478817488   DEBUG: CVideoPlayerAudio:: synctype set to 0: clock feedback
2020-02-10 18:10:06.024 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
2020-02-10 18:10:06.028 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_splitter handle 0xae202788
2020-02-10 18:10:06.029 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae203180
2020-02-10 18:10:06.030 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae200668
2020-02-10 18:10:06.031 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
2020-02-10 18:10:06.032 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae203180
2020-02-10 18:10:06.033 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_splitter input port 261 output port 262 m_handle 0xae202788
2020-02-10 18:10:06.034 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0x9a9a5468
2020-02-10 18:10:06.035 T:2931814608   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_splitter) - port(261), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(19200), nBufferAlignment(32)
2020-02-10 18:10:06.058 T:2503995600   DEBUG: VideoPlayer::Sync - Audio - pts: 321000.000000, cache: 368554.497452, totalcache: 699999.988079
2020-02-10 18:10:06.058 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_RESYNC(-100000.000000), level: 47, cache: 404064.885785
2020-02-10 18:10:06.059 T:2478817488   DEBUG: CDVDAudio::Resume - resume audio stream
2020-02-10 18:10:06.059 T:2942300368   DEBUG: ActiveAE - start sync of audio stream
2020-02-10 18:10:07.213 T:2478817488   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-30357.780231, adjusted:-33333.333333
2020-02-10 18:10:16.274 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
2020-02-10 18:10:16.274 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
2020-02-10 18:10:16.362 T:2478817488   DEBUG: CDVDAudio::Flush - flush audio stream
2020-02-10 18:10:16.362 T:2478817488   DEBUG: CDVDAudio::Pause - pausing audio stream
2020-02-10 18:10:16.362 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
2020-02-10 18:10:16.372 T:2478817488   DEBUG: CDVDAudio::Pause - pausing audio stream
2020-02-10 18:10:16.468 T:2503995600    INFO: ffmpeg[953FF0D0]:     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
2020-02-10 18:10:16.476 T:2503995600  NOTICE: Finding audio codec for: 86018
2020-02-10 18:10:16.477 T:2503995600  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-02-10 18:10:16.483 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_PAUSE: 0
2020-02-10 18:10:16.483 T:2478817488   DEBUG: CDVDAudio::Pause - pausing audio stream
2020-02-10 18:10:16.484 T:2478817488   DEBUG: CVideoPlayerAudio:: synctype set to 0: clock feedback
2020-02-10 18:10:16.654 T:2503995600   DEBUG: VideoPlayer::Sync - Audio - pts: 298666.000000, cache: 395996.496785, totalcache: 699999.988079
2020-02-10 18:10:16.654 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_RESYNC(-100000.000000), level: 47, cache: 378432.219119
2020-02-10 18:10:16.654 T:2478817488   DEBUG: CDVDAudio::Resume - resume audio stream
2020-02-10 18:10:16.654 T:2942300368   DEBUG: ActiveAE - start sync of audio stream
2020-02-10 18:10:17.785 T:2478817488   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-29970.305302, adjusted:-29970.305302
2020-02-10 18:11:26.912 T:2688520400   DEBUG: UpdateAudioSystemStatus - no CEC capable amplifier found
2020-02-10 18:11:38.494 T:2478817488   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-10093.392832, adjusted:-10093.392832
2020-02-10 18:11:56.845 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_EOF
2020-02-10 18:11:56.923 T:2503995600  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
2020-02-10 18:11:56.924 T:2503995600  NOTICE: Waiting for audio thread to exit
2020-02-10 18:11:56.924 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
2020-02-10 18:11:56.924 T:2478817488  NOTICE: thread end: CVideoPlayerAudio::OnExit()
2020-02-10 18:11:56.924 T:2503995600  NOTICE: Closing audio device
2020-02-10 18:11:56.924 T:2478817488   DEBUG: Thread VideoPlayerAudio 2478817488 terminating
2020-02-10 18:11:57.046 T:2942300368   DEBUG: CActiveAE::DiscardStream - audio stream deleted
2020-02-10 18:11:57.046 T:2503995600  NOTICE: Deleting audio codec
2020-02-10 18:11:57.397 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
2020-02-10 18:11:57.407 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_splitter handle 0xae202788
2020-02-10 18:11:57.408 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae203180
2020-02-10 18:11:57.409 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0x9a9a5468
2020-02-10 18:11:57.410 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
2020-02-10 18:11:57.411 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae225d58
2020-02-10 18:11:57.413 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_splitter input port 261 output port 262 m_handle 0x9a9bd9b8
2020-02-10 18:11:57.414 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae2f7ee8
2020-02-10 18:11:57.416 T:2931814608   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_splitter) - port(261), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(17664), nBufferAlignment(32)
2020-02-10 18:13:07.529 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
2020-02-10 18:13:07.535 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_splitter handle 0x9a9bd9b8
2020-02-10 18:13:07.536 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae225d58
2020-02-10 18:13:07.538 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae2f7ee8

I have now tried another upgrade, so I have the latest kernel too. I have also tried with a different RPi4, so it doesn't appear to be a hardware problem. I have tried a lot of different configurations on Kodi's side, but only the attempt to add analog output has made a difference.

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

Re: [Guide] Kodi on Raspbian Buster

Wed Feb 12, 2020 5:03 pm

KjetilK wrote:
Mon Feb 10, 2020 6:33 pm
I really love that Kodi works so well on Raspbian, it is really valuable to be able to run it on an OS that is very close to what I use on all my other computers. Thanks a lot for that!

Since upgrading audio and CEC remote broke for me. The whole thing is pretty weird, it started since I didn't have DTS passthrough working, but everything else was working perfectly. Reading this thread, I did an upgrade. I just checked the movie that didn't work, and it looked OK, and then went to bed, and then, the next morning, things weren't working. :?

I have an RPi4, with this config:

Code: Select all

2020-02-10 18:04:46.539 T:2973367392  NOTICE: Raspberry PI firmware version: Jan 30 2020 13:50:45 
                                            Copyright (c) 2012 Broadcom
                                            version 8f792e011c8a0ea3c5d47e7cc10172cc10b93c09 (clean) (release) (start)
2020-02-10 18:04:46.539 T:2973367392  NOTICE: ARM mem: 864MB GPU mem: 160MB MPG2:0 WVC1:0
2020-02-10 18:04:46.539 T:2973367392  NOTICE: Config:
                                            arm_freq=1500
                                            audio_pwm_mode=514
                                            config_hdmi_boost=5
                                            core_freq=500
                                            core_freq_min=200
                                            disable_commandline_tags=2
                                            disable_l2cache=1
                                            display_hdmi_rotate=-1
                                            display_lcd_rotate=-1
                                            enable_gic=1
                                            force_eeprom_read=1
                                            force_pwm_open=1
                                            framebuffer_ignore_alpha=1
                                            framebuffer_swap=1
                                            gpu_freq=500
                                            gpu_freq_min=250
                                            hdmi_channel_map=8
                                            init_uart_clock=0x2dc6c00
                                            lcd_framerate=60
                                            mask_gpu_interrupt0=1024
                                            mask_gpu_interrupt1=0x10000
                                            max_framebuffers=2
                                            over_voltage_avs=-23750
                                            pause_burst_frames=1
                                            program_serial_random=1
                                            total_mem=1024
                                            hdmi_force_cec_address:0=65535
                                            hdmi_force_cec_address:1=65535
                                            hdmi_pixel_freq_limit:0=0x11e1a300
                                            hdmi_pixel_freq_limit:1=0x11e1a300
2020-02-10 18:04:46.539 T:2973367392  NOTICE: Config:
                                            device_tree=-
                                            overlay_prefix=overlays/
                                            hdmi_cvt:0=
                                            hdmi_cvt:1=
                                            hdmi_edid_filename:0=
                                            hdmi_edid_filename:1=
                                            hdmi_timings:0=
                                            hdmi_timings:1=
For the remote, I see the CEC plugin starting. Usually, something reports that RC remote is enabled shortly thereafter, but that usually doesn't happen now. I have seen it happening if I connect an USB keyboard. But it seems unstable. Sometimes, I see permission errors on /var/run/lirc/lircd , something I don't. It doesn't seem to be created, though. Sometimes it works for a few minutes, then stops working again.

This what I see in the logs:

Code: Select all

root@stua:/home/pi/.kodi/temp# grep -i cec kodi.log 
2020-02-10 18:04:50.375 T:2973367392   DEBUG: LoadMappings - loaded node "CEC Adapter"
2020-02-10 18:04:50.375 T:2973367392   DEBUG: LoadMappings - loaded node "Pulse-Eight CEC Adapter"
2020-02-10 18:04:50.380 T:2722091216   DEBUG: Thread PeripBusCEC start, auto delete: false
2020-02-10 18:04:50.838 T:2722091216   DEBUG: GetMappingForDevice - device (2708:1001) mapped to CEC Adapter (type = cec)
2020-02-10 18:04:50.840 T:2722091216   DEBUG: InitialiseFeature - using libCEC v4.0.4
2020-02-10 18:04:50.842 T:2722091216  NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001)
2020-02-10 18:04:50.842 T:2722091216   DEBUG: Thread PeripBusCEC 2722091216 terminating
2020-02-10 18:04:50.842 T:2555375824   DEBUG: Thread CECAdapter start, auto delete: false
2020-02-10 18:04:50.842 T:2555375824   DEBUG: OpenConnection - opening a connection to the CEC adapter: RPI
2020-02-10 18:09:36.844 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 0
2020-02-10 18:09:42.846 T:2555375824   DEBUG: OpenConnection - connection to the CEC adapter opened
2020-02-10 18:09:42.846 T:2555375824   DEBUG: SetConfigurationFromLibCEC - settings updated by libCEC
2020-02-10 18:09:42.846 T:2688520400   DEBUG: Thread CECAdapterUpdate start, auto delete: false
2020-02-10 18:09:51.849 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 15005
2020-02-10 18:11:17.906 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 0
2020-02-10 18:11:26.912 T:2688520400   DEBUG: UpdateAudioSystemStatus - no CEC capable amplifier found
2020-02-10 18:11:29.915 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 0
2020-02-10 18:11:37.418 T:2603094224   DEBUG: PushCecKeypress - received key a8 duration 0
I'm not seeing any more recent keypresses.

I have little to go on with regards to the audio. I use HDMI, with an audio splitter with optical SPDIF. I used to have only HDMI output, now I have analog+HDMI and analog audio is working, so right now, I'm sending analog to the speakers, but it is a 5.1 setup, so I rather want that.

I'm not getting sound on HDMI with speaker-test.

This is what I get when grepping logs:

Code: Select all

root@stua:/home/pi/.kodi/temp# grep -i audio kodi.log 
2020-02-10 18:04:45.912 T:2973367392  NOTICE: Default Audio Player: paplayer
2020-02-10 18:04:46.023 T:2973367392  NOTICE: PulseAudio: Server not running
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.flac v2.0.5 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.kodi.builtin.aac v1.0.0 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.kodi.builtin.wma v1.0.0 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.lame v2.0.3 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: audioencoder.vorbis v2.0.3 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: kodi.binary.global.audioengine v1.0.1 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: kodi.binary.instance.audiodecoder v2.0.0 installed
2020-02-10 18:04:46.280 T:2973367392  NOTICE: ADDON: kodi.binary.instance.audioencoder v2.0.0 installed
2020-02-10 18:04:46.281 T:2973367392  NOTICE: ADDON: metadata.common.theaudiodb.com v2.0.3 installed
2020-02-10 18:04:46.472 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
2020-02-10 18:04:46.473 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae203180
2020-02-10 18:04:46.474 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_splitter input port 261 output port 262 m_handle 0xae202788
2020-02-10 18:04:46.475 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae200668
2020-02-10 18:04:46.476 T:2931814608   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_splitter) - port(261), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(17664), nBufferAlignment(32)
                                            audio_pwm_mode=514
2020-02-10 18:04:49.606 T:2973367392   DEBUG: LocalizeStrings: loaded 2 strings from file /usr/share/kodi/addons/audioencoder.flac/resources/language/resource.language.en_gb/strings.po
2020-02-10 18:04:49.608 T:2973367392   DEBUG: LocalizeStrings: loaded 1 strings from file /usr/share/kodi/addons/audioencoder.kodi.builtin.aac/resources/language/English/strings.po
2020-02-10 18:04:49.611 T:2973367392   DEBUG: LocalizeStrings: loaded 1 strings from file /usr/share/kodi/addons/audioencoder.kodi.builtin.wma/resources/language/English/strings.po
2020-02-10 18:04:49.613 T:2973367392   DEBUG: LocalizeStrings: loaded 9 strings from file /usr/share/kodi/addons/audioencoder.lame/resources/language/resource.language.en_gb/strings.po
2020-02-10 18:04:49.616 T:2973367392   DEBUG: LocalizeStrings: loaded 9 strings from file /usr/share/kodi/addons/audioencoder.vorbis/resources/language/resource.language.en_gb/strings.po
2020-02-10 18:04:50.262 T:2973367392   DEBUG: CDirectoryProvider[addons://sources/audio/]: refreshing..
2020-02-10 18:04:50.423 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
2020-02-10 18:04:50.423 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
2020-02-10 18:10:05.763 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
2020-02-10 18:10:05.764 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
2020-02-10 18:10:05.867 T:2503995600    INFO: ffmpeg[953FF0D0]:     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
2020-02-10 18:10:05.884 T:2503995600  NOTICE: Finding audio codec for: 86018
2020-02-10 18:10:05.885 T:2503995600  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-02-10 18:10:05.885 T:2503995600  NOTICE: Creating audio thread
2020-02-10 18:10:05.892 T:2478817488   DEBUG: Thread VideoPlayerAudio start, auto delete: false
2020-02-10 18:10:05.892 T:2478817488  NOTICE: running thread: CVideoPlayerAudio::Process()
2020-02-10 18:10:05.892 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_PAUSE: 0
2020-02-10 18:10:05.892 T:2478817488   DEBUG: CDVDAudio::Pause - pausing audio stream
2020-02-10 18:10:05.894 T:2478817488  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
2020-02-10 18:10:05.894 T:2478817488   DEBUG: CVideoPlayerAudio:: synctype set to 0: clock feedback
2020-02-10 18:10:06.024 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
2020-02-10 18:10:06.028 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_splitter handle 0xae202788
2020-02-10 18:10:06.029 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae203180
2020-02-10 18:10:06.030 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae200668
2020-02-10 18:10:06.031 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
2020-02-10 18:10:06.032 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae203180
2020-02-10 18:10:06.033 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_splitter input port 261 output port 262 m_handle 0xae202788
2020-02-10 18:10:06.034 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0x9a9a5468
2020-02-10 18:10:06.035 T:2931814608   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_splitter) - port(261), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(19200), nBufferAlignment(32)
2020-02-10 18:10:06.058 T:2503995600   DEBUG: VideoPlayer::Sync - Audio - pts: 321000.000000, cache: 368554.497452, totalcache: 699999.988079
2020-02-10 18:10:06.058 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_RESYNC(-100000.000000), level: 47, cache: 404064.885785
2020-02-10 18:10:06.059 T:2478817488   DEBUG: CDVDAudio::Resume - resume audio stream
2020-02-10 18:10:06.059 T:2942300368   DEBUG: ActiveAE - start sync of audio stream
2020-02-10 18:10:07.213 T:2478817488   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-30357.780231, adjusted:-33333.333333
2020-02-10 18:10:16.274 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
2020-02-10 18:10:16.274 T:2973367392   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
2020-02-10 18:10:16.362 T:2478817488   DEBUG: CDVDAudio::Flush - flush audio stream
2020-02-10 18:10:16.362 T:2478817488   DEBUG: CDVDAudio::Pause - pausing audio stream
2020-02-10 18:10:16.362 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
2020-02-10 18:10:16.372 T:2478817488   DEBUG: CDVDAudio::Pause - pausing audio stream
2020-02-10 18:10:16.468 T:2503995600    INFO: ffmpeg[953FF0D0]:     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
2020-02-10 18:10:16.476 T:2503995600  NOTICE: Finding audio codec for: 86018
2020-02-10 18:10:16.477 T:2503995600  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-02-10 18:10:16.483 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_PAUSE: 0
2020-02-10 18:10:16.483 T:2478817488   DEBUG: CDVDAudio::Pause - pausing audio stream
2020-02-10 18:10:16.484 T:2478817488   DEBUG: CVideoPlayerAudio:: synctype set to 0: clock feedback
2020-02-10 18:10:16.654 T:2503995600   DEBUG: VideoPlayer::Sync - Audio - pts: 298666.000000, cache: 395996.496785, totalcache: 699999.988079
2020-02-10 18:10:16.654 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_RESYNC(-100000.000000), level: 47, cache: 378432.219119
2020-02-10 18:10:16.654 T:2478817488   DEBUG: CDVDAudio::Resume - resume audio stream
2020-02-10 18:10:16.654 T:2942300368   DEBUG: ActiveAE - start sync of audio stream
2020-02-10 18:10:17.785 T:2478817488   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-29970.305302, adjusted:-29970.305302
2020-02-10 18:11:26.912 T:2688520400   DEBUG: UpdateAudioSystemStatus - no CEC capable amplifier found
2020-02-10 18:11:38.494 T:2478817488   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-10093.392832, adjusted:-10093.392832
2020-02-10 18:11:56.845 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_EOF
2020-02-10 18:11:56.923 T:2503995600  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
2020-02-10 18:11:56.924 T:2503995600  NOTICE: Waiting for audio thread to exit
2020-02-10 18:11:56.924 T:2478817488   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
2020-02-10 18:11:56.924 T:2478817488  NOTICE: thread end: CVideoPlayerAudio::OnExit()
2020-02-10 18:11:56.924 T:2503995600  NOTICE: Closing audio device
2020-02-10 18:11:56.924 T:2478817488   DEBUG: Thread VideoPlayerAudio 2478817488 terminating
2020-02-10 18:11:57.046 T:2942300368   DEBUG: CActiveAE::DiscardStream - audio stream deleted
2020-02-10 18:11:57.046 T:2503995600  NOTICE: Deleting audio codec
2020-02-10 18:11:57.397 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
2020-02-10 18:11:57.407 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_splitter handle 0xae202788
2020-02-10 18:11:57.408 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae203180
2020-02-10 18:11:57.409 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0x9a9a5468
2020-02-10 18:11:57.410 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
2020-02-10 18:11:57.411 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae225d58
2020-02-10 18:11:57.413 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_splitter input port 261 output port 262 m_handle 0x9a9bd9b8
2020-02-10 18:11:57.414 T:2931814608   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0xae2f7ee8
2020-02-10 18:11:57.416 T:2931814608   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_splitter) - port(261), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(17664), nBufferAlignment(32)
2020-02-10 18:13:07.529 T:2931814608   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
2020-02-10 18:13:07.535 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_splitter handle 0x9a9bd9b8
2020-02-10 18:13:07.536 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae225d58
2020-02-10 18:13:07.538 T:2931814608   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xae2f7ee8

I have now tried another upgrade, so I have the latest kernel too. I have also tried with a different RPi4, so it doesn't appear to be a hardware problem. I have tried a lot of different configurations on Kodi's side, but only the attempt to add analog output has made a difference.
I don't see any errors in your logs and you can ignore the /var/run/lirc/lircd error as it is related to infrared remotes only, not CEC.

To exclude any bad configuration in your setup, I recommend that you backup your Kodi settings, like for example, moving /home/pi/.kodi to /home/pi/.kodi_backup, with Kodi turned off. Then start Kodi and see if the problem persists.

Also note that some HDMI cables might not work good on the Raspberry, too long ones may cause problems. The same with splitters and amplifiers/AVRs.

Nitrous76
Posts: 3
Joined: Wed Feb 12, 2020 11:15 pm

Re: [Guide] Kodi on Raspbian Buster

Wed Feb 12, 2020 11:28 pm

Hi All, Please excuse any ignorance, I’m new to Raspbian and Linux for that matter but I’m trying :D I have installed as per OP and included the udev rule but when I open Kodi, nothing happens?? I get the “hour glass” and it just seems like everything freezes and I have to reboot via SSH. I’m not sure how to get the logs? I tried “pastebinit \$HOME/.kodi/temp/kodi.log“ But I get an error that says

/usr/bin/pastebinit:42: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
release = platform.linux_distribution()[0].lower()
Unable to read from: $HOME/.kodi/temp/kodi.log

Any help appreciated, thanks

Nitrous76
Posts: 3
Joined: Wed Feb 12, 2020 11:15 pm

Re: [Guide] Kodi on Raspbian Buster

Thu Feb 13, 2020 9:22 am

Hi All

I thought I posted this last night but can't seem to find it.
Apologies if this has been asked and answered and also please forgive any ignorance as I'm quite new to Rasbian and linux. I've installed Kodi onto Raspbian (Pi 4 4GB) as per the opening post here, made all the tweaks and the additional "udev" rule mentioned earlier in the forum but when I start Kodi all I get is the little "thinking" hourglass, nothing else. The session becomes unresponsive and I have to reboot via SSH. It's worth noting that I don't have the Pi connected to a screen as I'm trying to configure it all over VNC directly connected to my ipad Pro.
I'd appreciate any help I can get thanks

Lipown
Posts: 86
Joined: Sun Oct 13, 2019 8:32 am

Re: [Guide] Kodi on Raspbian Buster

Thu Feb 13, 2020 9:45 am

Nitrous76 wrote:
Thu Feb 13, 2020 9:22 am
Hi All

I thought I posted this last night but can't seem to find it.
Apologies if this has been asked and answered and also please forgive any ignorance as I'm quite new to Rasbian and linux. I've installed Kodi onto Raspbian (Pi 4 4GB) as per the opening post here, made all the tweaks and the additional "udev" rule mentioned earlier in the forum but when I start Kodi all I get is the little "thinking" hourglass, nothing else. The session becomes unresponsive and I have to reboot via SSH. It's worth noting that I don't have the Pi connected to a screen as I'm trying to configure it all over VNC directly connected to my ipad Pro.
I'd appreciate any help I can get thanks
Iam noob too, but I am affraid you are not able to do it this way. You need to have the display connected. It does not working me trough VNC either.

Nitrous76
Posts: 3
Joined: Wed Feb 12, 2020 11:15 pm

Re: [Guide] Kodi on Raspbian Buster

Thu Feb 13, 2020 11:14 am

Lipown wrote:
Thu Feb 13, 2020 9:45 am
Nitrous76 wrote:
Thu Feb 13, 2020 9:22 am
Hi All

I thought I posted this last night but can't seem to find it.
Apologies if this has been asked and answered and also please forgive any ignorance as I'm quite new to Rasbian and linux. I've installed Kodi onto Raspbian (Pi 4 4GB) as per the opening post here, made all the tweaks and the additional "udev" rule mentioned earlier in the forum but when I start Kodi all I get is the little "thinking" hourglass, nothing else. The session becomes unresponsive and I have to reboot via SSH. It's worth noting that I don't have the Pi connected to a screen as I'm trying to configure it all over VNC directly connected to my ipad Pro.
I'd appreciate any help I can get thanks
Iam noob too, but I am affraid you are not able to do it this way. You need to have the display connected. It does not working me trough VNC either.
Thanks for the reply, I'll try this tonight. :D

KjetilK
Posts: 5
Joined: Sun Dec 15, 2019 11:56 pm

Re: [Guide] Kodi on Raspbian Buster

Thu Feb 13, 2020 2:23 pm

Rascas wrote:
Wed Feb 12, 2020 5:03 pm

I don't see any errors in your logs and you can ignore the /var/run/lirc/lircd error as it is related to infrared remotes only, not CEC.
OK, good to know!
Rascas wrote:
Wed Feb 12, 2020 5:03 pm
To exclude any bad configuration in your setup, I recommend that you backup your Kodi settings, like for example, moving /home/pi/.kodi to /home/pi/.kodi_backup, with Kodi turned off. Then start Kodi and see if the problem persists.
Yeah, it does persist, I'm afraid... Seems to be no changes, neither to the remote nor the sound.
Rascas wrote:
Wed Feb 12, 2020 5:03 pm
Also note that some HDMI cables might not work good on the Raspberry, too long ones may cause problems. The same with splitters and amplifiers/AVRs.
Yes, I'm aware. I have used that for quite some time though, more than a year, and it also worked with the Raspbian setup that I've had since December prior to the 18.5 upgrade.

packrat4gb
Posts: 1
Joined: Thu Feb 13, 2020 3:31 pm

Re: [Guide] Kodi on Raspbian Buster

Thu Feb 13, 2020 4:22 pm

Hi @rascas :D (and everyone),

First, many thanks again for your work on this package - it is really helpful to many folk(s), including me as well!!!

Looks like I'm running is similar "issues" (usecase) of wanting to access kodi remotely via vnc.

FYI, for those that are interested kodi does have a web interface if it is enabled at yourpi:8080... , but..... it doesn't seem to have an "exit" option in the interface.... (armchair searchers please provide info if it is available)... but if this fixed, kodi doesn't seem to release the display/fb).

My issue/usecase is when I'm not in front of the TV with kodi running on the screen, I'm trying to access the desktop via (real)vnc...

The issue is kodi<>#desktop, kodi "steals" the display hardware (framebuffer) from the desktop. (If the web interface allowed stopping then I could get my desktop back, this works locally on the TV).. another workaround is just run realvnc in virtual mode.....

But, it seems this was fixed/addressed by the guy who did RaspBMC (then created OSMC cool stuff sir! https://osmc.tv/blog/) back in ~2013.... here: viewtopic.php?t=49707
and then here: https://discourse.osmc.tv/t/howto-insta ... ry-pi/1517

I haven't tried it yet... (I hoping 7 years later and newer hardware pi4 that it works)...

Can someone review and comment?

Please&thanks!

Frank

P.S. This thread is getting long... maybe we can create new ones with like this one for instance Subject: Kodi - vnc issues ? What does everyone think?

P.S. 2 yes I can can kill -9 kodi and remove it from lxpanel but then I need to reboot to steal the display/fb back again...

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

Re: [Guide] Kodi on Raspbian Buster

Thu Feb 13, 2020 6:24 pm

packrat4gb wrote:
Thu Feb 13, 2020 4:22 pm
Hi @rascas :D (and everyone),

First, many thanks again for your work on this package - it is really helpful to many folk(s), including me as well!!!

Looks like I'm running is similar "issues" (usecase) of wanting to access kodi remotely via vnc.

FYI, for those that are interested kodi does have a web interface if it is enabled at yourpi:8080... , but..... it doesn't seem to have an "exit" option in the interface.... (armchair searchers please provide info if it is available)... but if this fixed, kodi doesn't seem to release the display/fb).

My issue/usecase is when I'm not in front of the TV with kodi running on the screen, I'm trying to access the desktop via (real)vnc...

The issue is kodi<>#desktop, kodi "steals" the display hardware (framebuffer) from the desktop. (If the web interface allowed stopping then I could get my desktop back, this works locally on the TV).. another workaround is just run realvnc in virtual mode.....

But, it seems this was fixed/addressed by the guy who did RaspBMC (then created OSMC cool stuff sir! https://osmc.tv/blog/) back in ~2013.... here: viewtopic.php?t=49707
and then here: https://discourse.osmc.tv/t/howto-insta ... ry-pi/1517

I haven't tried it yet... (I hoping 7 years later and newer hardware pi4 that it works)...

Can someone review and comment?

Please&thanks!

Frank

P.S. This thread is getting long... maybe we can create new ones with like this one for instance Subject: Kodi - vnc issues ? What does everyone think?

P.S. 2 yes I can can kill -9 kodi and remove it from lxpanel but then I need to reboot to steal the display/fb back again...
This was already talked here. VNC, RDP and other remote desktops that access Xorg, won't work on the RPi 4 when Kodi is on. RealVNC and dispmanx VNC work only on RPi 0/1/2/3. As long as Kodi on RPi 4 uses GBM, I don't think it will be possible.

KjetilK
Posts: 5
Joined: Sun Dec 15, 2019 11:56 pm

Re: [Guide] Kodi on Raspbian Buster

Fri Feb 14, 2020 10:49 pm

Following up on myself and the problems I have with sound and remote control.

I now downgraded kodi, kodi-addon-dev and kodi-bin to 2:18.4-6~buster, but it didn't help. I also replaced the RPi itself, used a different HDMI cable, and for good measure a different power source and a different Ethernet cable. So there's no splitter in the setup now.

What haven't occured to me before, but there isn't actually any sound on the HDMI output at all, even though I have the setup that it should use HDMI and Analogue.

Now, the remote control system pops up on the screen every few minutes and says "RC activated" or something like that. Usually, it says that just after the screen starts, so I am assuming that it comes up, but is active only for a second, falls down and stays down for a few minutes, comes back up, falls down... I would be surprised if it is my hardware at this point (the SD card is the only thing that remains the same).

Are there anything else I should try to downgrade?

Edit: FWIW, I downgraded the packages in raspberrypi-firmware/ (including the kernel) and it seems to have improved the situation somewhat for the remote. It seems I sometimes need to plug in a keyboard, perhaps after it enters some power save state, but once that's done, it works reliably. There's no change with the audio, though.

Also, I use etckeeper, and these are the packages that was upgraded when things broke: https://pastebin.com/sk0N3rG3

KjetilK
Posts: 5
Joined: Sun Dec 15, 2019 11:56 pm

Re: [Guide] Kodi on Raspbian Buster

Mon Feb 17, 2020 4:01 pm

FWIW, I did a completely from-scratch reinstall now. A new RPi, new cables, no splitter, new SD card, even new power source.
I installed the Raspbian Lite image from 2019-09-26, when I originally installed Raspbian, and then, I took the Kodi version 2:18.4-6~buster packages, and wrangled them in somehow.

It didn't make a difference, not audio, and even though it looks like the remote is working sometimes, it takes about 10 minutes after startup until it works allright, so there's still something wrong. I have tried with two remotes and changed batteries in one of them.

So, it seems it is not actually the kodi packages that are the culprit here. I'm not sure what it is, since most of the packages I installed were from the RPi 2019-09-26, but some Kodi dependencies were taken from the archive.

It might be that something weird has happened to my config, but since I use etckeeper, it should show in the diffs, and I can't say anything stands out on me. It might be that some of the deps that were upgraded were broken, but I can't see anything clear there either. And it might be that both the TV and the splitter broke at the same time. That too would be strange... So, I'm pretty lost here.

ParanoYak
Posts: 4
Joined: Mon Jan 06, 2020 12:31 pm

Re: [Guide] Kodi on Raspbian Buster

Tue Feb 18, 2020 12:35 pm

Hello

I have kodi installed following the first page and a LG TV. It’s working fine excepted that Kodi keeps switching HDMI sources to Kodi when I switch my tv on.

- I switch tv on
- kodi changes the source to itself
- I have to switch the source to TV after 5 secs (if I do it before it switches back to kodi).

It’s quite annoying if I just want to watch TV. I tried to disable everything in kodi cec settings and also to add hdmi_ignore_cec_init=1 to config.txt without any effect.

It seems to be a known bug with libcec, do you know how to solve it ?

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

Re: [Guide] Kodi on Raspbian Buster

Tue Feb 18, 2020 1:04 pm

ParanoYak wrote:
Tue Feb 18, 2020 12:35 pm
Hello

I have kodi installed following the first page and a LG TV. It’s working fine excepted that Kodi keeps switching HDMI sources to Kodi when I switch my tv on.

- I switch tv on
- kodi changes the source to itself
- I have to switch the source to TV after 5 secs (if I do it before it switches back to kodi).

It’s quite annoying if I just want to watch TV. I tried to disable everything in kodi cec settings and also to add hdmi_ignore_cec_init=1 to config.txt without any effect.

It seems to be a known bug with libcec, do you know how to solve it ?
No I don't know how to solve it, it has to be fixed in the libcec library and I am not a libcec developer.

But take a look at that:
https://github.com/Pulse-Eight/libcec/issues

See if there is any issue similar to yours, some issues have a workaround by changing the libcec source code and recompiling it.

ParanoYak
Posts: 4
Joined: Mon Jan 06, 2020 12:31 pm

Re: [Guide] Kodi on Raspbian Buster

Tue Feb 18, 2020 4:53 pm

I found the exact same issue in github and this seem to resolve it for other LG TV owners:

https://github.com/Pulse-Eight/libcec/pull/390

I manage to compile libcec, but how can I tell kodi to use the libcec.so file I get instead of the old one ?

Return to “Raspbian”