LibreELEC-RR [ Brave | Spotify | Moonlight | Emulationstation | Retroarch | Pegasus ]

  • Good Evening All. I'm trying to use this build with the Metropolis skin. I'm trying to setup 'spotify' as a custom 'furniture item'. I'm using this line from the wiki.

    Spotify

    • /usr/bin/app-spotify.py

    Adding that as a 'spotify' button on the home screen to that line above does nothing. Am I missing something?

    kodi-theme-Estuary: add menu patches · SupervisedThinking/LibreELEC-RR@086361f · GitHub

    You could try RunScript(/usr/bin/app-spotify.py)

  • Normally you have to enable the rr-config-tool addon, select your audio output, enable pulseaudio and you're done.

    So, if I just use the Libreelec-RR config tool with this settings:

    , I get wrongly mapped channels in Moonlight, Kodis audio output is fine, tested with a test file, that works on a Windows PC and Kodi.

    pactl info shows this:

    The default- channel map seems wrong. Here are the logs: http://ix.io/3yzJ

    If I select Use module-udev-detect to autodetect Pulseaudio device I get no sound at all.

    This is the output of pactl info is:

    Here are the kodi logs :log-2021-09-11-15.15.37.zip (Pastekodi didn't work and Pastebin complains about file size, I can give individual logs if you want)

    You don't have to manually edit any config files - if you do so you will break things because scripts adjust the automatically to match the audio devices

    You are right with this, especially since I'm a Linux noob, but I could't help myself. If I change autostart.sh like this

    Code
    pactl load-module module-udev-detect 
    pactl set-default-sink alsa_output.usb-0d8c_USB_Sound_Device-00.analog-surround-51

    Moonlight audio does work correctly, but Kodi audio is killed. I additionally added the line

    pactl load-module module-alsa-sink channel_map=front-left,front-right,rear-left,rear-right,center,lfe,

    which sometimes works in Kodi, but most of the time I can't select a proper audio device in Kodi settings, so this is what you meant with breaking things. To be clear, the log files I provided are without an edited autostart.sh.


    Edit: The github script udev-joystick-blacklist didn't work initially, I added the lines:

    Code
    SUBSYSTEM=="input", ATTRS{name}=="eventlircd", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}=""
    SUBSYSTEM=="input", ATTRS{name}=="eventlircd", KERNEL=="js[0-9]*", MODE="0000", ENV{ID_INPUT_JOYSTICK}=""

    which did the trick for me. Remote and controller are working in Kodi and if I use Moonlight only one controller was detected.

    Edited 2 times, last by Cillit (September 12, 2021 at 2:26 PM).

  • Can i now use the XBOX One Wireless Controller with Bluetooth?

    Have a RPI4.

    Can pair the Controller if i disable ERTM

    But could not configure it on the Input/Game Controller Menu :(

    P.S. I use the latest stable 10.x from today.

    Installed with Update Function under libreelec Settings

  • But could not configure it on the Input/Game Controller Menu

    As far as I remember you don't need to disable ERTM anymore, I haven't done it and my series x controller works fine.

    Furthermore you should ssh into your device and add a udev rule.

    This is what I have done:

    nano /storage/.config/udev.rules.d/99-gamepad.rules and add

    Code
    SUBSYSTEM=="input", ATTRS{name}=="Xbox Wireless Controller", KERNEL=="event*", MODE="0666", ENV{LIBINPUT_IGNORE_DEVICE}="1" SUBSYSTEM=="input", ATTRS{name}=="Xbox Wireless Controller", KERNEL=="event*", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"

    , you should put that into a single line. Should work.

  • As far as I remember you don't need to disable ERTM anymore, I haven't done it and my series x controller works fine.

    Furthermore you should ssh into your device and add a udev rule.

    This is what I have done:

    nano /storage/.config/udev.rules.d/99-gamepad.rules and add

    Code
    SUBSYSTEM=="input", ATTRS{name}=="Xbox Wireless Controller", KERNEL=="event*", MODE="0666", ENV{LIBINPUT_IGNORE_DEVICE}="1" SUBSYSTEM=="input", ATTRS{name}=="Xbox Wireless Controller", KERNEL=="event*", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"

    , you should put that into a single line. Should work.

    Thanks.

    Now i can configure the Controller :)

    But without the Menü Button...

  • Well why do you use surround51(...) as audio output device instead of HDMI1 or else? Do you use an usb audio device? A CM106 sound something?

  • Logs below. I played with the rr-config tool a few times but ultimately i had to manually set the config in retroarch for it to work.

    http://ix.io/3yHi

    Well is it your intention to use HDMI1 instead of HDMI0? Because according to the log you use your second HDMI output as audio output.

    rr-config-script: Audio Device: ALSA/PulseAudio will use hdmi:CARD=vc4hdmi1,DEV=0 as output

  • Well why do you use surround51(...) as audio output device instead of HDMI1 or else?

    Yes, its an USB audio card, which is my only option to have 5.1 sound, since I have no AV-receiver.

    It works well with Kodi, the only problem are the wrongly mapped channels in Moonlight.

    Edited once, last by Cillit (September 22, 2021 at 11:07 PM).

  • Well is it your intention to use HDMI1 instead of HDMI0? Because according to the log you use your second HDMI output as audio output.

    rr-config-script: Audio Device: ALSA/PulseAudio will use hdmi:CARD=vc4hdmi1,DEV=0 as output

    I use the primary output, not the secondary. For some reason it only works if i set it to use 1 in your script, and 0 every where else. I'll triple check but i went over this last time and in rr-config i have to set the opposite to the real config for it to work, then manually set everything to use the primary.

  • Can RetroArch be used as Kodi add-on in regular LE? Is forking the system absolutely necessary?

    You need a wrapper to launch retroarch so it's not a native plugin that works within the Kodi application. You can use ROMs within Kodi, but I've tried this in the past and the native support is terrible. Personally I wouldn't waste your time trying to make the native support work even though it's tempting. LibreelecRR is by far the easiest solution if your priority is playing media, but you also want proper emulation support.

  • You need a wrapper to launch retroarch so it's not a native plugin that works within the Kodi application. Personally I wouldn't waste your time trying to make the native support work even though it's tempting.

    I see an effort existed for LE 8 that built RetroArch plugin based on Lakka sources (itself forked from LE?):

    GitHub - ToKe79/retroarch-kodi-addon-LibreELEC: RetroArch KODI add-on for LibreELEC
    RetroArch KODI add-on for LibreELEC. Contribute to ToKe79/retroarch-kodi-addon-LibreELEC development by creating an account on GitHub.
    github.com

    I can't tell how much of a hack it was and why it hasn't been updated. Maybe the developer who is a member of Lakka simply lost interest in LE.

  • Maybe the developer who is a member of Lakka simply lost interest in LE.

    He's still actively working on Lakka which is still actively based on LE, but there are 1001 things that need a maintainers attentions and only so many free hours in a week for fiddling with hobby code.