Posts by mcs5280

    I've got an addon that runs in a Docker container and outputs video directly to /dev/vchiq. As a result I have to stop the Kodi service before launching the container so the video can be displayed. This process worked fine in LibreELEC 9 but in version 10 the splash screen seems to stay up and I don't see any video display. Does anyone know if anything changed in this regard for the new release? I was messing with the fbset command after stopping Kodi and I noticed the following:

    LibreELEC 9: blank screen

    Code
    >>fbset
    mode "1x1-0"
            # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
            geometry 1 1 1 1 32
            timings 0 0 0 0 0 0 0
            accel false
            rgba 8/16,8/8,8/0,8/24
    endmode

    LibreELEC 10: LibreELEC logo is displayed

    Code
    >>fbset
    mode "1920x1080-0"
            # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
            geometry 1920 1080 1920 1080 16
            timings 0 0 0 0 0 0 0
            accel true
            rgba 5/11,6/5,5/0,0/0
    endmode

    My initia idea was to disable the splash screen but I have been unsuccessful in figuring out how. Any thoughts?

    Hi, first of all: thank you for your hard work on this addon.

    I would like to ask if this addon works for Libreelec 10?

    I tried to install it on RPi 4 running libreelec 10 and the launcher exits with an error message:

    Can't resolve xbmx/python 2.25.0.

    Edit: I'm using Libreelec RR.

    Oops I forgot to mention that its not currently compatible with LibreELEC 10 due to the change from python 2 to 3 in Kodi 19. I'll add a note to the OP. Since you are running a Pi 4 you should have enough power/memory to run full featured Moonlight-QT instead of the embedded version. Please try this plugin instead: GitHub - veldenb/plugin.program.moonlight-qt: A launcher and updater for running Moonlight-qt on LibreELEC.. I'll update this thread if once I port the embedded version to LibreELEC 10/Kodi 19

    I recently revamped my moonlight-embedded Kodi plugin which allows Raspberry Pi users to run the Nvidia Gamestream protocol to their LibreELEC device. This essentially turns your Pi into an Nvidia Shield/Steamlink device.

    This plugin utilizes a Docker container to run moonlight-embedded since some required libraries are not present in the base LibreELEC installation. There are detailed installation instructions on the Github plugin repository page linked below. I've been iterating on how to best handle the installation of the Docker image (it was previously handled via a shell script that the user had to manually run), so please let me know what you think of the current setup.

    Note: the plugin currently only works on LibreELEC 9, porting to LibreELEC 10 will hopefully happen in the future.

    Here's a link to the plugin repository:

    GitHub - clarkemw/script.moonlight-embedded-launcher: Launcher for moonlight-embedded on LibreELEC Raspberry Pi systems

    Docker source:

    GitHub - clarkemw/moonlight-embedded-raspbian-docker: Dockerfile for building moonlight-embedded/raspbian image on Docker Hub

    Docker hub:

    Docker Hub

    And details on moonlight-embedded:

    GitHub - moonlight-stream/moonlight-embedded: Gamestream client for embedded systems

    I have a Kodi addon that depends on the Avahi service. Previously I've had users manually enable it via the menus inside Kodi (Kodi/Add-ons/LibreELEC Configuration/Services/Enable Avahi). Is there any way to do this in a programmatic fashion? I know I could just call "systemctl enable avahi-daemon.service" but I'm not sure if that status will be reflected in the Kodi menus (the Enable/Disable button) if the user were to revisit the menu in the future.

    Hi, thanks for creating this, I installed it just now. I notice the link you posted (moonlight-embedded-launcher-0.4.zip) was contained v0.3 inside the folder. I found v0.4 on your github so installed from there.

    On the initial install of my LibreELEC, I had to adjust overscan to fit into my TV screen. But when I launch Moonlight, the streaming display doesn't seem to respect that and the edges of screen stretch beyond it. I am streaming my desktop. Also when I quit using Ctrl+Alt+Shift+Q, it doesn't seem to terminate the connection on my computer (meaning I do not get audio on the host back). I'm not sure if this is related to an issue with your code or not. I'm going to try the moonlight embedded on OSMC next. Thanks.

    Oops fixed the incorrect link in the first post, thanks for pointing that out. I think the previous poster is correct, you probably need to change your TV HDMI settings to correct the overscan issue. Regarding streaming your desktop I found the -quitappafter flag that should tell the host to exit streaming if you quit on the LibreELEC device. Can you run the following command and let me know if it resolves the exit issue (seemed to work for me but just want to double check)? I'll get this incorporated into the next release.

    Code
    sed -i 's|moonlight stream|moonlight stream -quitappafter|' ~/.kodi/addons/script.moonlight-embedded-launcher/bin/launch_moonlight.sh

    This is cool! Much better than moonlight on the FireTV, I think I can resell my single-purpose Shield now.

    Currently I've just got a controller RF stick plugged into the host computer, but I also have a controller plugged into kodi. Is there a way to do mouse emulation from kodi? Additionally, it there a way to exit the game in-game or from the launcher in Kodi? That's pretty critical, as GFE gets picky about starting another game without closing down the first one.

    I'll confess I haven't experimented much with controllers connected to the Kodi device but I'd like to expand that capability in the future. I just tried plugging in a USB mouse to the Kodi device and that seemed to work inside moonlight...but that's a fairly basic input device. What kind of controller are you trying to use? Is it wired or wireless? You can check this file to see if its got a registered mapping for moonlight:

    moonlight-embedded/gamecontrollerdb.txt at master · irtimmer/moonlight-embedded · GitHub

    As far as exiting goes I've had the cleanest experience using games that I launch from Steam. Once you exit the game via it's internal menus, the Steam window will re-appear and you can use your controller to select/press the power icon in the upper right corner. This will bring up a dialog asking if you want to end the Gamestream session. Once you hit ok to that it should close out of GFE completely and reopen the Kodi gui.

    If you aren't launching via Steam you can try one of the following commands from a keyboard/controller that is connected to the Kodi device:

    Code
    Use Ctrl+Alt+Shift+Q or Play+Back+LeftShoulder+RightShoulder to exit streaming session

    I've been messing around with getting moonlight-embedded running in a docker container on LibreELEC and thought I'd share the current state. This allows you to stream games from a PC to your HTPC device (Raspberry Pi 3B+ in my case) through the NVidia GeForce gamestream protocol. It currently supports only audio/video out and works pretty well at 1080p/60fps going from my gaming PC to my TV in another room over wifi. I have not tried to get controllers working as I just connect my controller to my PC via bluetooth.

    Files/Readme:

    GitHub - clarkemw/moonlight-embedded-launcher: Launcher for moonlight-embedded on LibreELEC Raspberry Pi systems

    Prerequisites

    • Raspberry Pi device with LibreELEC installed, connected to local network via ethernet (preferred) or wifi
    • Gaming PC with Steam and Nvidia GeForce Experience installed, connected to local network via ethernet (preferred) or wifi
    • Basic familiarity with ssh and terminal for installation

    Instructions:

    1. Enable Nvidia Gamestream on your gaming PC: GeForce Experience/Settings/Shield/Gamestream (move slider to right)

    2. Enable Avahi in LibreELEC: Kodi/Add-ons/LibreELEC Configuration/Services/Enable Avahi

    3. Enable Docker in LibreELEC: Kodi/Add-ons/Install from repository/LibreELEC Add-ons/Services/Docker

    4. SSH into your LibreELEC device, download/extract the latest release of this repository to your LibreELEC device and run install.sh

    Code
    wget https://github.com/clarkemw/moonlight-embedded-launcher/archive/v0.4/moonlight-embedded-launcher-0.4.zip
    unzip moonlight-embedded-launcher-0.4.zip
    cd moonlight-embedded-launcher-0.4
    bash ./install.sh

    5. The installer script will guide you through the process. The only user interaction required is during the pairing process. The LibreELEC terminal will give you a 4 digit code, and you will see a pop-up on your gaming PC to enter the code.

    Code
    Searching for server...
    Connect to 192.168.0.101...
    Generating certificate...done
    Please enter the following PIN on the target PC: 4321

    6. Install the launcher add-on from the script.moonlight-embedded-launcher.zip file: Kodi/Add-ons/Install from zip file/Select script.moonlight-embedded-launcher.zip

    7. Launch moonlight-embedded from within Kodi and enjoy your game streaming experience: Kodi/Add-ons/Game add-ons/Moonlight Embedded Launcher

    8. Exit Steam (power icon) to stop streaming/re-open Kodi

    Current to-do list:

    • Add/test controller support
    • Automated installation process instead of install.sh
    • General cleanup (this is my first ever docker image) and potentially build moonlight-embedded from source to reduce image size