Skip to content

XK9274/moonlight-app-miyoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Moonlight Miyoo Edition

A how-to/demonstration of Moonlight on the Miyoo Mini Plus by Handheld Gaming!

Miyoo Mini+ Streaming

Third party scripts:

https://github.com/Nonary/ResolutionAutomation - Change the screen resolution automatically on connection

Version

Moonlight for the Miyoo Mini Plus is currently at v1.5.1


Overview

This project is in its early stages and has bugs. This is not restricted to Nvidia, you can use AMD etc with Sunshine.

  • Discord Contact: @XK user: _xk_

Requirements

  • Packaged for Onion (Porting to other UIs is welcome)
  • Latest 4.2 of Onion
  • Recent firmware

Keybinds

DefKbind

Press START to exit mouse mode. Currently A is left click, B is right click.

Note: Moonlight on the Miyoo will only pass keyboard commands to the host, meaning no mouse and no gamepad input for now.


How to Install and Use Moonlight on your Miyoo MMP

Follow the steps below to get Moonlight running on your Miyoo MMP:

Steps

  1. Install Sunshine on your machine: Download Sunshine from here.

  2. Local Dashboard: Open your browser and navigate to https://localhost:47990/. Create a local account, log in, and then open the Pin page.

  3. Copy the Moonlight App Folder: Move the Moonlight app folder to /mnt/SDCARD/App/moonlight on your MMP.

  4. Restart MainUI: Relaunch the MainUI on your Miyoo device or simply reboot it.

  5. Launch the Moonlight App: Navigate to "Pair" and press A. Type in your computer's IP address and press Enter.

  6. Enter the Pair Screen: Once again, type in your computer's IP address and press Enter.

  7. Input the PIN: Your Miyoo device will provide a pin; input this pin on the Sunshine dashboard.

  8. Confirmation Page: You'll receive a notification on your MMP confirming that the pairing was successful, or an error if it was not.

  9. Start Streaming: Head back to the main menu, click "Stream" and then select an app to stream!.


Custom keybinds/cpuclock value

To set up your custom keybinds, you'll currently need to open the file /mnt/SDCARD/App/moonlight/config/settings.json

The file will contain:

{
    "customkeys": {
        "A": "SPACE",
        "B": "BACKSPACE",
        "X": "X",
        "Y": "Y",
        "L1": "E",
        "L2": "Q",
        "R1": "T",
        "R2": "P",
        "LeftDpad": "LEFT",
        "RightDpad": "RIGHT",
        "UpDpad": "UP",
        "DownDpad": "DOWN",
        "Start": "RETURN",
        "Select": "M",
        "Menu": "ESCAPE"
    },
    "cpuclock": "1900",
    "mouse": {
        "scaleFactor": 2,
        "acceleration": 2.0,
        "accelerationRate": 2.5,
        "maxAcceleration": 10.0
    }
}
  • Keybind values will have to be set based on their SDLK value, you can find the full list here: SDLK Common names
    • For example; SDLK_BACKSPACE will become BACKSPACE, SDLK_RCTRL will become RCTRL.
  • CPUclock is ranged between 1000 -> 1950, defaulting at 1400.

To Do

  • Add settings menu
  • Go back to menu after quitting a game/stream
  • Add options menu hotkey while streaming
  • Gamepad etc
  • FIX APP STARTUP/QUITTING

Credits


Frequently Asked Questions (FAQ)

When i launch a game it doesn't start on the remote desktop

  • I think i know why, just haven't had time to look into why the GS (gs_quit_app) function is failing.

When i launch the app it says "loading" and then closes instantly

  • If you used filezilla to transfer the files to the card, delete them and use Samba/HTTP instead. IF this doesn't resolve it, check the line endings on the script files are UNIX. not Windows.
  • If this doesn't resolve it. Contact me

When i press start on a menu option the app closes

  • Close the keyboard with the X button on the MMP, then select the menu item with the A button

Is there a build script for Moonlight?

  • Not yet, but soon.

It's laggy. What can I do?

  • Don't stream at 4k/2k resolutions. Remove any higher resolutions from Sunshine under the General tab.

The display is letterboxed on the MMP display when using Sunshine. How do I fix this?

  • Set your desktop resolution to a 4:3 aspect ratio, such as 1400x1050 or 1280x960. If you're launching directly into a game, set the game's aspect ratio to 4:3 as well.

Moonlight crashes after quitting a running stream and then reconnecting with Sunshine.

  • The stream takes time to fully terminate. Give it a few seconds before trying to reconnect.

The app has stopped or is not working. What should I do?

  • Use the menu option to "Unpair" and then restart the app.

There are audio pops when opening the app. Is this normal?

  • Yes, this is a known issue with the MMP in general, it's totally "normal" with how the HW is configured.

Input continues to be passed to the host even after exiting Moonlight. Why is this?

  • This is a known issue, and i'm looking into it.

Changelog

v1.5.1

  • Move to minor versioning
  • Add new banner logo
  • Add new app logo
  • Resource caching
  • Other minor refactors
  • Remove some libraries that aren't required.

v1.5

  • Fix audio crackle

v1.4

  • Fix audio delay

v1.3

  • UI overhaul
  • Refactored most functions
  • Removed some reliance on the SDL lib
  • Added more settings for upcoming settings menu (overclocking etc)
  • Removed splash
  • Removed binaries that are no longer required
  • Updated FAQS
  • Convert all memcpy calls to neon_memcpy
  • Build libgamestream and libmoonlightcommon as stripped/arm optimised

v1.2

  • Added mouse emulation

v1.1

  • Added cpuclock settings.json object

v1.0

V0.9

  • Fix bad util.sh - #1

V0.8

  • New terminal w/ font by eggs
  • Better displays
  • Some error checking
  • Footer messages for help knowing which keys to press

V0.7

  • Fixed black screen issue
  • Fixed input spam at end of session
  • Added new key shortcut: Select + Menu to exit
  • Handles SIGINT/SIGTERM sent from term to cleanup mi_gfx/mi_sys
  • Remove pressmenu2Kill from launch.sh

V0.6

  • Fixed app list loop (Thank you for checking, vitty85

V0.5

  • Added ability to swap screens with Select + Bumpers

V0.4

  • Added pair check
  • Changes in launch.sh and pair.sh
  • Added util.sh
  • Added exit menu item

V0.3

  • Added selection menu for the app to launch
  • Added Gamestream support (Nvidia Geforce)
  • Added Unpair menu selection to start screen

V0.2

  • Download Older Version
    • Fixed Controls: L2 now works, control scheme changed
    • Changed how moonlight is launched in launch.sh
    • Added an animated splash to the launching stage (after pairing)
      Note: Source of gif unknown, if it’s yours, I can remove it or credit you

V0.1

  • Initial build (buggy and unreleased)
    • Added functional Moonlight and wrapper launch.sh/pair.sh

About

Moonlight client app for the Miyoo Mini +

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages