Video playback goes through PC speakers

  • Hello,

    I have an issue with sound from video playback. I have Libreelec running on a Lenovo m710q with a DP-to-HDMI cable running from the PC directly through the TV.

    The GUI sounds in Kodi come through the TV, but any videos I play are coming through the PC speakers. I have tried all the devices under "Settings > Audio" but they all result in the same thing. Even using 'aplay' and specifying any of the HDMI sound devices still results in sound coming through the PC speakers.

    The fact that the GUI sounds come through my TV would indicate that the cable is directing sound through it to the TV, but I just have absolutely no idea why video playback is not outputting to the TV speakers.

    I have attached a debug log.

    Any insight is greatly appreciated!

  • In the first playback attempt in the file (H264, 5.1 EAC3 audio) alsa first attempts to open the HDMI device:

    However this advertises no audio channel map data, see the ^ "UNKNOWN" so the alsa sink looks for a better output:

    The sysdefault entry (mapped to the analogue output) advertises FL/FR so this is selected and used.

    This is probably an issue with EDID/ELD data missing on the HDMI connection. I note that the only display-info in the log is:

    Code
    2026-02-25 22:50:24.109 T:2694     info <general>: [display-info] make: 'LG Electronics' model: 'LG FULL HD'

    Kodi also detects a limited set of resolutions (to me this looks like a monitor not a TV):

    but in a normal system, I'd expect something like this:

    and a set of resolutions like this:

    I haven't looked at source code, but I suspect Kodi blindly uses whatever audio device has been configured when outputting audio for GUI sounds; while media playback has logic to consider speaker layout so you get a different result.

    The normal cause of missing EDID/ELD data on HDMI connections is either cables or adapters (not passing it along). So you might have a cheap DP to HDMI adapter designed for presentations (supports video but not audio) or the DP chip in the Lenovo is doing something odd, or the HDMI cable might be bad, or perhaps there's something in BIOS/firmware settings, or perhaps the TV (or is it a monitor) outputs EDID that simply doesn't advertise audio /shrug

    The possible workaround is https://wiki.libreelec.tv/configuration/edid#intel done from another Linux device (that does see audio capabilities) and then transfer that configuration to the Lenovo. This will result in the kernel (and thus Kodi) seeing a TV with some audio capabilities as connected, and it will then try to transmit audio on the HDMI connection instead.

    In short, I don't see Kodi doing anything wrong here, and it looks like a local hardware problem.

  • Hrm, your comments about the EDID are interesting. The PC is actually connected to a TV, however, when I initially installed and configured this PC with Libreelec it was at my office, connected to a PC monitor (including generating the EDID so it could come up properly if rebooted while the connected display was not active).

    So is it possible that the EDID I generated like that is "passing" incorrect information setup-wise? If you think it might do the trick, I can generate a new EDID now that it is all connected "properly"?

    Edit: clarity

    Edited 2 times, last by SilkBC (February 26, 2026 at 11:12 PM).

  • Yes, that would explain everything. You captured from a monitor with no audio capabilities and that's what the device still sees as connected. So, self-inflicted problem. In future please share logs with "pastekodi" so we can see the system log in addition to the the Kodi log (and without having to download from the forum) .. would have saved a load of time as we'd be able to see the EDID forcing in kernel boot params and other info.

  • Yes, that would explain everything. You captured from a monitor with no audio capabilities and that's what the device still sees as connected. So, self-inflicted problem.

    So it turns out that that does not appear to be the issue :( I recreated the EDID but the sound from playing media is still only coming through the PC's speakers (GUI sounds still come from the TV)

    I enabled the debug logging and played another video (well, actually the same video I have been testing with). Here is the "pastekodi":

    https://paste.libreelec.tv/prompt-falcon.log

  • Code
    2026-02-26 20:08:45.355 T:2649     info <general>: [display-info] make: 'LG Electronics' model: 'LG FULL HD'
    2026-02-26 20:08:45.404 T:2649     info <general>: Found resolution 1920x1080 with 1920x1080 @ 60.000000 Hz

    I haven't looked at the script(s) involved in Intel GPU capture, but I suspect running "getedid create" without first running "getedid delete" to remove the config doesn't overwrite the existing capture files. The log lines above^ are from the kodi.log output and are the same as the previous logs shared (only a single 1080p mode, etc.) hence there is no change in Kodi behaviour.

  • I suspect running "getedid create" without first running "getedid delete" to remove the config doesn't overwrite the existing capture files.

    Ah! You are correct; I did not run 'getedid delete' and that did the trick. Aactually running *just* 'getedid delete' command allowed the sound to output through my TV speakers, but I ran the 'getedid create' again anyway just to make sure I could have the PC could back up up to Libreelec without issue after a reboot or power outage without having to have the TV actively on the input.

    Thanks for this! :)