[Unofficial] moonlight-embedded

A95X F3 Air, latest version worked for me too, and it’s fine with Kodi hdmi multi ch. Much appreciated @smg04!

Btw, do you have any idea why we have to replug our usb devices? Chris_j and I have the same issue apparently. For example, ctrl + shift + alt + Q shortcut doesn’t work until I do this.

Try this one:
script.luna-0.8.3-matrix.120.zip (3.1 MB)

I thought the issue was gone with the new version, but I was wrong. This will try and reset the USB devices before launching moonlight, which helps in proper recognition.

2 Likes

Hey @smg04, that seems to have worked perfectly for me, thanks!

@chris_j Great!

Hey CoreELEC Team!
I’ve provided a fix for most of the bugs within the moonlight binary and we now have confirmation of both audio and video working, as well as surround audio.
I already have a setup on your toolchain for building it, so I was wondering, could this addon become a part of the official repository?

3 Likes

@smg04, your efforts have been fantastic and I really appreciate all you have done to bring Moonlight to CoreELEC. It runs really smoothly for me and is great to have the mouse emulation with the gamepad - is there a recommended configuration on the packet sizes do you know?

@smg04, I’ve just applied this version now and I found when quiting the stream using the controller, the controller no longer worked on the Kodi interface. If I used the remote to open a session again then the controller carried on working. So don’t know if there is something going on there.

Yes we are interested

1 Like

Great!

I’ll send you a patch file as soon as I feel ready to go stable.
I thought I was done, but seems like I still have some bugs to fix…

@Adam86 Did you figure out what’s wrong? Let me know the exact steps to reproduce the issue?

@smg04, I’ll try it again tomorrow I ended up putting the previous version back on which was fine.

I just simply went on a game for a short while and when I quit moonlight the controller wouldn’t control Kodi afterwards. I went onto moonlight again and only mouse emulation worked. I ended up restarting the box and it worked again.

Cheers

You can open to add a addon package with a PR to the folder:

The addond subfolder should be skin then I guess, isn’t it?

Morning @smg04, here are the logs for the 118 & 120 version. I enabled debug for them both, but doesn’t seem to give a lot of information to me.

118 works flawlessly, but 120 again Kodi lost connection to the controller once I quit Luna… Another thing I noticed with 120 is that my WIndows Sound was configured to Stereo, despite Luna being set to 5.1.

As soon as I reverted back to version 118 again and rebooted my X96 Air, everything started working perfectly again, including sound being set to 5.1 within Windows Audio Control Panel.

Cheers

logfile-118 (11.7 KB)
logfile-120 (11.7 KB)

Hey,

I think the pastebins expired?
Would you mind reuploading them?

Thanks…

@Portisch sure I’ll make a PR… Is it okay if I make one commit or should I split them? I am adding two patches and a few packages.

@smg04, weird…set them to two weeks expiry. Seems they’ve been deleted.

Have attached to original post.

Packages commits are “normally” handled single but there is no “rule”.
Just make a PR and we can adjust the commits there before merge, thank you.

@smg04 Our dear friend @shanti is drooling over this changes as well for his EmuELEC. Maybe it’s a good idea to PR to him as well. On the other hand if it’s trivial to CE repo he will pull it probably anyways.

1 Like

Thank you for the kind words, everyone!

I am still working on one piece of the puzzle, I am rewriting Luna to the most basic version possible in order to remove any possible issues with Kodi and making it more future-proof by removing any code that might become stale and keep moonlight as the only dependency.
As a bonus, it will make the addon faster to parse and Kodi will become less of an obstacle…

I’m mostly done, but I am currently having permission issues… Shell scripts keep giving Permission denied for basic commands like echo 0 > /sys/class/graphics/fb0/blank
This returns : Permission deniedne 1: can't create /sys/class/graphics/fb0/blank
I don’t really know why, but once I figure these out, I’ll be making a PR.

UPDATE: I have fixed the issue, line endings tend to break things…
The PR is draft-ready, but I recommend a little more testing before actually accepting PR…

script.luna-1.0.0-matrix.123.zip (2.3 MB)

Fixed up a few things on the PR… Still not ready for release…

Testers @Adam86 @chris_j @Kaan and anyone else, please test this so I can finally publish…

Your testing is appreciated! Thank you!

script.luna-1.0.0-matrix.125.zip (2.4 MB)

@smg04, have just tested latest release and can confirm that now the gamepad continues to work within Kodi when exiting a stream session.

However, my custom programs/shortcuts on my GeForce Gamestream seem to be missing and only shows the Nvidia detected ones.

Also when I was reviewing the settings which I see you’ve tidied up, my bitrate dropped from 100 to 0 when scrolling through and now I can’t increase it.

Surround working good though :slight_smile:

Same issues here, sliders like packet size and bitrate don’t work.

Fixed all the sliders and some other stuff in the settings and I’m now waiting for PR to be merged. Then you will be able to update the addon from the official repo.