Moonlight (Pyra)


TeDaDeS

Forum Addict!
Joined
Jan 15, 2004
Messages
3,002
Location
The Netherlands
Website
Visit site
This is a port of Moonlight (Embedded) for the Pyra (currently Bookworm only).
Similar to the Pandora release, except the Pyra release lacks the graphical interface, for command-line only.

With the Pyra's controls you can play games that run on your PC. With this application you can remotely control your PC, which is required to run Sunshine (or NVIDIA GameStream) to do so.

Moonlight-Embedded for Pyra:

Sunshine for PC:

Open-Pandora release Moonlight



How to start:
Get your PC's ip-address (in my example this is 192.168.0.1).
1. Install Sunshine on your PC.
2. Install Moonlight on your Pyra
2. Pair your Pyra to your PC by running this command and get the PIN:
moonlight pair 192.168.0.1
3. Add the Pyra's PIN to pair your Pyra to your PC by using Sunshine on your PC:
4. My common parameters to start moonlight and stream my desktop:
moonlight stream 192.168.0.1 -app Desktop -width 1280 -height 720 -fps 30 -bitrate 5000

Explaining these parameters, so you can play with them if needed:
stream
-> parameter to stream something from your PC, always there
192.168.0.1 -> this needs to be your ip address of your PC which runs Sunshine or NVIDIA GameStream
-app Desktop -> select the 'app' which was configured on Sunshine (find those here https://localhost:47990/apps ), Desktop is the default name for your PC's desktop
-width 1280 -height 720 -> the resolution to display on the Pyra (which has a 720p display), the shorter version is using this parameter: -720
... If you really need to, for performance reasons as decoding does cost CPU cycles, lower your resolution to half: -width 640 -height 360
-fps 30 -> the requested amount of frames-per-second, using a too high fps can overload the Pyra's CPU causing the video stream to start glitching making it a sluggish experience. This somewhat depends on the game you play if the experience is bad.
... note that the fps you select should be somewhat matching your PC's refresh rate for optimal experience: if you PC's display runs at 100Hz use -fps 50, if 120Hz you can use 30, 40 or 60 fps. Too low fps obviously also impacts your latency (<20 fps).
-bitrate 5000 -> the maximum bitrate, this is again a balancing act based on the other parameters, the content you stream and network performance. 1000 is probably too low but okay for slow desktop browsing, 2500 is okay at 30fps, 5000 is probably suitable for a lot, 10000 is probably overkill for 720p.


Using an off-brand Xbox controller on the Pyra:
While you can use the Pyra controls as Xbox controller (this is default behavior) I also tried an external usb-cabled controller. As this was a non-Xbox branded controller I had to do something extra to get it working on my Pyra.
These commands contain my controllers product-id etc. Get yours from the usb-device logs (btw. 'xpad' is already in the Pyra kernel, no need to install it as xpad package is something different).
sudo modprobe xpad
usb-devices
echo "10f5 7016" | sudo tee /sys/bus/usb/drivers/xpad/new_id


Build 01
-----------

  • Initial build
 
Last edited:
Back
Top