Posts by popcornmix

    Quote
    • This suggests Kodi is dying when trying to render some text from an addon (or skin element) while Python is executing.

    I don't see evidence for that from a single crash log. The font rendering thread is just what kodi was doing when other thread crashed with a SEGV. The crashed thread was python related. It's most likely just luck what other threads happen to be doing when the python thread crashes.

    As chewitt says:

    find the date of first nightly with the issue.

    find if you can provoke the issue with a clean .kodi

    You might want to try installing kodi21 from RPiOS which supports wayland, and much like Xorg on the PC, allows the compositor (outside of Kodi's knowledge) to rotate the screen.

    Note that this will use EGL for composition, rather than DRM which is a less efficient path. It should be fine for 1080p60, but will struggle with 4K video.

    But you can give it a try quite easily, to see if it meets your requirements. Use the preferenced/screen configuration tool (from the desktop) to set the display rotation, then launch kodi (the desktop version, not the fullscreen version). You can switch the desktop kodi to use fullscreen when running.

    With that in the file, and the HDMI plugged in closest to the power cable, it does work, as long as the HDMI is plugged in at boot, and not afterwards.

    You should be using:

    video=HDMI-A-1:1920x1080M@60D

    The D means assume it's connected (otherwise you will need to have a display connected at boot).

    You should always use the primary hdmi connector (closest to power connector).

    I wonder if this patch (done properly) could make it into the official repo? While it is a workaround for an LG TV bug, I am not sure the possibility of engaging PC mode would ever be preferable for a Kodi distro.

    Reporting a PC style device as a PC style device sounds like the correct behaviour.

    The TV not allowing the user to choose picture enhanced based based on this seems like the bug.

    I'd be nervous about changing the reported source type for everyone. I believe using PC mode will often default to a non-overscanned display which is desirable and the change you are suggesting may make things worse for others.

    The correct solution is to complain to LG and hopefully a firmware update will allow your use case to work.

    The workaround should be that the kernel defaults to PC mode. but allows a runtime override (perhaps through sysfs) to change the SPD_SDI type. A display settings option in kodi could allow setting this. But that is more work, and really needs to be done in the upstream linux and kodi repos, not by LibreELEC.

    You can see the infoframe used:

    I'm guessing it's the "PC general" that causes the bad behaviour in your TV which is set here.

    This is generic linux kernel code, so all linux platforms will behave the same (assuming they support the spd infoframe).

    I'd say the code is correct. Based on the options available that is the best match for a Pi or PC.

    Changing from HDMI_SPD_SDI_PC to HDMI_SPD_SDI_UNKNOWN might avoid the issue with your TV, but it's not runtime configurable (you will need to patch that line in kernel and rebuild LibreELEC).

    There is (effectively) no AAC passthrough anywhere.

    It is mentioned in specs, but n o consumer devices output it and kodi doesn't support it.

    Kodi can decode the 6-channel AAC and output 6-channel PCM.

    This is lossless and will have perfect quality, but relies on connection to AVR to support multichannel PCM.

    It's not clear from your post how the TV and AVR are connected.

    Ideally you connect pi-<hdmi>-AVR-<hdmi>-TV but it sounds like you are not (due to AVR not supporting 4K, but TV does).

    I assume you care connecting pi-<hdmi>-TV-<something>-AVR?

    What is the <something>? Is that ARC or toslink/spdif?

    They are limited to two-channel PCM. But two-channel PCM can carry passthrough of AC3 or DTS.

    (Note: AAC and AC3 are distinct formats).

    The good news is kodi can be configured to decode AAC, encode it to AC3 and output that as passthrough.

    That will likely get you multi-channel audio. The operation is lossy, but would be imperceptible to most people.


    In system/audio settings set:

    Number of channels: 2

    Allow passthrough: On

    Dolby Digital (AC3) capable receiver: On

    - Enable Dolby Digital (AC3) transcoding: On

    DTS capable receiver: Off (you could try on, but that is less commonly supported by TVs)

    One other note, I've notice a message in the journalctl -a -b -0  section of the log when running pastekodi that had a warning about undervolting. I was originally using a 10W power supply, and I've changed that to a 20W power supply now. Wanted to mention that in case that solves the issue.

    Running with an inadequate power supply (that the undervolting lines prove) can certainly cause random crashes.