Firstly, many thanks for all your efforts - OSMC/Kodi on the Pi2 is a really cracking media centre. However, I have a fairly unique problem that is causing it to hang regularly so I was wondering if anyone could help?
I have a Pi2 connected through an Onkyo TX-NR626 amp (in video bypass mode) to a Panasonic TX-P50GT60B which supports 1080p CEA modes 5, 16, 20, 31, 32, 33, 34 (according to ‘tvservice -m CEA’).
I boot into 1080p/50 (mode 31) and playing back 50fps files is fine (e.g. DVD rips). However, if I attempt to play back two 24fps film clips (e.g. BluRay rips) in a row then although the TV switches correctly the first and second time (to 24Hz) on the second time the display then remains blank and Kodi hangs (no response to USB remote or Yatse IP remote - reported as “offline”), although occasional blips of audio can be heard so the film is playing in the background. I can ssh in and restart the mediacenter service fine though and Kodi restarts itself successfully with the normal Kodi menu.
I have found that this problem is easily reproduced without video playback by doing the following:
Boot into 1080p/50. In settings change up a refresh rate to 59.94 (TV switches) but then don’t accept the change (TV switches back down again but Kodi still says 59.94 in the dialog). The select the next highest refresh rate mode of 60 (TV switches) → display goes blank and kodi has hung.
With debug logging enabled, I had to change refresh rates a few more time to cause the hang - see debug log (hangs at 08:11:41): http://paste.osmc.io/ovagadigeg.vhdl.
I have tested another Pi2, a new power supply and a new uSD card with no difference so I’m certain it is something peculiar to my particular HDMI chain and components. I have also managed to test with a very similar setup that has a RPi2 through an Onkyo TX-NR1010 amp to the 42" version of the same Panasonic TV and that doesn’t exhibit the same problem.
I have tried playing with config_hdmi_boost with no improvement. Setting hdmi_clock_change_limit=20 didn’t affect the video but the blips of playing audio are slightly longer (upto 1 second). I have also played with hdmi_ignore_edid, hdmi_force_edid_audio and manually setting hdmi_group=1 & hdmi_mode=31 & hdmi_ignore_edid=0xa5000080 but no change. Setting hdmi_safe only permits VGA 59.94 & 60Hz display modes and switching between these doesn’t cause any problems it appears.
In the errored state, the amp shows the input & output video information as 1080p/24Hz (or whatever was selected) but shows the audio flicking quickly from DTS 5.1 (if that was the source) through UNKNOWN to PCM 2.0 and back again - it looks like it’s failing to sync correctly. Note: audio is passed-through from the Pi to the amp for decoding.
As a final test I installed OpenELEC 6 this morning and that behaves exactly the same as OSMC.
I appreciate that it’s probably unique to my situation but I was wondering if anyone can help create a workaround as at the moment I have to turn off “adjust refresh rate” to stop it crashing.
Many thanks in advance!
Jon