Moonlight Screen Rotation
-
@mitu Sorry about that, it totally slipped my mind!
Pi Model or other hardware: Raspberry Pi 4B
Power Supply used: Official 3A RPI Power Supply
RetroPie Version Used: 4.8.2
Built From: Raspberry Pi Imager - No background OS
USB Devices connected: Custom Teensyduino Controller
Controller used: Custom Teensyduino Controller
Emulator: Moonlight
How to replicate the problem: Use therotation = x
parameter in the Moonlightglobal.conf
-
As far as I can tell, the
rotation
parameter is supported when using theomx
video decoder (whenplatform=pi
) and it should work with the default RetroPie 4.8.2 image.
Can you addverbose
to the.conf
file and then - after runningmoonlight
- post the log file (/dev/shm/runcommand.log
) to pastebin.com ? -
@mitu Here is the pastebin of the log:
-
Hm, that doesn't look like a verbose log. Perhaps running manually the command line (shown at the top of the log file) with
-verbose
or-debug
would display more diagnostic info ? I think you can run it manually from a SSH session (just exit EmulationStation before startingmoonlight
). -
@mitu I've managed to launch Moonlight directly from the
.sh
file, although I did have to edit the-config
parameter slightly from how it appeared in theruncommand.log
. Instead of passing in"/home/pi$
, I had to include the full path to the config for it to successfully launch ("/home/pi/.config/moonlight/global.conf"
).The
-verbose
flag worked successfully, please find the full verbose log here: -
@Applepie2 said in Moonlight Screen Rotation:
The -verbose flag worked successfully, please find the full verbose log here:
https://pastebin.com/QJLN2SjVCannot see the log: Error, this is a private paste or is pending moderation. If this paste belongs to you, please login to Pastebin to view it.
-
@mitu If I posted it as a guest post it kept getting auto-removed, so I tried to post it through my account instead and it appears that has triggered moderation.
I'm guessing it is some of the game names in the xml tags that might be causing issues. I've removed the xml tags relating to my desktop PC system, steam and game names. Where these have been removed I've just replaced them with
<REDACTED>
.Hopefully this version is accessible:
https://pastebin.com/WB02eXLM -
@Applepie2 Yes, it's accessible now, though unfortunately I don't see anything related to rotation there, just the messages regarding the viewport (wxh@fps). It does detect the correct platform (Pi).
Can you try adding
-rotation 90
parameter to the command line and see if it works this way ? -
@mitu I try to use either a parameter
-rotation 90
or--rotation 90
to the command line, then it tries to connect to an ip address of90
. Sadly, I don't think rotation is supported that way. -
@Applepie2 Try with
-rotate 90
. -
@mitu You've got it! That did the trick!
Do you know which file calls this, so I can permenantly add the-rotate 90
parameter?EDIT: Turns out the parameter for the config is (of course) also just called
rotate
rather thanrotation
. Just double checked their GitHub again and their example config definitely has the wrong parameter.Thanks again for all your help!
-
@Applepie2 said in Moonlight Screen Rotation:
Just double checked their GitHub again and their example config definitely has the wrong parameter.
Good find ! It will need to be corrected.
-
@mitu I've raised this as an issue on their repository, hopefully they will correct their example before too long. Thank you again for your assistance in this matter.
-
I meant to send a PR myself, but looks like the Github's web interface didn't go through with it. I've amended their Wiki page with the command line options and sent a small PR to fix the sample
.conf
from the repository.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.