A launcher and updater for running Moonlight on Raspberry Pi 4 systems with LibreELEC/Raspberry Pi OS and Generic x86_64 systems running LibreELEC or Ubuntu.
This Kodi addon-on was developed to enable Moonlight game streaming on LibreELEC systems. Since LibreELEC is a "just enough" distribution dependencies for Moonlight are missing, requiring some extra steps to get things running. A simple add-on lets you install and launch Moonlight from within Kodi and stream games from your PC to your LibreELEC device.
More info on Moonlight for the Raspberry Pi 4 specific can be found here: https://github.com/moonlight-stream/moonlight-docs/wiki/Installing-Moonlight-Qt-on-Raspberry-Pi-4
And for more general info about Moonlight: https://github.com/moonlight-stream/moonlight-qt
At the time of writing the only platform that support's Moonlight on a Raspberry Pi 4 without a running X-server seems to be Moonlight-qt.
Raspberry Pi 3 works (limited support up to 720p) but needs changes to LibreELEC's config:
mount -o remount,rw /flash/
dtoverlay=vc4-kms-v3d
with dtoverlay=vc4-fkms-v3d
to enable fake KMS mode instead of full KMSdtparam=audio=on
to enable audio in fake KMS modemount -o remount,ro /flash/
GeForce Experience/Settings/Shield/Gamestream (move slider to right)
If your PC is not recognised you can try to turn it off and on again on your gaming PC. You can also add your PC using the IP-address by pressing the + icon in the upper right corner.
Once your PC is recognised by Moonlight, you will be asked to enter a 4-digit code into Gamestream to pair Moonlight with Gamestream. When the pairing is finished you can use Moonlight to adjust settings for streaming and launch games. Exit Moonlight and you will be returned to Kodi.
Because Moonlight saves its configuration and image-cache to Kodi's storage you can now browse and start your games using the Games menu in Kodi by entering the "Moonlight" menu item. Remember that all games are displayed from local cache, so they are only updated when Moonlight connects to your gaming PC.
When you want to update Moonlight you can use the update menu in the add-on settings and press "Update Moonlight to the latest version". The plugin will update Moonlight and will notify you when it's finished.
Essentially the plugin uses Docker to download Debian Buster and install Moonlight by automating the command's given on this page: \ https://github.com/moonlight-stream/moonlight-docs/wiki/Installing-Moonlight-Qt-on-Raspberry-Pi-4 \ When that installation procedure has finished the plugin copies the needed executables and libraries from the Docker container and then destroys the container. The plugin can use the copied files to launch Moonlight from Kodi without the extra overhead from Docker.
This support is still experimental. The plugin installs Moonlight-qt with APT directly onto the system, Docker is not used in this setup.
Somewhat the same as the Pi 4 build but based on an AppImage Moonlight build. Extra libraries are injected into the AppImage.
LibreELEC supplies two builds for Generic x86_64:
The drivers on the GBM build are still very new and not stable on all hardware. The Legacy-build should be stable on most hardware and is preferred at the moment.
Try to select a non-default audio device in Kodi's audio configuration. Kodi's and moonlight-qt's default audio device may differ and if a specific audio device is selected in Kodi the plugin instructs Moonlight-qt to use the device chosen in Kodi.
Try to change the ALSA channel mapping in the plugin settings menu.
This is a known issue in moonlight-qt, HDR support is still experimental and may be unstable.
For the Raspberry Pi 5, use at least the latest LibreELEC stable release with the latest version of this add-on, and force the EGL card to card1 in the settings menu.
Amlogic devices don't always work, forcing the EGL card to card0 or card1 in the settings menu might get your device working. Some devices are known to not work at all, see this page for details: https://github.com/moonlight-stream/moonlight-docs/wiki/Installing-Moonlight-Qt-on-ARM%E2%80%90based-Single-Board-Computers
You can always open an issue if Moonlight doesn't launch/update or the game menu doesn't work. All configuration and streaming problems are probably related to Moonlight self, you can report that on their own GitHub page: https://github.com/moonlight-stream/moonlight-qt/issues
Thanks to Cameron Gutman for all the work on Moonlighti-qt.\ Thanks to clarkemw and peetie2k for inspiration.\ Thanks to Janne Hakonen for the Generic x86_64 work, great job!