Posts by HiassofT

    Which LE version are you using?

    I did a quick test on LE12 nightly and oddly kodi showed it under the name of my soundcard but with empty parenthesis after them (usually they have he name of the soundcard, again). Certainly some kodi oddity but I saw it in the log, too:

    Code
    2023-09-25 18:58:05.085 T:1120     info <general>:     Device 3
    2023-09-25 18:58:05.085 T:1120     info <general>:         m_deviceName      : both
    2023-09-25 18:58:05.085 T:1120     info <general>:         m_displayName     : RPi-Cirrus ()
    2023-09-25 18:58:05.085 T:1120     info <general>:         m_displayNameExtra: WM5102 AiFi wm5102-aif1-0
    2023-09-25 18:58:05.085 T:1120     info <general>:         m_deviceType      : AE_DEVTYPE_PCM
    2023-09-25 18:58:05.085 T:1120     info <general>:         m_channels        : FL, FR, BL, BR, FC, LFE, SL, SR, UNKNOWN1, UNKNOWN2, UNKNOWN3, UNKNOWN4, UNKNOWN5, UNKNOWN6, UNKNOWN7, UNKNOWN8
    2023-09-25 18:58:05.085 T:1120     info <general>:         m_sampleRates     : 32000,44100,48000
    2023-09-25 18:58:05.085 T:1120     info <general>:         m_dataFormats     : AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
    2023-09-25 18:58:05.085 T:1120     info <general>:         m_streamTypes     : No passthrough capabilities

    If you can't get it working please provide a debug log (enabled debug logging in settings, reboot, ssh in and run "pastekodi").

    If you play multichannel content and have the number of channels set to 2 in kodi audio config then kodi will downmix to 2ch automatically.

    OFC you could also configure more channels, like you did before (also increase the number of channels in the multi pcm accordingly) and eg map 6 channels to HDMI and only FL and FR to the soundcard - but then you'll loose the center channel at the soundcard when playing 5.1 contents.

    You could play around with ttable and down-mix more channels into left and right of the soundcard but that could have negative effects if you only output stereo content.

    It's tricky, you have to play around a bit what you prefer.

    so long,

    Hias

    It's best to refer to the various cards by name (eg CARD=vc4hdmi), not by number - the numbers can change. see the output of aplay -L

    For hdmi output you need to use the hdmi PCM (i.e. hdmi:CARD=vc4hdmi,DEV=0) or the default pcm - the vc4 hw pcm supports only iec958 format (not S16LE etc) which pretty much no software supports (the hdmi pcm will do the necessary conversion).

    It seems it's necessary to specify the number of slave channels (eg 4 if you want to output 2+2 channels via the multi pcm) in the route pcm.

    And, if you want aplay -L to show the "both" pcm you need to add a description hint.

    Please test with this asound.conf file:

    so long,

    Hias

    It looks like your 500GB drive is dying

    Code
    Sep 24 17:24:51.239391 LibreELEC kernel: sd 3:0:1:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=1s
    Sep 24 17:24:51.239860 LibreELEC kernel: sd 3:0:1:0: [sdb] tag#0 Sense Key : 0x3 [current] 
    Sep 24 17:24:51.240185 LibreELEC kernel: sd 3:0:1:0: [sdb] tag#0 ASC=0x11 ASCQ=0x4 
    Sep 24 17:24:51.240507 LibreELEC kernel: sd 3:0:1:0: [sdb] tag#0 CDB: opcode=0x28 28 00 15 17 16 90 00 00 08 00
    Sep 24 17:24:51.240824 LibreELEC kernel: I/O error, dev sdb, sector 353834640 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2

    so long,

    Hias

    Next try, I found a rather easy way to fix this at least on GBM (i.e. all devices except Generic Legacy/X11)

    kodi: change remote power button behaviour to show the shutdown menu by HiassofT · Pull Request #8161 · LibreELEC/LibreELEC.tv
    Kodi's default power button handling is OK for typical HTPCs with window systems but it's the exact opposite of what users (and I) expect from a mediacenter…
    github.com

    Solution: let logind handle the system/case power buttons (performing a shutdown) and let kodi handle all other input devices which might have a power button on them as well (and show the shutdown menu).

    so long,

    Hias

    Power off via systemd-logind can be configured in /storage/.config/logind.conf.d

    This will only work on Generic Legacy where kodi doesn't grab the input device. On Gerneric with Kodi GBM logind won't see the power button as kodi has grabbed the input devices.

    Currently the best way to do it (which will work on all variants) is to create a simple /storage/.kodi/userdata/keymaps/keyboard.xml file with the following content:

    Code
    <keymap>
      <global>
        <keyboard>
          <power>ShutDown()</power>
        </keyboard>
      </global>
    </keymap>

    BTW: I've changed the PR I've linked and it won't fix that issue because it turned out to be very tricky - the change (and the keymap above) also affects USB / BT / Wireless / ... remotes that kodi sees as "keyboards" and thus kodi would shut down immediately if you (accidentally) hit the power button on such remotes (which can happen quite easily and may be fatal as often it's not possible to power up the PC / RPi / other devices via the remote again).

    so long,

    Hias

    The last line in the kodi log is from the jellyfin addon. Try disabling that and see if that improves things.

    BTW: you seem to have quite a lot of addons, scripts and skins installed. It might be worth disabling them one by one (or start with a clean kodi and install addons one after the other). ISTR script.embuary.helper has caused crashes in the past and there are also error log messages from script.lazytv.

    so long,

    Hias

    Drop the "=1" after systemd.debug_shell (that would set the serial device), console=serial0,115200 systemd.debug_shell is working fine here.

    I also have dtoverlay=disable-bt here in config.txt so that the AMA0 UART is used for the console.

    so long,

    Hias

    Yes, that repo is certainly banned and you might have got other crap from it that's not flagged by kodi's pastebin site / banned list.

    As we don't know if it's the banned crap, some other addon, or kodi (latter is not too likely since I don't see the issue here) you need to do a clean install anyway to narrow it down. Start with clean LE kodi, add one addon after the other and see if things change.

    so long,

    Hias

    I'm not seeing this here:

    What were you (or kodi doing) at that time?

    so long,

    Hias