RPi4 freeze when AVR switched or HDMI disconnected

  • I have been trying to configure my RPi4 (LibreELEC 9.2.0, KODI 18.5), to be alway on.

    Whenever the AVR/Amplifier is switched off or the HDMI cable is disconnected the RPi4 freezes. The network interface still shows polling but I can not SSH into the Rpi until it is power cycled.

    As expected, switching on the AVR again shows "No Signal" from the Rpi.

    Other OS installs (DietPi; Raspbian Buster + KODI) remain ON and do not freeze.

    I searched forums for a couple of weeks looking for a solution.

    I have tried modifying config.txt

    Code
    hdmi_force_hotplug=1
    hdmi_drive=2

    I have tried disabling CEC in KODI settings.

    None of these changes have been sucessful. (perhaps an EDID emulator would work but it's an expensive solution)

  • Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link
  • I enabled debugging , (Not sure if I need to enable verbose component specific logging)

    When the amp and TV are switched off there is a delay before losing the SSH connection.

    I tried waiting 3-4 seconds after switch-off before executing dmesg | paste to see if I could capture any extra info but all log results are only from the last restart.

    http://ix.io/24z5

    Still learning.... any help appreciated